> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).
>
>
> For information about access to this release, see the [access
> request page](https://forms.gle/zxuHekMtV67Bw9Av9).

## Spec schema

Secrets store sensitive information, for example, passwords and certificates. You use the secret reference instead of using the values directly.

```yaml
Secret:
  metadata:
    name: string
  spec:
    type: Opaque
    data:
      string: string
```

| Field Type Required or optional | Description |
|---|---|
| `type` ||
| `string` *Optional* | Only the **Opaque** type is supported. |
| `data` ||
| `object` *Required* | Data takes a key-value pair, both of string type. |