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

[BUG] Vault-action does not support authentication only usage #152

Closed
Ameausoone opened this issue Nov 9, 2020 · 3 comments
Closed

[BUG] Vault-action does not support authentication only usage #152

Ameausoone opened this issue Nov 9, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Ameausoone
Copy link
Contributor

Describe the bug
I want to use vault-action only to authenticate to vault instance with an approle, and generate a VAULT_TOKEN to use with Terraform and vault-provider, and without retrieve secrets. But vault-action require to specify secrets.

To Reproduce
Use vault-action without secrets :

      - name: Authenticate to Vault
        uses: hashicorp/vault-action@v2.1.0
        with:
          url: https://my-vault-instance
          method: approle
          roleId: ${{ secrets.VAULT_ROLE_ID }}
          secretId: ${{ secrets.VAULT_SECRET_ID }}
          exportToken: true

Expected behavior

vault-action should authenticate and produces a masked environment variable VAULT_TOKEN.

Log Output

Error: Input required and not supplied: secrets

Additional context
N/A

@Ameausoone Ameausoone added the bug Something isn't working label Nov 9, 2020
@Ameausoone Ameausoone changed the title [BUG] Vault-action does not support to authentication only usage [BUG] Vault-action does not support authentication only usage Nov 9, 2020
@jasonodonnell
Copy link
Contributor

@Ameausoone One way to trick this would be to do a look-up self: https://www.vaultproject.io/api-docs/auth/token#lookup-a-token-self.

We should definitely have support for exporting tokens only, though!

@jasonodonnell jasonodonnell added the enhancement New feature or request label Nov 10, 2020
@tvoran tvoran removed the bug Something isn't working label Oct 8, 2021
@ps-jay
Copy link

ps-jay commented Jun 7, 2022

Is this a duplicate of #289, which is now solved by #299 (and released in https://github.com/hashicorp/vault-action/releases/tag/v2.4.1) ?

@tvoran
Copy link
Member

tvoran commented Nov 9, 2022

Yep, looks like this was solved in #299. Thanks!

@tvoran tvoran closed this as completed Nov 9, 2022
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

4 participants