- NAME
-
- gcloud alpha software-delivery-trust settings binauthz-config update - update a Binary Authorization trust config
- SYNOPSIS
-
-
gcloud alpha software-delivery-trust settings binauthz-config update--location=LOCATION[--async] [--endpoint-mode=ENDPOINT_MODE] [--publish-destination=PUBLISH_DESTINATION] [--attestors-file=FILE_PATH|--clear-attestors|--add-attestor=[gate=GATE,signing-crypto-key-version=KEY_VERSION,…]--remove-attestor=[GATE,…],--remove-attestors=[GATE,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Update a Binary Authorization trust config.To replace the signing key for an existing gate:
-
Running
--remove-attestorsand--add-attestoron the same gate in a single command modifies the gate in place. -
Running
--remove-attestorsfollowed by--add-attestorin a separate command deletes and recreates the gate.
-
Running
- EXAMPLES
-
To enable automatic publishing and configure attestors for prod and staging in
location
us-central1, run:gcloud alpha software-delivery-trust settings binauthz-config update --location=us-central1 --publish-destination=container-analysis --add-attestor="gate=prod,signing-crypto-key-version=projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/prod-key/cryptoKeyVersions/1" --add-attestor="gate=staging,signing-crypto-key-version=projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/staging-key/cryptoKeyVersions/1"To disable automatic publishing in location
us-central1, run:gcloud alpha software-delivery-trust settings binauthz-config update --location=us-central1 --publish-destination=noneTo clear all configured attestors in location
us-central1, run:gcloud alpha software-delivery-trust settings binauthz-config update --location=us-central1 --clear-attestors - REQUIRED FLAGS
-
-
Location resource - Location of the Software Delivery Trust settings. This
represents a Cloud resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
--locationon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
--location=LOCATION-
ID of the location or fully qualified identifier for the location.
To set the
locationattribute:-
provide the argument
--locationon the command line.
-
provide the argument
-
provide the argument
-
Location resource - Location of the Software Delivery Trust settings. This
represents a Cloud resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
- OPTIONAL FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--endpoint-mode=ENDPOINT_MODE-
Specifies endpoint mode for a given command. Regional endpoints provide enhanced
data residency and reliability by ensuring your request is handled entirely
within the specified Google Cloud region. This differs from global endpoints,
which may process parts of the request outside the target region. Overrides the
default
regional/endpoint_modeproperty value for this command invocation.ENDPOINT_MODEmust be one of:global- (Default) Use global rather than regional endpoints.
regional- Only use regional endpoints. An error will be raised if a regional endpoint is not available for a given command.
regional-preferred- Use regional endpoints when available, otherwise use global endpoints. Recommended for most users.
--publish-destination=PUBLISH_DESTINATION-
Destination where SD Trust automatically publishes signed VSAs upon evaluation.
PUBLISH_DESTINATIONmust be one of:container-analysis- Automatically publish/revoke signed VSA occurrences in Container Analysis.
none- Disable automatic publishing.
-
At most one of these can be specified:
--attestors-file=FILE_PATH- Path to a local YAML or JSON file defining the complete list of attestors.
--clear-attestors- Clears all configured attestors.
-
Or at least one of these can be specified:
- Incremental attestor update flags.
--add-attestor=[gate=GATE,signing-crypto-key-version=KEY_VERSION,…]- Key-value pair defining the lifecycle gate and asymmetric KMS signing key version. Can be repeated. Attributes: gate: Identifier of the gate corresponding to PolicyBinding custom_gate (e.g., prod). signing-crypto-key-version: Cloud KMS CryptoKeyVersion resource name. Fails if the gate already exists; pass --remove-attestors and --add-attestor on the same gate in a single command to modify in place, or in separate commands to delete and recreate.
--remove-attestor=[GATE,…],--remove-attestors=[GATE,…]- Comma-separated list of gate identifiers to remove. Using --remove-attestors and --add-attestor on the same gate in a single command modifies it in place; using them in separate commands deletes and recreates it.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - REGIONAL ENDPOINTS
-
This command supports regional endpoints. To use regional endpoints for this
command, use the
--endpoint-mode=regional-preferredflag. To use regional endpoints by default, run$ gcloud config set regional/endpoint_mode regional-preferred. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
gcloud alpha software-delivery-trust settings binauthz-config update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-10 UTC.
[null,null,["Last updated 2026-11-10 UTC."],[],[]]