Skip to content

feat(account): IAM user infraclaw-worker - #101

Merged
dcg-infraclaw[bot] merged 1 commit into
feat/adopt-existing-infrafrom
feat/infraclaw-worker-iam
Nov 25, 2026
Merged

dcg-infraclaw[bot] merged 1 commit into
feat/adopt-existing-infrafrom
feat/infraclaw-worker-iam

Conversation

@dcg-infraclaw

@dcg-infraclaw dcg-infraclaw Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Adds the IAM user infraclaw-worker to the account stack. 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:

  • Look: a written-out list of describe and list calls (instances, volumes, security groups, addresses, load balancers, Route 53 records, CloudWatch metrics, bucket names). No instance user data, no S3 objects, no parameters, no secrets, no function code or configuration.
  • Log in to devnet hosts: ec2-instance-connect:SendSSHPublicKey as ubuntu, only on instances whose DashNetwork tag starts with devnet-. 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:

Call Result
DescribeInstances allowed
Instance Connect to a devnet host as ubuntu, then SSH works
Instance Connect to a devnet host as root denied
Instance Connect to the testnet wallet node, the status host, mainnet Insight denied
Instance user data, CreateTags, StopInstances denied
Listing the state bucket, reading a secret, ssm:SendCommand, listing IAM users denied

The 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

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]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d610993f-a608-4ae5-acd4-c40fbf27170d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dcg-infraclaw
dcg-infraclaw Bot merged commit 3e002c0 into feat/adopt-existing-infra Nov 25, 2026
1 check passed
@dcg-infraclaw
dcg-infraclaw Bot deleted the feat/infraclaw-worker-iam branch November 25, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant