Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Action for fetching vault token with github action JWT

Notifications You must be signed in to change notification settings

kartverket/vault-jwt-auth-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Packages

No packages published

Languages

  • JavaScript 100.0%