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
{{ message }}
Repository navigation
AWS SSM vs AWS Secretsmanager > Strange behaviour if only ENV AWS_REGION is set #2191
@nexeck Thanks for doing the due diligence here. I came across your issue after I'd been debugging this as well. I think some kind of signaling value, as you suggested, would make sense.
I've seen the same behaviour (with ATC randomly attempting to pull secrets from one or the other each time I launched it) and had to add these (set to default) values to force use of Secrets Manager, I assume the same will work for SSM until you implement a fix:
Ended up running in to this and fixing it in our quest to use the binaries in the BOSH release (#2575). It'll be in the next version. Thanks for the sleuthing!
@bracki the offending env var (AWS_REGION) has been removed in favor of a more clearly named var for each (following the existing CONCOURSE_ prefix scheme)
Activity
nexeck commentedon May 2, 2018
@vito Can you take a look at this?
vmware-archive/atc#229
vmware-archive/atc#262
Those two PR's introduced this behaviour.
I do not know how to fix this, without breaking the current behaviour of both Credential Managers.
Maybe remove the AWS_REGION Variable, and add two new, one for each Credential Manager?
owen-fugue commentedon May 8, 2018
@nexeck Thanks for doing the due diligence here. I came across your issue after I'd been debugging this as well. I think some kind of signaling value, as you suggested, would make sense.
jama22 commentedon May 23, 2018
@nexeck thanks for doing the research. I've scheduled it under Operations.
sjiveson commentedon Jun 5, 2018
I've seen the same behaviour (with ATC randomly attempting to pull secrets from one or the other each time I launched it) and had to add these (set to default) values to force use of Secrets Manager, I assume the same will work for SSM until you implement a fix:
analytically commentedon Jul 25, 2018
Seeing strange behaviour as well, the secret id is extracted from the arn? Can't seem to get it to work.
sjiveson commentedon Jul 25, 2018
Secret ID? Can you elaborate?
Luke-Vear commentedon Oct 26, 2018
Getting this issue on concourse 4.2.1
vito commentedon Nov 7, 2018
Ended up running in to this and fixing it in our quest to use the binaries in the BOSH release (#2575). It'll be in the next version. Thanks for the sleuthing!
bracki commentedon Dec 4, 2018
@vito How does #2575 solve this very issue? Shouldn't there be the ability to tell Concourse exactly which credentials backend to use?
vito commentedon Dec 4, 2018
@bracki the offending env var (
AWS_REGION) has been removed in favor of a more clearly named var for each (following the existingCONCOURSE_prefix scheme)Jeeppler commentedon Jan 15, 2019
@Luke-Vear do you still have this issue in Concourse 4.2.2?
benabineri commentedon Apr 9, 2019
We are still seeing this on 4.2.3. This is on a concourse web instance configured with the following environment variables (among others, of course):
Started with the following command:
Log entries below - nothing changed, just a restart (of the ECS service):
Should we unset AWS_REGION?
vito commentedon Apr 10, 2019
@benabineri Yes, you should avoid setting
AWS_REGION. This was fixed in v5.0.0 by using a different var for both.eedwards-sk commentedon May 20, 2019
@vito SSM docs still say
AWS_REGION: https://concourse-ci.org/aws-ssm-credential-manager.htmland ASM docs say
CONCOURSE_AWS_SECRETSMANAGER_REGION: https://concourse-ci.org/aws-asm-credential-manager.htmlhowever this issue seems to claim SSM should use
CONCOURSE_AWS_SSM_AWS_REGION: #2003which differs from the ASM version (
_REGIONvs_AWS_REGION)Which one is correct?
Edit: I should probably open a new issue for this!
Update aws secretsmanager doc