Skip to content

fix(remote): grant the deploy role secretsmanager:PutSecretValue - #149

Merged
outofcoffee merged 1 commit into
mainfrom
fix/deploy-put-secret-value
Sep 3, 2026
Merged

fix(remote): grant the deploy role secretsmanager:PutSecretValue#149
outofcoffee merged 1 commit into
mainfrom
fix/deploy-put-secret-value

Conversation

@outofcoffee

Copy link
Copy Markdown
Collaborator

Key rotation deploys fail: the deploy role lacks the action 1.31.0's rotation path needs.

Summary

  • remote deploy --api-key-env (1.31.0) rotates an existing environment's key secret via secretsmanager:PutSecretValue, but the deploy Lambda's role was only ever granted the create-path actions (CreateSecret, DescribeSecret) — so a rotation deploy dies with an IAM denial wrapped as HTTP 502.
  • Add secretsmanager:PutSecretValue to the deploy role's grant, scoped to the same per-environment cloud-vm-llm/* secret prefix, with the stack test asserting it.

Implementation details

  • The 1.31.0 Lambda code already calls the action — this is purely the missing policy line. Applying it is a plain remote bootstrap re-run: an idempotent stack update that changes only the role's policy (no AMI bake, no reseed, no environment redeploy).

@outofcoffee outofcoffee added the bug Something isn't working label Sep 3, 2026
@outofcoffee
outofcoffee merged commit daad736 into main Sep 3, 2026
3 checks passed
@outofcoffee
outofcoffee deleted the fix/deploy-put-secret-value branch September 3, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant