Repository navigation
Move the reference AWS CLI to 2.41.2 - #18
Merged
Merged
Conversation
…ersion like the reference 2.41.2
…, 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.
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.1 to 2.41.2 (changelog) with
scripts/update-reference.sh 2.41.2.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/serialize.pyawscli/customizations/agentregistry/__init__.pyawscli/customizations/agentregistry/browserflow.pyawscli/customizations/agentregistry/cache.pyawscli/customizations/agentregistry/constants.pyawscli/customizations/agentregistry/dataplane.pyawscli/customizations/agentregistry/install_skill.pyawscli/customizations/agentregistry/list_skills.pyawscli/customizations/agentregistry/providers.pyawscli/customizations/agentregistry/sign_out.pyawscli/customizations/agentregistry/uninstall_skill.pyawscli/customizations/agentregistry/utils.pyawscli/customizations/argrename.pyawscli/customizations/s3/factory.pyawscli/customizations/sso/utils.pyawscli/handlers_registry.pyChanges outside the models (
CHANGELOG.rst):list-skills, which lists a registry's skills with the name in each one'sSKILL.mdand the AI coding agents each is installed for,install-skillanduninstall-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 itsSKILL.mdname and from the record'sSKILL.mdtext when it has no package, and uninstall it again, andsign-out, which revokes and deletes cached sign-ins, with browser sign-in toCUSTOM_JWTregistries through--authorizer JWTonlist-skillsandinstall-skill.max_attemptsvalues above 64 in the CRT transfer client.3.14.10.max_attempts = 1in the CRT transfer client.retry_mode = adaptivein the CRT transfer client.Run: https://github.com/conao3/rust-awscli/actions/runs/44802936338
Ported
awscli/customizations/argrename.py,awscli/handlers_registry.py:rtbfabric get-available-module-version --versionis--module-version.awscli/botocore/serialize.py: hostLabel values other than letters, digits, hyphens, and periods fail with aParamValidationError(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: underpreferred_transfer_client = auto, only the classic-only settings make the reference stay on classic and warn; awsr's warning follows. The reference now resolvesautoto the CRT client on a system it is not optimized for even withmax_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 resolveautoto the classic client.awscli/customizations/agentregistry/:agent-registry list-skills,install-skill,uninstall-skillandsign-out, the--authorizer JWTbrowser 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--debugand history, the sign-out hint after a 401).auth_scheme_preferencenow resolves against the service's auth types when the operation lists none, andAWS_BEARER_TOKEN_<signing name>is read for any service.Not carried over
crtentries (max_attemptsabove 64,max_attempts = 1,retry_mode = adaptivein the CRT transfer client): awsr transfers with the classic client only.install-skillpackages 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.