You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running in AWS with an instance role, setting accessKeyId and secretAccessKey to null does not result in the key, secret, and token being read correctly from the Instance Metadata service.
Or rather these values are being obtained, but they are being assigned to the variables that are then not referenced.
Here in lib/aws.js you are setting securityToken, accessKeyId, and secretAccessKey prior to the values in obj being reset with the values obtained from Instance Metadata.
var securityToken = obj.token;
var signHeader = obj.signHeader;
var host = obj.host;
var accessKeyId = obj.accessKeyId;
var path = obj.path;
var agent = obj.agent;
var secretAccessKey = obj.secretAccessKey;
var secure = obj.secure == null ? true : false;
var connection = secure ? https : http;
Then when you reference the scope variables later they are still null even though you have updated obj.
When running in AWS with an instance role, setting
accessKeyId
andsecretAccessKey
to null does not result in the key, secret, and token being read correctly from the Instance Metadata service.Or rather these values are being obtained, but they are being assigned to the variables that are then not referenced.
Here in
lib/aws.js
you are settingsecurityToken
,accessKeyId
, andsecretAccessKey
prior to the values inobj
being reset with the values obtained from Instance Metadata.Then when you reference the scope variables later they are still null even though you have updated
obj
.See PR: https://github.com/livelycode/aws-lib/pull/84
The text was updated successfully, but these errors were encountered: