Repository navigation
Conversation
…ction IdentArk credentials are non-exportable by default. Local injection (`credential inject`, `agent run`, `agent dev`) now needs device login or a developer key granted `credentials:resolve` explicitly, plus a credential an org owner marked exportable. A 403 from /v1/credentials/resolve is now raised as CredentialExportDeniedError with guidance for the specific reason (not exportable, missing scope, agent-bound key) and caught before the generic handler, so the user sees why the child process was not started. When an API key in the environment shadows device login, the next step says which variable to unset. README documents the two conditions. Signed-off-by: Gold okpa <okpagold@gmail.com>
Signed-off-by: Gold okpa <okpagold@gmail.com>
…e guidance Signed-off-by: Gold okpa <okpagold@gmail.com>
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.
What changed
IdentArk now treats brokered credentials as non-exportable by default. Local injection (
identark credential inject,agent run,agent dev) therefore works only when both of these hold:identark auth login), or you use a developer API key grantedcredentials:resolveexplicitly. No key preset and noorg:adminkey includes it, and agent-bound keys can never hold it;Before this PR, a refusal was swallowed by a generic
except Exceptionand the user saw only "Could not resolve required credential X". Now:/v1/credentials/resolveraisesCredentialExportDeniedError, carrying a message, an explanation and a next step for the specific reason:credential_not_exportable: "Credential prod/openai is not exportable", and an org owner can allow local export, or a managed connector can be used instead;insufficient_scope: the key lackscredentials:resolve, whichorg:adminand presets don't include; next stepidentark auth login;agent_key_cannot_export: the key is bound to an agent;IDENTARK_API_KEY/IDENTARK_SESSION_TOKEN/IDENTARK_TOKENshadows device login, the next step names it:unset IDENTARK_API_KEY && identark auth login. The key value is never printed.Why
The control-plane change (identArk/backend#47) makes plaintext export opt-in. Without this PR, every user whose key or credential no longer qualifies would see an unexplained failure.
Closes # (none)
Verification
Checklist
implementation detail.
hosted service must decide. The CLI only explains the server's 403.
Security notes
/v1/credentials/resolve, and the server decides.