Repository navigation
Move the reference AWS CLI to 2.42.1 - #19
Merged
Merged
Conversation
…he DNS suffix of every partition, as the reference 2.42.1 does
…y profiles, keep memory credentials out of ~/.aws/cli/cache, reject other values as the reference 2.42.1 does, and compare them in credcompare.sh with the reference's session.db side files left out of the snapshots
…older has no inode number, as the reference 2.42.1 does
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.
Moves the reference AWS CLI from 2.41.2 to 2.42.1 (changelog) with
scripts/update-reference.sh 2.42.1.make checkawsr-difftest corpus(the changed services)scripts/compare-help.sh(the pages of the changed services and of the commands whose examples or topics changed)awsr-difftest scenario,awsr-difftest s3,difftest/scripts/credcompare.shFiles of the reference that
scripts/update-reference.shdoes not carry over (scripts/classify-reference-changes.sh), to port in this PR:awscli/botocore/credentials.pyawscli/customizations/agentregistry/uninstall_skill.pyawscli/customizations/codecommit.pyawscli/customizations/lambdaweb/args.pyawscli/customizations/lambdaweb/bundle.pyawscli/customizations/lambdaweb/deploy.pyawscli/customizations/lambdaweb/requests.pyawscli/customizations/lambdaweb/runtimes/__init__.pyawscli/customizations/lambdaweb/runtimes/base.pyawscli/customizations/lambdaweb/runtimes/nodejs.pyawscli/customizations/lambdaweb/runtimes/python.pyawscli/customizations/lambdaweb/scaffold.pyawscli/customizations/lambdaweb/utils.pyawscli/customizations/lambdaweb/validation.pyawscli/customizations/removals.pyawscli/customizations/s3/subcommands.pyawscli/handlers_registry.pyChanges outside the models (
CHANGELOG.rst):uninstall-skillnames the folder as it is on disk in its result line when--namediffers from it only in case.codecommit: Recognizecredential-helperhosts in every AWS partition, using the DNS suffixes from the partition data instead of a fixed listcredential_cachesetting for assume role and assume role with web identity profiles. Setcredential_cache = memoryto keep a profile's temporary credentials out of~/.aws/cli/cache.lambda-web: Add Python support foraws lambda-web deployRun: https://github.com/conao3/rust-awscli/actions/runs/44936454727
Porting
awscli/botocore/credentials.pycredential_cache(file/memory) on assume role and web identity profiles, validated for each assume role hop before the source checks and for web identity after the role ARN check, both at client creation (preflight) and at load.memoryneither reads nor writes~/.aws/cli/cache.awscli/customizations/codecommit.pycredential-helper gettakes the host check and the region pattern from thednsSuffixof every partition inpartitions.json, longest first.awscli/customizations/agentregistry/uninstall_skill.pyst_ino == 0guard. Theos.lstat(entry.path)change is Windows-only; awsr already usessymlink_metadata(entry.path()).awscli/customizations/removals.py,awscli/handlers_registry.pysrc/cli/tables.rs(regenerated) removessagemaker-gateway-runtime invoke-global-inference-gateway-with-response-stream.awscli/customizations/s3/subcommands.pys3 mbdescription is in the regeneratedmodels/help/_custom.json.zst;compare-help.shmatches thes3 mbpage.awscli/customizations/lambdaweb/*lambda-web deploy(the Python runtime support and its argument, bundle and scaffold changes) is not implemented in awsr and still ends incommand not implemented yet. Thelambda-webhelp pages match (compare-help.sh: 33 of 34 pages,deployasWRAP).Checks added: 20
credcompare.shcases forcredential_cache(memory with a seeded cache file, MFA, mixed chains, the invalid values and their order against the source checks, web identity from the profile and from the environment, an invalid value on a static profile); 16 of them fail with the 2.41.2 port and all pass now.credcompare.shalso leaves out the reference'ssession.db-shm/session.db-walfrom the file snapshots.codecommit credential-helper getmatches the reference under libfaketime for hosts in theaws-cn,aws-iso,aws-iso-b,aws-iso-e,aws-iso-fandaws-euscpartitions, a VPC endpoint, and unknown hosts.