Skip to content

Action for fetching vault token with github action JWT

Notifications You must be signed in to change notification settings

sarmil/vault-jwt-auth-action

 
 

Repository files navigation

Authenticate with vault

This action authenticates with Hashicorp vault with github jwt token, and puts resulting token i env as VAULT_TOKEN on runner.

Inputs

Vaultaddr (required)

Address to access vault via from runner.

Default: https://vault.vault:8200

Path (required)

The name of hte jwt authentication method you wish to use in vault.

Role (required)

Name of role in jwt authentication method in vault.

Certb64 (optional)

If you need a ca to verify the certificate used on the vault server, you can add it here as a base64 encoded string.

Example usage

- name: Vault Auth
  uses: BardOve/[email protected]
  with:
    vaultaddr: 'https://vault.dev:8200'
    path: jwt-dev
    role: test-role
    certb64: 'LS0tLS1CRUdJTiBDRVJUSUZ...'

About

Action for fetching vault token with github action JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%