Repository navigation
feat(account): IAM user infraclaw-worker - #101
Merged
dcg-infraclaw[bot] merged 1 commit intoNov 25, 2026
Merged
Conversation
The infraclaw bot's worker (the virtual machine where requests made to it in Slack are carried out) gets its own AWS user instead of a person's access. One inline policy: a written-out list of describe and list calls with nothing secret in it, and EC2 Instance Connect as ubuntu on hosts whose DashNetwork tag starts with devnet-. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the IAM user
infraclaw-workerto theaccountstack. Stacked on #93 (the branch that holds this stack).Why
Requests made to the infraclaw bot in Slack are carried out in a virtual machine (the worker). Until 2026-11-25 that work ran with a person's access. The worker now has credentials of its own, each limited to what the bot is asked for, and this user is the AWS one.
What the user may do
One inline policy,
LookAndDevnetLogin:ec2-instance-connect:SendSSHPublicKeyasubuntu, only on instances whoseDashNetworktag starts withdevnet-. The status console puts that tag on every host of a devnet it creates. The user cannot write tags.No AWS-managed policy is attached.
State
Applied from this branch on 2026-11-25: the plan was two resources to add (the user and its policy), 31 unchanged, nothing changed or destroyed.
Checked afterwards with a session of the new user:
DescribeInstancesubuntu, then SSHrootCreateTags,StopInstancesssm:SendCommand, listing IAM usersThe access key is not in the state: it was made by hand and sits in the worker behind a broker that hands out one-hour sessions.
Prepared by Claude (infraclaw) at latte's request.
🤖 Generated with Claude Code