Skip to content

Move the reference AWS CLI to 2.41.2 - #18

Merged
conao3 merged 10 commits into
masterfrom
reference/2.41.2
Nov 21, 2026
Merged

conao3 merged 10 commits into
masterfrom
reference/2.41.2

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Moves the reference AWS CLI from 2.41.1 to 2.41.2 (changelog) with scripts/update-reference.sh 2.41.2.

Check Result
make check failure
awsr-difftest corpus (the changed services) failure
scripts/compare-help.sh (the pages of the changed services and of the commands whose examples or topics changed) success
awsr-difftest scenario, awsr-difftest s3, difftest/scripts/credcompare.sh failure

Files of the reference that scripts/update-reference.sh does not carry over (scripts/classify-reference-changes.sh), to port in this PR:

  • awscli/botocore/serialize.py
  • awscli/customizations/agentregistry/__init__.py
  • awscli/customizations/agentregistry/browserflow.py
  • awscli/customizations/agentregistry/cache.py
  • awscli/customizations/agentregistry/constants.py
  • awscli/customizations/agentregistry/dataplane.py
  • awscli/customizations/agentregistry/install_skill.py
  • awscli/customizations/agentregistry/list_skills.py
  • awscli/customizations/agentregistry/providers.py
  • awscli/customizations/agentregistry/sign_out.py
  • awscli/customizations/agentregistry/uninstall_skill.py
  • awscli/customizations/agentregistry/utils.py
  • awscli/customizations/argrename.py
  • awscli/customizations/s3/factory.py
  • awscli/customizations/sso/utils.py
  • awscli/handlers_registry.py

Changes outside the models (CHANGELOG.rst):

  • enhancement:agent-registry: Add list-skills, which lists a registry's skills with the name in each one's SKILL.md and the AI coding agents each is installed for, install-skill and uninstall-skill, which install or update a skill, given by record ID or by record name with --record-name, for detected AI coding agents (or one chosen with --agent), in a folder named after its SKILL.md name and from the record's SKILL.md text when it has no package, and uninstall it again, and sign-out, which revokes and deletes cached sign-ins, with browser sign-in to CUSTOM_JWT registries through --authorizer JWT on list-skills and install-skill.
  • enhancement:crt: Support max_attempts values above 64 in the CRT transfer client.
  • enhancement:Python: Upgraded the Python interpreter that is bundled with AWS CLI v2 installers to version 3.14.10.
  • bugfix:Serializers: Validate that hostLabel parameter values contain only letters, digits, hyphens, or periods.
  • enhancement:crt: Support max_attempts = 1 in the CRT transfer client.
  • enhancement:crt: Support retry_mode = adaptive in the CRT transfer client.

Run: https://github.com/conao3/rust-awscli/actions/runs/44802936338

test cli::fingerprint_tests::argument_tables_match_the_reference ... FAILED
thread 'cli::fingerprint_tests::argument_tables_match_the_reference' (43126) panicked at src/cli/fingerprint_tests.rs:74:5:
test result: FAILED. 277 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 6.77s
34344 cases: 34257 passed, 3 failed, 84 skipped (reference vs candidate; 2193.0s)

failures by cause:
     3  differs: exit, stdout, stderr, requests
        rtbfabric GetAvailableModuleVersion 1 json input=args
        rtbfabric GetAvailableModuleVersion 1 text input=args
        rtbfabric GetAvailableModuleVersion 1 table input=args pty=80

skipped:
    72  operation is not a CLI command
    12  custom required argument

reports: /home/runner/work/rust-awscli/rust-awscli/target/difftest/report
match: 3017/3034, match with the line breaks taken out: 17
/home/runner/work/_temp/scenario.log:FAIL history show s3 cp recursive
/home/runner/work/_temp/scenario.log:FAIL history show s3 cp recursive assume role
/home/runner/work/_temp/scenario.log:FAIL history show s3 cp empty file
/home/runner/work/_temp/scenario.log:FAIL s3 redirect s3 cp download
/home/runner/work/_temp/scenario.log:FAIL s3 source-region upload ignores
/home/runner/work/_temp/scenario.log:894 passed, 5 failed; reports: /home/runner/work/rust-awscli/rust-awscli/target/difftest/scenario-report
/home/runner/work/_temp/s3.log:214 s3 scenarios: 147 passed, 67 failed
/home/runner/work/_temp/credcompare.log:passed: 121 failed: 0

