Repository navigation
Conversation
…config Writes or updates `[profile source-coop]` (`source-coop-<environment>` outside production) in `~/.aws/config` or `AWS_CONFIG_FILE`: a credential_process running `source-coop creds --proxy-url …`, the proxy as endpoint_url, and a region only if the section has none. Only those keys change; the rest of the file is kept, symlinks included. `auth login` suggests it until the profile exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C2VyGzXgtd9L6f6Rs9xDSZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C2VyGzXgtd9L6f6Rs9xDSZ
|
Claude finished @alukach's task in 25s —— View job ✅ No blocking issues — safe to merge. I read the diff in Non-blocking notes:
Simplify (ponytail)
💰 Estimated review cost: $0.15 · 0m24s · 5 turns |
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.
Why
The README's main setup step had people edit
~/.aws/configby hand. A profile that runscredential_process = source-coop credslets the AWS CLI and SDKs renew credentials themselves, with no one-hour limit and no wrapper. Hand-written profiles had a gap: one without--proxy-urltakes its environment from whateverSOURCE_PROXY_URLthe calling shell has set, while itsendpoint_urlstays fixed.What
source-coop auth setup-aws [--proxy-url] [--role-arn] [--profile NAME] [--json]adds or updates[profile source-coop]in~/.aws/config, or inAWS_CONFIG_FILEif that's set:credential_processalways passes--proxy-url, so the environment it gets credentials from always matchesendpoint_url. It passes--role-arnonly when that isn't the default.credential_processandendpoint_urlare managed.regionis added only if the section has none. Everything else stays as it was: other profiles, comments, the section's other keys (including nested ones likes3 =), CRLF line endings and repeated keys.source-coopin production and after the environment elsewhere (source-coop-staging), or anything given with--profile.--json:{"profile", "config_file", "changed", "settings"}. Running it again reportschanged: false.auth loginsuggests the command until the environment's profile exists.object_storeandmc: which can use the profile's credentials, and how each takes the endpoint.Name:
auth setup-aws, modelled ongh auth setup-git.setup-profilecould be read as your source.coop account profile.Related: #43 (
exec) covers the tools the table lists as unable to use the profile: GDAL before 3.12 andobject_store. Once both are merged, that row can point toexec.Testing
cargo testandcargo test --features staging: 74 passed, 1 ignored. New tests inaws_configcover:cargo clippy --all-targets -- -D warningsandcargo fmt --check: clean.HOME:source-coopsection was updated in place: it's still a symlink,[default]and the user's region were kept, and a second run reportedchanged: false;source-coop-staging;AWS_CONFIG_FILEpointing into a directory that didn't exist yet created both.aws s3 ls --profile …ran this build'scredswith the profile's--proxy-url(a dummy local proxy, so no keychain entry was read). It gotnot logged in, as expected.🤖 Generated with Claude Code