mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 06:47:41 -05:00
* fix(ssm): resolve Secrets Manager references in GetParameter GetParameter and GetParameters now answer /aws/reference/secretsmanager/<secret-id>[:<version-id-or-label>] from Secrets Manager, with the checks, error texts and response fields measured against AWS: WithDecryption must be true, a missing secret is ParameterNotFound, and GetParameters lists a reference it cannot answer in InvalidParameters. ECS task secrets and CodeBuild parameter-store variables read through the same path; a CloudFormation AWS::SSM::Parameter::Value<String> parameter still refuses one, as on AWS. * fix(ssm): check secretsmanager:GetSecretValue on a Secrets Manager reference AWS reads /aws/reference/secretsmanager/ with the caller's own secretsmanager:GetSecretValue, checked before the secret is looked up. With IAM enforcement on, a caller allowed only ssm:GetParameter now gets the ValidationException AWS sends, and GetParameters fails as a whole. * fix(ssm): authorize a Secrets Manager reference on the secret's ARN A grant on a secret's exact ARN, which CDK grantRead and a CloudFormation Ref produce, did not match the suffix-less name ARN, so an allowed caller was refused. The check now uses the secret's ARN and falls back to the name only when the secret does not exist. * fix(ssm): check a Secrets Manager reference's value on the secret it came from The value is read by name after the check, so a secret force-deleted and recreated in between was returned on the old secret's grant. The ARN of the secret actually read is now checked too. * fix(ssm): read a Secrets Manager reference's value from the secret it described * docs(ssm): note the partial-ARN fallback a Secrets Manager reference read leaves * fix(ssm): return SourceResult on a Secrets Manager reference * fix(ssm): reject a malformed Secrets Manager reference before checking IAM * chore(ssm): sort SsmService imports