secret

A credential, such as a password or an API key, that is never shown again once written.

At a glance

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.

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.

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: