rpk ai egress-credential apply
Reconcile egress credentials from one or more YAML manifests.
For each manifest: create the resource if absent, otherwise update every field that differs from the live resource. A manifest is the COMPLETE desired state, so a field you omit is not left alone - it is compared against the value a create from that manifest would have produced, and reconciled to it. Lists, maps and oneof variants replace wholesale. Fields that can only be set at creation time are immutable; changing one is an error.
Manifests round-trip with get -o yaml for this resource, which is how to
start from a complete one. Pass -f - to read stdin.
This does not delete resources absent from the manifests (no prune); see
diff --help.
A manifest names the credential by its full resource name,
egressCredentials/<id>, as get -o yaml prints it. It holds one auth scheme
(static_key, api_key or basic) with the secrets it needs by reference, never
by value, and the allowed_hosts it may be sent to. Changing the scheme, a
secret reference or the allowed hosts is an update, and the server checks that
you may read every secret the credential names; a secret must be one created
through Agentic Data Plane (secret create).
Apply writes the credential only. Which requests get it is decided by
policies: egress-credential attach writes them, or write the
@inject_credential policy as a policy manifest.
Examples
This section provides examples of how to use rpk ai egress-credential apply.
github.yaml
name: egressCredentials/github
display_name: GitHub API
static_key:
key_secret_ref: GITHUB_TOKEN
allowed_hosts:
- api.github.com
rpk ai egress-credential diff -f github.yaml
rpk ai egress-credential apply -f github.yaml
Flags
| Value | Type | Description |
|---|---|---|
|
strings |
manifest file, directory, or - for stdin ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |