-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fetch api keys, secrets etc from env and apply it to jobs #1002
Comments
API keys can be passed in two ways: 1) Sending API key directly In URL
2) Sending API key via authorization headers
|
As suggested
Implemented the same in #1097 While defining the job which requires a API key, staker needs to follow regex defined in constants.go , which is set to e.g e.g. if this is the required format for this API
Than a job with url can be created as shown below,
Now staker needs to use the same keyword defined inside ${...} as a environment variable using
Oracle node will directly look for the same in os environment variables and pick the respective value. |
Analysis: some URLs may require authentication or API keys.
Possible solution: Consider reading the keys from env and substituting it while fetching a job.
The text was updated successfully, but these errors were encountered: