AWS Credential Daemon: How It Works, and a Walkthrough on macOS and Linux
By Fabio Douek
Human-led, AI-assisted. Research and implementation done with AI tools, led, tested and edited by me. How posts are labeled
EventAWS re:Invent 2026: times, streams and recordings →Nov 30 to Dec 4, 2026
Jump to section
- Overview
- Architecture
- How It Works
- The problem it removes
- Sealing: one master key, held by the keystore
- Exchange: long-lived in, short-lived out
- Delivery: credential_process
- Boundaries: a smaller session for the same key
- Who is asking, and who may change things
- What credsd Can’t Do
- Verdict
- Overview
- Setup
- The Demo: Taking an Agent’s Keys Away
- Step 1: Import the plaintext key, then delete it
- Step 2: Point the AWS CLI at the daemon
- Step 3: A read-only boundary for the agent
- Step 4: Try to remove the boundary
- Step 5: Read the audit log
- Step 6: What same-user code can still get
- Step 7: The Linux build on a TPM
- Cleanup
- Verdict
Explain (TLDR) like I am...
Imagine you keep your house key under the doormat. Anyone who walks by, even a robot helper, can pick it up and copy it. AWS Credential Daemon is a little guard who keeps the real key locked in a safe and hands out paper keys that stop working after a while.
You can even tell the guard that the robot only gets a key for the toy room, not the kitchen. And the guard writes down in a notebook every time someone asks for a key, including when the robot asks.
AWS Credential Daemon is an open source preview, under Apache 2.0, that moves long-lived AWS access keys out of plaintext files and into an encrypted store whose master key sits in the operating system keychain or a TPM. Callers receive short-lived sessions, not the underlying key.
For due diligence: every request is logged locally with the calling process, a per-credential boundary policy narrows what a session may do, and changes need a Touch ID or administrator (sudo) approval. It does not protect against root or against code running as the same user, and it is a preview whose formats may change.
The presenting complaint is chronic exposure: AWS keys sitting in plaintext in a home directory, readable by every script and AI agent the developer runs. AWS Credential Daemon treats it by sealing the key and prescribing short-lived sessions in its place.
In my walkthrough the treatment worked as labelled: the key left the disk, a boundary blocked an agent's write, and a tampered config file was refused; the Linux build sealed its key to a TPM as well. Contraindications: it is a preview, and it does not stop code running as you from asking for a session.
There is a quiet unease in letting an AI agent run commands on a machine that holds your cloud keys. You trust it, mostly, but you also know one bad prompt could send those keys somewhere.
AWS Credential Daemon gives that unease a place to land. The agent gets a session that expires and only covers what you allowed, every request is written down, and loosening the rules takes a deliberate approval from you. It does not remove the need for trust, but it makes the trust smaller and visible.
Think of the master key as the band's original master tape, locked in the studio safe. Nobody takes it on tour: each player gets a cue sheet for tonight's set, and the sheet is useless tomorrow.
The daemon is the stage manager. The agent gets a part with only the bars it should play, a read-only part in my walkthrough, and every request for a sheet goes in the log. Changing the arrangement needs the band leader's sign-off, so nobody rewrites the score mid-show.
The pitch is simple: keep your workflow, lose the plaintext keys. The AWS CLI keeps working through a one-line profile change, and the daemon refreshes sessions in the background, so developers see no new daily step.
The angle that travels is AI agents. A team can give an agent its own narrowed credential, see every request it made, and know it cannot widen its own permissions. It is still a preview for macOS and Linux, so position it as a pilot for security-minded teams, not a fleet rollout.
Level 100 · How it works
Level 200 · Walkthrough
Level 100 · How it works
Overview
AWS Credential Daemon, credsd for short, is a local credential manager that AWS announced in preview on 1 December 2026. It takes the long-lived secrets that usually sit in plaintext under ~/.aws/, seals them under a master key held by the operating system’s keystore, and hands each tool a short-lived session instead. The AWS CLI and SDKs reach it through the credential_process setting they already support, so no application code changes.
It is open source under Apache 2.0 and written in Rust. The preview runs on macOS (Apple silicon only) and Linux; Windows is planned. The current release is v0.3.0, published on 30 November 2026, and the docs warn that commands, config and on-disk formats can still change without a migration path.
Who is it for? Developers who run AI coding agents and scripts on a machine that also holds their cloud keys, and the teams responsible for those machines. This level is an explainer: what the pieces are and how a request flows. The Level 200 walkthrough runs it for real.
Architecture
Three pieces matter. creds is the client every tool calls. credsd is the daemon, the only process that opens the keystore. The keystore holds one master key per data directory, and every secret on disk is sealed under it.
How It Works
The problem it removes
The AWS CLI and SDKs have long kept access keys, sign-in sessions and session caches in plaintext under ~/.aws/. File permissions keep other users out, but not other programs running as you. The credsd overview names the two shifts that make this worse: local AI coding agents, which run commands chosen at run time and can be talked into reading ~/.aws/, and sign-in sessions that now last up to 90 days, so one copied file is months of access.
Sealing: one master key, held by the keystore
Every secret is sealed with AES-256-GCM under a random 32-byte master key. Where that key lives depends on how you install it (key security):
| Install | Daemon runs as | Where the master key lives | Protects against |
|---|---|---|---|
| macOS, signed release (user install) | you | Data protection keychain, readable only by the signed daemon | A copied disk; other processes running as you |
| macOS, built from source (system install) | credsd service account | Secure Enclave wraps the key | A copied disk or data directory |
Linux, -tpm build (system install) | credsd service account | Sealed to the TPM 2.0 | A copied disk, backup or blob |
| Any host without the hardware | credsd service account | A 0600 key file (file backend) | Not hardware-protected; the docs say to use disk encryption |
There is no command to export or back up the master key. Lose the machine and every sealed secret goes with it: sign-in based credentials need one new sign-in, and an access key you imported is gone unless you kept a copy elsewhere, so you create a new one at AWS.
Exchange: long-lived in, short-lived out
Most credential types hold a secret whose only job is to be swapped for a session:
| Type | Holds | Hands out |
|---|---|---|
aws-iam-user | An access key pair | A session from sts:GetSessionToken |
aws-idc-sso | An IAM Identity Center session | Role credentials for one account and role |
aws-login | An AWS Sign-In session | AWS credentials, rotated on each refresh |
aws-roles-anywhere, aws-web-identity | A private key or an OAuth sign-in | Role credentials |
oauth | A client secret or key | An OAuth access token |
static-secret, jwt | An API key or token | The secret itself, as stored |
The daemon caches each session and refreshes it in the background. creds import aws-profiles turns the static-key profiles in ~/.aws/credentials into aws-iam-user credentials, but it only reads that file: deleting the plaintext copy is your job.
Delivery: credential_process
A tool never opens the store. The AWS CLI and SDKs run the command in a profile’s credential_process line, which asks the daemon over its Unix socket:
[profile work]
region = us-east-1
credential_process = /Users/alice/.local/bin/creds get --credential work --format credential-process
A script can do the same with eval "$(creds get --credential work --format shell)". The credential is always named explicitly; credsd never guesses it from AWS_PROFILE.
Boundaries: a smaller session for the same key
creds boundary set attaches an IAM policy document (up to 2,048 bytes compacted) to a credential. From then on every session served for it is narrowed by that policy, whoever asks. The daemon does the narrowing through sts:GetScopedCredentials, so the limit is applied by AWS when the session is minted and travels with it. creds get --policy narrows a single fetch further. Only AWS session credentials can carry a boundary.
One caveat on the docs: the overview still says this scope-down ceiling is “in development and no release carries it yet”, while the command reference documents creds boundary. In v0.3.0 a boundary you set on a credential works, and Level 200 shows it. Nothing applies one automatically to agent credentials.
Who is asking, and who may change things
- Caller identity comes from the kernel. The daemon reads the caller’s uid from the socket. There is no bearer token to steal, and each uid sees only its own credentials.
- Agents are recorded. The daemon walks the caller’s process ancestry and records in its audit log when an agent harness is among the ancestors.
creds get --agenticdeclares it explicitly. This is telemetry, not access control. - Changes need approval. Replacing or removing a credential, and removing or replacing a boundary, need a Touch ID signature or
sudo creds request approve <id>. Enrolling the Touch ID key in the first place takessudo. Adding a first boundary needs nothing, because it can only take permissions away. - Hand edits are caught. The config files are sealed in snapshots, pinned by a per-user integrity record. A file that no longer matches is refused until
creds revalidate, which also needs approval.
AWS also pitches it with Strands Box, its agent sandbox, so an agent can use a credential by name without the secret ever entering the sandbox. The credsd docs only name it, but Strands Box’s credentials page describes it: a credsd://work route has the box ask the daemon for credentials on each request, and it needs credsd 0.2.0 or later.
What credsd Can’t Do
- Stop code running as you from asking. Anything running as your user can call
creds getand receive a session. It gets a short-lived, possibly narrowed session rather than the key, but it gets one. - Protect against root, or against code running as the daemon’s own account.
- Sandbox what happens next. A process that receives a session can use it however it likes.
- Run everywhere. No Windows and no Intel Mac release in this preview; the signed macOS release is Apple silicon only.
- Promise stable formats. It is a preview: commands, config and the on-disk layout may change between releases without a migration.
- Back up or move your secrets. The master key never leaves the machine.
Verdict
As a design, credsd addresses a real gap. The plaintext ~/.aws/credentials file was always readable by every process you run, and AI agents make that much more dangerous. The split it makes is sensible: one daemon opens the keystore, everything else gets sessions that expire. Narrowing happens at AWS, not on the laptop. Loosening the rules takes an approval that a process running as you cannot give itself.
Its closest neighbours are aws-vault and Granted. They also keep keys in the OS keystore and hand out sessions, but they reach the keystore with your user’s permissions. credsd adds a separate daemon, approval-gated changes, per-credential boundaries, an audit log that notices agents, and non-AWS secrets in the same store. The limits are honest and documented: it does not protect against code running as you or against root, and it is an early preview. If you run agents on a machine with AWS keys, it is worth a trial; the Level 200 walkthrough shows what that trial looks like.
Level 200 · Walkthrough
Overview
This walkthrough installs credsd v0.3.0 on my Mac, moves a plaintext IAM key into it, and points the AWS CLI at it. It then gives an “agent” credential a read-only boundary and tries to break the rules: a write, removing the boundary, and hand-editing the config. Last, it reads the audit log and installs the Linux build on an EC2 instance with a TPM. For what credsd is and how it works, see Level 100.
Every command below is a real run from 2 December 2026. I used a throwaway IAM user, credsd-demo, allowed to read and write one test bucket, and a throwaway home directory for the AWS config, so my own keys were never involved. Paths show my home as /Users/me, and account IDs and key IDs are masked.
Setup
The signed macOS package needs Apple silicon and no sudo. I downloaded it from the v0.3.0 release, checked its GPG signature against the project’s KEYS file (Good signature from "AWS Credential Daemon"), and installed it into my home directory. It is also notarized by Apple.
installer -pkg credsd-macos-aarch64.pkg -target CurrentUserHomeDirectory
credsd status
installed: true
running: true
binary: /Users/me/Applications/Credsd.app/Contents/MacOS/credsd
args: --storage-backend data-protection-keychain serve
backend: data-protection-keychain
data dir: /Users/me/Library/Application Support/credsd-demo
socket: /Users/me/Library/Application Support/credsd-demo/credsd.sock
The data directory is credsd-demo rather than the default credsd because of a rehearsal that went wrong; see the warning in Step 5.
The Demo: Taking an Agent’s Keys Away
Step 1: Import the plaintext key, then delete it
This is what most ~/.aws/credentials files look like: a long-lived key, in plaintext, twice here, once for me and once for an agent.
$ cat ~/.aws/credentials
[demo]
aws_access_key_id = AKIA****************
aws_secret_access_key = ****************************************
region = us-east-1
[agent]
aws_access_key_id = AKIA****************
aws_secret_access_key = ****************************************
region = us-east-1
$ creds import aws-profiles
imported 'demo'
imported 'agent'
Imported 2 credential(s).
$ creds list
CREDENTIAL KIND STATUS TAGS
agent session_credentials active
demo session_credentials active
$ rm ~/.aws/credentials
The import only reads the file, so the last line is mine. Afterwards the daemon’s credentials.toml holds the type and region of each credential and nothing else: the key ID and secret are only in credentials/<name>/iam_user.enc.
Step 2: Point the AWS CLI at the daemon
Two profiles in ~/.aws/config, each with a credential_process line. The agent’s adds --agentic:
[profile demo]
region = us-east-1
credential_process = /Users/me/.local/bin/creds -q get --credential demo --format credential-process
[profile agent]
region = us-east-1
credential_process = /Users/me/.local/bin/creds -q get --credential agent --agentic --format credential-process
$ aws sts get-caller-identity --profile demo --query Arn --output text
arn:aws:iam::************:user/credsd-demo
$ aws s3 ls s3://$B/reports/ --profile demo
2026-12-02 09:15:50 23 hello.txt
$B holds the test bucket’s name. The CLI works as before, with no key on disk. Behind it the daemon called sts:GetSessionToken: the session it serves expires 12 hours after it was minted, and the daemon refreshes it in the background.
Step 3: A read-only boundary for the agent
The IAM user may write to the bucket. The agent should not, so its credential gets a boundary that allows reading only:
$ cat read-only.json
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:ListBucket","s3:GetObject"],"Resource":"*"}]}
$ creds boundary set --credential agent --policy file://read-only.json
✓ Boundary set for 'agent' sha256:99671fefb37f4a29
verified with AWS: sts:GetScopedCredentials accepted the policy
! this boundary does not allow sts:GetScopedCredentials, so `creds get --policy` on
'agent' will be refused, and so will any narrowing a consumer adds.
To allow both, add "sts:GetScopedCredentials" to an Allow statement.
Sessions served for 'agent' from now on are narrowed by this policy.
Sessions already served keep their permissions until they expire,
or until the role's active sessions are revoked in IAM.
Two details from the output. The policy was tried with AWS before it was stored. And the IAM user needs sts:GetScopedCredentials in its own policy for this to work; I had added it when I created the user.
Then the test: a read, a write as the agent, and the same write as me.
$ aws s3 cp s3://$B/reports/hello.txt - --profile agent
hello from credsd demo
$ aws s3 cp note.txt s3://$B/reports/note.txt --profile agent
upload failed: ./note.txt to s3://credsd-demo-406352/reports/note.txt An error occurred (AccessDenied) when calling the PutObject operation: User: arn:aws:iam::************:user/credsd-demo is not authorized to perform: s3:PutObject on resource: "arn:aws:s3:::credsd-demo-406352/reports/note.txt" because no session policy allows the s3:PutObject action
$ aws s3 cp note.txt s3://$B/reports/note.txt --profile demo --no-progress
upload: ./note.txt to s3://credsd-demo-406352/reports/note.txt
Same IAM user, same key, two outcomes. The denial names the reason: “no session policy allows the s3:PutObject action”. AWS enforced the boundary, not the laptop.
Step 4: Try to remove the boundary
An agent that wants to write could try to remove its own boundary. Both ways fail:
$ creds boundary unset --credential agent
Approval required: remove the boundary of credential 'agent'
current sha256:99671fefb37f4a2900cb37981aeacc3628394b314d2d2cdd8578180cc1349ac7
...
After removal, sessions served for 'agent' carry every permission of the IAM user behind it.
Pending request req-862e7105f1c9 (expires in 15m).
Approve from a privileged session:
sudo creds request approve req-862e7105f1c9
...
error: configuration error: not applied yet: it takes effect when request req-862e7105f1c9 is approved
The command leaves a pending request that sudo creds request approve must confirm. The output also offers Touch ID after creds presence enroll, which I didn’t try. So I edited the file directly, deleting the boundary_policy block from credentials.toml ($T holds its path):
$ cp "$T" /tmp/credentials.toml.bak
$ sed -i '' '/^boundary_policy/,/^}"""/d' "$T"
$ aws s3 cp s3://$B/reports/hello.txt - --profile agent
aws: [ERROR]: Error when retrieving credentials from custom-process: error: configuration error: config drifted: credential 'agent' credential sources (credentials.toml) have drifted from their sealed snapshot; run: creds revalidate
$ cp /tmp/credentials.toml.bak "$T"
$ aws s3 cp s3://$B/reports/hello.txt - --profile agent
hello from credsd demo
The daemon compared the file with its sealed snapshot and refused to serve anything, not even the read. It failed closed instead of serving the wider session. Putting the original file back made it serve again; accepting the edit would have needed creds revalidate and an approval.
Step 5: Read the audit log
The daemon logs every request to ~/Library/Application Support/credsd/credsd.log. It stayed there after I pointed the daemon at a new data directory, although the configuration reference says the log goes in the data directory. The lines are long, so I wrote a short Python script that prints the fields I care about:
$ python3 audit.py 12
TIME CREDENTIAL EVENT DETAIL
09:31:22 agent caller signal=confirmed_agent claimed=Agentic agent=claude
09:31:22 agent served narrowed by boundary sha256:99671fefb37f4a29
09:31:22 demo refreshed new session from STS
09:31:26 agent caller signal=confirmed_agent claimed=Agentic agent=claude
09:31:26 agent served narrowed by boundary sha256:99671fefb37f4a29
09:31:31 demo caller signal=unreported_agent claimed=Unstated agent=claude
09:31:41 agent caller signal=confirmed_agent claimed=Agentic agent=claude
09:31:41 agent REFUSED credentials.toml drifted from its sealed snapshot
09:31:47 agent caller signal=confirmed_agent claimed=Agentic agent=claude
09:31:47 agent served narrowed by boundary sha256:99671fefb37f4a29
09:31:47 demo refreshed new session from STS
09:31:52 demo caller signal=unreported_agent claimed=Unstated agent=claude
This surprised me. My demo was driven by an AI agent, Claude running through the Claude Agent SDK, which typed the commands for the recording. The daemon noticed: every request names claude in the caller’s process tree. Requests through the agent profile, which says --agentic, are confirmed_agent. Requests through demo, which says nothing, are flagged unreported_agent: an agent asked without saying so. The raw log line also carries each process in the chain with its pid, uid and binary path. The refusal from Step 4 is there too, with its reason.
The README calls this process classification best-effort telemetry. To tell an agent’s actions apart from yours in CloudTrail, give the agent its own credential and IAM role. My agent and demo profiles share one IAM user, so in CloudTrail both show up as that user.
credsd uninstall --user --purge-key --storage-backend data-protection-keychain and reinstalled. Every call then failed with "config unverifiable: the integrity record for this user cannot be opened (decryption failed)". The command reference gives this uninstall, followed by a plain reinstall, as the way to start over, and doesn't mention the integrity record. The per-user integrity record lives in a keychain slot that the purge does not remove, and recovering takes creds revalidate with a sudo or Touch ID approval. That is the right call for security, but plan for it. I worked around it by pointing the LaunchAgent at a fresh data directory (CREDSD_DATA_DIR and CREDSD_SOCKET in its plist, then credsd init), which is why the paths say credsd-demo.
Step 6: What same-user code can still get
The honest limit, as the docs state it: any process running as me can ask the daemon. $CR is my folder in the data directory, callers/501.
$ creds get --credential demo --format shell
export AWS_ACCESS_KEY_ID=<redacted>
export AWS_SECRET_ACCESS_KEY=<redacted>
export AWS_SESSION_TOKEN=<redacted>
$ ls "$CR/credentials/demo"
iam_user.enc
$ head -c 160 "$CR/credentials/demo/iam_user.enc"; echo
{"ciphertext":"rio4LpxhZP9f0crx9nY2LUVlpY0CDL4SaJ1ycujnlWKSTRfSuncp/Nb/+McJ5WdRS8/2n2W88RXuoMQek6DFGcDNuYoqkwSfJIFD/zZ539CBQLxsvpRaACoBKYw14N5GmlqG7vkDOMtXspQmy
What it gets is a session (an ASIA key with a token), not the long-lived key, and it is logged. The file on disk is ciphertext, and security find-generic-password could not find the keychain item that holds the master key. So a script that copies files out of my home directory gets nothing useful. A script that calls creds get gets a session that expires, narrowed if the credential has a boundary.
Step 7: The Linux build on a TPM
For the Linux side I launched an EC2 t3.micro running Amazon Linux 2023 with NitroTPM, and ran the getting-started steps over SSH. The instance needs an AMI registered with TPM 2.0 support, as the AWS CLI install guide says. The current AL2023 AMI in us-east-1 doesn’t have it set, so I copied it and registered its snapshot again with --boot-mode uefi --tpm-support v2.0.
First the TPM libraries. The tpm2-tss package also ships a udev rule that hands /dev/tpmrm0 to the tss group, which the credsd service joins. The rule applies to devices created after it is installed, so the device that already exists needs it applied once (a reboot does the same):
$ ls -l /dev/tpmrm0
crw-------. 1 root root 254, 65536 Dec 2 18:54 /dev/tpmrm0
$ sudo dnf install -y -q tpm2-tss && rpm -q tpm2-tss
tpm2-tss-4.0.2-1.amzn2023.0.1.x86_64
$ cat /usr/lib/udev/rules.d/60-tpm-udev.rules
# tpm devices can only be accessed by the tss user but the tss
# group members can access tpmrm devices
KERNEL=="tpm[0-9]*", TAG+="systemd", MODE="0660", OWNER="tss"
KERNEL=="tpmrm[0-9]*", TAG+="systemd", MODE="0660", GROUP="tss"
$ sudo udevadm trigger --action=change --subsystem-match=tpm --subsystem-match=tpmrm && sudo udevadm settle && ls -l /dev/tpmrm0
crw-rw----. 1 root tss 254, 65536 Dec 2 18:56 /dev/tpmrm0
Then the -tpm archive, its signature and checksum, and the system install ($base is the v0.3.0 release’s download URL):
$ curl -fsSLO $base/credsd-linux-x64-tpm.tar.gz{,.sig} $base/SHA256SUMS && ls credsd*
credsd-linux-x64-tpm.tar.gz
credsd-linux-x64-tpm.tar.gz.sig
$ curl -fsSL https://raw.githubusercontent.com/aws/credential-daemon/main/KEYS | gpg --import 2>&1 | grep imported
gpg: key 189A6EBAE4B4D2A4: public key "AWS Credential Daemon <aws-credential-daemon@amazon.com>" imported
$ gpg --verify credsd-linux-x64-tpm.tar.gz.sig credsd-linux-x64-tpm.tar.gz 2>&1 | grep signature
gpg: Good signature from "AWS Credential Daemon <aws-credential-daemon@amazon.com>" [unknown]
$ sha256sum --ignore-missing -c SHA256SUMS
credsd-linux-x64-tpm.tar.gz: OK
$ tar xzf credsd-linux-x64-tpm.tar.gz && sudo install -m 0755 credsd-linux-x64-tpm/{credsd,creds} /usr/local/bin/
$ sudo credsd install
Created symlink /etc/systemd/system/sockets.target.wants/credsd.socket → /etc/systemd/system/credsd.socket.
credsd installed as a system service. It will start on demand.
$ credsd status
installed: true
running: false
binary: /usr/local/bin/credsd
args: --storage-backend tpm serve --system
backend: tpm
data dir: /var/lib/credsd
socket: /run/credsd/credsd.sock
running: false is expected here: the service is socket-activated and starts on the first request. The AWS guide’s sample output shows running: true right after the install; mine read false until the first request. As ec2-user, I stored a test API key and read it back:
$ printf demo-api-key-123 | creds bootstrap --credential api static-secret
$ creds list
CREDENTIAL KIND STATUS TAGS
api access_token active
$ creds get --credential api --format shell
export API='demo-api-key-123'
$ id credsd; ls /var/lib/credsd
uid=993(credsd) gid=993(credsd) groups=993(credsd)
ls: cannot open directory '/var/lib/credsd': Permission denied
$ sudo ls -l /var/lib/credsd/tpm
total 8
-rw-------. 1 credsd credsd 71 Dec 2 18:57 daemon-encryption-key.dcaf0424c4cff77b.meta
-rw-------. 1 credsd credsd 208 Dec 2 18:57 daemon-encryption-key.dcaf0424c4cff77b.sealed
The daemon’s journal shows encryption key loaded backend="tpm" as it starts. On Linux it runs as its own credsd account, so ec2-user can use credentials through the socket but cannot even list the daemon’s folder. The master key sits in a 208-byte blob that only this machine’s TPM can unseal.
Cleanup
Before uninstalling, take the credential_process lines out of ~/.aws/config and restore whatever credentials those profiles used before, as the AWS install guide says. Step 1 deleted the plaintext file, so on a real profile that means a new access key, unless you kept a copy.
On the Mac, removing a credential needs approval, so I removed the whole install instead. --purge-key asks for a typed yes:
credsd uninstall --user --purge-key --storage-backend data-protection-keychain
rm -rf ~/Applications/Credsd.app ~/.local/bin/creds ~/.local/bin/credsd
rm -rf "$HOME/Library/Application Support/credsd" "$HOME/Library/Application Support/credsd-demo"
In AWS, the test bucket, the IAM user and its key, the copied AMI with its snapshot, the instance, and the SSH key pair and security group:
aws s3 rb s3://credsd-demo-406352 --force
aws iam delete-access-key --user-name credsd-demo --access-key-id <key id>
aws iam delete-user-policy --user-name credsd-demo --policy-name credsd-demo-s3
aws iam delete-user --user-name credsd-demo
aws ec2 terminate-instances --instance-ids <instance id>
aws ec2 deregister-image --image-id <ami id> # both AMIs
aws ec2 delete-snapshot --snapshot-id <snapshot id>
aws ec2 delete-key-pair --key-name <key name>
aws ec2 delete-security-group --group-id <group id>
The whole walkthrough, EC2 instance included, cost a few cents.
Verdict
credsd did what it claims on both platforms. The plaintext key left the disk, and the AWS CLI kept working through one credential_process line per profile. A boundary on the same IAM key turned the agent’s write into an AccessDenied from AWS. Neither the CLI nor a hand-edited config file got the agent past it: the first left a request waiting for a sudo (or Touch ID) approval, the second made the daemon refuse everything. The audit log was the surprise: it spotted the AI agent driving my demo, even on the profile that did not declare it.
What works
- Signed, notarized macOS install without
sudo, and a GPG-signed Linux archive. creds import aws-profilespluscredential_process: no code changes.- Boundaries enforced by AWS at minting time, with a clear denial message.
- Approval gates and drift detection that a same-user process could not get around in my tests.
- An audit log that records the caller’s process tree and flags agents.
What doesn’t (yet)
- Same-user code still gets a session by asking; the boundary is what limits the damage, so set one.
- Reinstalling with
--purge-keyleaves an integrity record that only an approvedcreds revalidateclears. - On EC2 the TPM build needs an AMI registered with NitroTPM, which the current Amazon Linux 2023 AMI isn’t, and
tpm2-tss’s udev rule applied before the install. - The overview still says scope-down isn’t shipped; v0.3.0 ships boundaries you set per credential, but not an automatic one for agents.
- Preview formats, no Windows, no Intel Mac release.
Compared with aws-vault, which I’d otherwise reach for, credsd is more work to set up, but it gives me what aws-vault can’t: a boundary per credential, approvals that a script running as me cannot grant itself, and a record of which agent asked. For a laptop that runs AI agents against AWS, I’d use it now for the agent’s credentials, with a boundary on each, and keep watching the preview before moving everything else.
The my2cents.ai email
AI and cloud tools, tested for real. In your inbox once a week.
The week's hands-on tests and the launches that matter, in one email.