Ported

  • awscli/customizations/argrename.py, awscli/handlers_registry.py: rtbfabric get-available-module-version --version is --module-version.
  • awscli/botocore/serialize.py: hostLabel values other than letters, digits, hyphens, and periods fail with a ParamValidationError (neptune-graph, s3, s3control).
  • awscli/customizations/sso/utils.py: each OAuth callback connection gets at most ten seconds and no more than the wait has left, and the browser message leaves out the cross-device hint when the caller has no such option.
  • awscli/customizations/s3/factory.py: under preferred_transfer_client = auto, only the classic-only settings make the reference stay on classic and warn; awsr's warning follows. The reference now resolves auto to the CRT client on a system it is not optimized for even with max_attempts = 1, so the difftest harness holds the reference's CRT cross-process lock (/tmp/aws_crt_cross_process_lock/aws-cli.lock) for the run, which makes the reference resolve auto to the classic client.
  • awscli/customizations/agentregistry/: agent-registry list-skills, install-skill, uninstall-skill and sign-out, the --authorizer JWT browser sign-in with its token cache, and the handlers on the generated agent-registry commands (bearer refused over plain http and under --no-verify-ssl, tokens and presigned URLs redacted from --debug and history, the sign-out hint after a 401). auth_scheme_preference now resolves against the service's auth types when the operation lists none, and AWS_BEARER_TOKEN_<signing name> is read for any service.

Not carried over

  • crt entries (max_attempts above 64, max_attempts = 1, retry_mode = adaptive in the CRT transfer client): awsr transfers with the classic client only.
  • The bundled Python interpreter upgrade: awsr does not embed Python.
  • install-skill packages whose zip entries use bzip2 or lzma fail with an unsupported-compression message instead of being extracted; deflate and stored entries are extracted like the reference. TLS handshake failures other than certificate verification and CA bundle errors print approximated OpenSSL wording.

github-actions[bot] and others added 10 commits November 20, 2026 20:55
…, and periods with a ParamValidationError like the reference 2.41.2
…to only when one is set, now that the reference 2.41.2 CRT client supports adaptive retries and any max_attempts
…wait has left, and leave out the cross-device hint when there is no such option, like the reference 2.41.2
…hat the reference 2.41.2 resolves preferred_transfer_client = auto to the classic client
…the operation has none, and find a bearer token in AWS_BEARER_TOKEN_<signing name> for any service, like the reference 2.41.2

_set_auth_scheme_preference_signer, the last choose-signer handler,
resolves the preference against the service's auth list, so a service
that also declares smithy.api#httpBearerAuth, such as agent-registry,
signs with a bearer token when httpBearerAuth is preferred.
ScopedEnvTokenProvider reads the token for any signing name; only the
preference for a token in the environment without a preference
(_should_prefer_bearer_auth) is limited to bedrock.
A scenario's "env" map is added to the environment of the reference
and the candidate, with {endpoint} and {casedir} replaced as in argv,
for commands that read a token or a port from the environment.
…ign-out with the --authorizer JWT sign-in like the reference 2.41.2

awscli/customizations/agentregistry/: list-skills lists a registry's
SKILL records with the name in each one's SKILL.md (BatchGet, 100
records a call) and the agents each is installed for, found by the
provenance marker; install-skill installs a record given by id or by
--record-name into the detected agents' skills folders, --agent or
--target-directory, from its package (downloaded from S3 in the
region, verified against the published SHA-256, checked and extracted
from the zip) or from its SKILL.md text, in a folder named after the
SKILL.md name, staged and swapped into place; uninstall-skill removes a
skill install-skill put in place; sign-out revokes (RFC 7009) and
deletes cached sign-ins and keeps the refresh tokens it could not
revoke for a later retry.

--authorizer JWT reads the registry's Protected Resource Metadata and
the issuer's OIDC discovery document over https only, through the
environment's proxies and the CLI's CA bundle and without redirects,
identifies Amazon Cognito or a generic OIDC provider, reuses or
prompts for the client id, signs in through the browser with PKCE on
the shared loopback listener, caches the token per endpoint and
registry with silent refresh (Cognito GetTokensFromRefreshToken or the
refresh_token grant), and sends a token from
AWS_BEARER_TOKEN_AGENT_REGISTRY as is.

On the generated agent-registry commands, a bearer-signed request is
refused with --no-verify-ssl (before-sign), a bearer token is kept off
plain HTTP (before-send), tokens, JWTs and presigned URL credentials
are redacted from --debug records and CLI history for the data plane
operations, and a 401 after a cached sign-in prints the sign-out hint.

AuthCodeFetcher reports the error the authorization server redirected
back with and the bind failure as is, and logs the wait and rejected
requests; PendingHandler can write to stderr.
…bundle and certificate errors and str.casefold() of the reference 2.41.2, and check the archive refusals against it

The bundled interpreter has no readline, so with stdin and stdout
terminals input() writes the confirmation and client id prompts to
stderr. The OpenSSL error locations are those of the reference build.
casefold() uses the full table of the characters whose folding differs
from lower(). testdata/archives.json holds the reference's
_check_archive and _safe_extract results on crafted packages
(gen_archives.py). The scenarios come from gen_agent_registry.py, now
with the user agents of list-skills and install-skill compared.
@conao3
conao3 marked this pull request as ready for review November 21, 2026 08:24
@conao3
conao3 merged commit b82f864 into master Nov 21, 2026
1 check passed
@conao3
conao3 deleted the reference/2.41.2 branch November 21, 2026 08:24
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