SecureContext

Request-scoped, key-value parameters supplied by a trusted backend such as application middleware or a proxy and evaluated by the SECURE_CONTEXT SQL function.

Only trusted backends should populate SecureContext: authenticate the end user or agent and bind parameter values deterministically on the trusted server before sending the request. Don't let untrusted clients or AI agents directly supply or modify these parameter values.

For defense in depth, SecureContext is input-only and is omitted from Job responses (jobs.get, jobs.list, and jobs.insert), INFORMATION_SCHEMA.JOBS* views, and query execution plans. Parameter keys and values are recorded in Cloud Audit Logs Data Access logs in the secureContextValues field. Values might be truncated if the log entry exceeds audit log size limits.

JSON representation
{
  "secureParameterEntries": {
    object
  }
}
Fields
secureParameterEntries

object (Struct format)

Optional. Key-value map of secure context parameters.

Keys must be 1 to 127 characters long and match ^[a-zA-Z_][a-zA-Z0-9_]*$. Values must be JSON strings (STRING), up to 1 MiB (1,048,576 UTF-8 bytes) per value. A single instance of SecureContext supports up to 10,000 entries and 10 MiB (10,485,760 bytes) of total value size, subject to the API request size limit.