/** * Credential masking (backend #4100, on production since 2026-10-28). * * The backend no longer returns secrets from a resource's `show`: a project service's * `credentials`, a project database's `connection.password` and a deployment's env-var values * come back as the fixed mask below. The real values come from a separate reveal endpoint per * resource, which is: * - gated on `projects:credentials` (Owner, Admin and Manager; a Member or a Viewer gets a 403), * - refused on a project that is not running (409, the platform reads the secret off the box), * - rate limited to 30 reads a minute per person (429), * - never cached and recorded once per read as a `credentials_viewed` activity row. * * The mask is a fixed string, never derived from the secret, so it carries no length or prefix * hint. Sent BACK on an env-var write it means "keep the stored value", never a value to store. */ export declare const CREDENTIAL_MASK = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"; /** True when any string anywhere in `value` is the mask. */ export declare function hasMaskedValue(value: unknown): boolean; /** * Why a reveal was refused, in words an agent can relay. `what` names the secret ("the * service's credentials", "the database password", "the variable values"). */ export declare function explainRevealRefusal(statusCode: number, message: string, what: string): string; /** One line for a successful reveal, so the audit trail is never a surprise. */ export declare const REVEAL_RECORDED_NOTE = "Real values revealed. Each reveal is recorded in the organization's activity log as `credentials_viewed` (without the secret). Treat these as secrets: hand them to the user, do not paste them anywhere else.";