Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCP support #538

Closed
mihalt opened this issue Apr 1, 2024 · 5 comments
Closed

HCP support #538

mihalt opened this issue Apr 1, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@mihalt
Copy link

mihalt commented Apr 1, 2024

Hi! Can you give an example how to use HCP here? https://github.com/hashicorp/vault-action?tab=readme-ov-file#hashicorp-cloud-platform-or-vault-enterprise

As I see from instruction on HCP Vault website I should get token from https://auth.idp.hashicorp.com/oauth2/token with usage of HCP_CLIENT_ID and HCP_CLIENT_SECRET. And after get secrets from link https://api.cloud.hashicorp.com with usage of token.

So, do you have this functionality?

@mihalt mihalt added the enhancement New feature or request label Apr 1, 2024
@fairclothjm
Copy link
Contributor

fairclothjm commented Apr 9, 2024

@mihalt Hello! You need the correct url, namespace, and token set on the action and I think that should do it. What have you tried?

@mihalt
Copy link
Author

mihalt commented Apr 12, 2024

@mihalt Hello! You need the correct url, namespeace, and token set on the action and I think that should do it. What have you tried?

have you seen their url? it is something like
https://api.cloud.hashicorp.com/secrets/2023-06-13/organizations/.../projects/cf666bf8-4cfe-4545-95da-fd3fbd45cef3/apps/main-app/open

And I should generate token each time.

Also, I really don't understand what path should I use, that is required.
And as I see from HCP manual, I don't need any of namespaces in request. I don't even see are they exist in it.

@fairclothjm
Copy link
Contributor

@mihalt Hello, are you using HCP Vault or HCP Vault Secrets? What is HCP Vault Secrets?

@mihalt
Copy link
Author

mihalt commented May 13, 2024

@mihalt Hello, are you using HCP Vault or HCP Vault Secrets? What is HCP Vault Secrets?

looks like Vault Secrets. The link in browser like this https://portal.cloud.hashicorp.com/services/secrets/apps/

@fairclothjm
Copy link
Contributor

@mihalt Thanks for confirming. vault-action is designed to work with HCP Vault Dedicated or Vault Enterprise. There is no integration with Vault Secrets at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants