Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Access value of secure environment variable in Pipelines

teto02 NA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2017

I am writing some code to integrate with AWS, using APIs (Node.js) but keep getting stuck at the point of the SDK tries to authenticate with AWS in the signature generation. Both my ACCESS and SECRET keys were marked as secure. 

I have reverted the AWS_ACCESS_KEY_ID variable to be non-secure and managed to get an authentication error, rather than a signature error (as I was getting when this variable was secured), which leads me to beleive its to do with my scripts not being able to access the secure variable value correctly.

I have tried to access via process.env or pass them in as args to no avail.

What is the correct way of ensuring the correct value is used by any script, bash or node?

Thanks

 

1 answer

0 votes
Ricardo Souza August 14, 2024

Anyone?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events