Skip to content

This action retrieves key/values from a Consul and sets it as environment variables

Notifications You must be signed in to change notification settings

FDuhen/consul-fetcher-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul Fetcher javascript action

This action retrieves key/values from a Consul and sets it as environment variables

Inputs

url

Required The Consul's Url to retrieve your KV.

token

Required The Consul's Token to retrieve your KV.

path

Required The path where you want retrieve all your keys/values from Consul. Could be the path to a folder or the complete path to a single key.

Example usage

uses: fduhen/consul-fetcher-action@v1.1
with:
  url: 'https://consul-url.com'
  token: 'myGeneratedTokenFromConsul'
  path: 'CI'

TODO

* [ ] Code cleanup
* [ ] Correctly managing async functions
* [ ] Managing status code errors

Security

The env vars which are created after reading the values from Consul are automatically masked in order to prevent any leak of sensitive datas.
Note that it only obscurs the values from the logs.

About

This action retrieves key/values from a Consul and sets it as environment variables

Resources

Stars

Watchers

Forks

Packages

No packages published