secret
A credential, such as a password or an API key, that is never shown again once written.
At a glance
- Stored as: the value itself, written inline wherever it is used.
Writing
A secret is a value like any other: create it with dtype: secret and write its handle
into the record, or ask a person with an upload link for a secret. A record write
carrying the plain value is refused.
- Creating one stores the value in your organization's
secret store and returns a new
secret-…handle each time; the record keeps only a reference to it:{"type": "secret", "id": "secret-…"}. - To keep the current secret when you rewrite a record, leave its reference, or its
secret-…id, as it is. To replace the secret, write the new handle. - In a record, a value shaped like JSON (a service-account key file, say) is a plain
value too. Only an object whose
typeissecretand that has anidis read as a reference. - validate_dtype checks only the shape. It stores nothing, never echoes a plain value, and does not check that a reference points to an existing secret.
Written as
A JSON string or object whose schema format is secret.
Create options
Options for a website login's password: the sites it may be typed on.
kind: optional "sites". Selects a login's password bound to its sites; source is the password.sites: List[str]. The sites a browser may type it on, each an exactscheme://host[:port](for examplehttps://portal.example.com). They must be the login'sorigins; changing those later means storing the password again.
Reading
Nothing reads the value back. Responses show [secret:***] in its place, and a record
shows at most its reference. Only the platform, when it calls the service the
credential is for, reads the value from the secret store.
Querying
A secret cannot be searched or compared by its value, since the record holds only a reference. You can still ask whether one is set:
MCPServer | auth_token is not null | select id
Every operator is in the HQL reference.
Operations
Through the dtypes resource: