Skip to main content
Unary · Secrets Creates a new secret for a project. Use this method to:
  • Store sensitive configuration values
  • Set up environment variables
  • Configure registry authentication
  • Add file-based secrets

Examples

  • Create environment variable: Creates a secret that will be available as an environment variable.
  • Create file secret: Creates a secret that will be mounted as a file.
  • Create registry auth: Creates credentials for private container registry.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreateSecretRequest

Response

gitpod.v1.CreateSecretResponse
gitpod.v1.Secret
CredentialProxy describes how the credential proxy should inject this secret into outgoing HTTPS requests.gitpod.v1.Secret.CredentialProxy
Source definesgitpod.v1.Secret.Source
gitpod.v1.Secret.Source.OidcJFrog
gitpod.v1.SecretScope
gitpod.v1.Subject