Files
coder/coderd/database/migrations/testdata/fixtures/000624_workspace_secrets.up.sql
T
Steven Masley 7aef110ca2 feat: add workspace secrets table, queries, and RBAC (#30248)
Adds the database table, queries, and permissions for workspace secrets: secrets set on a workspace build and delivered to the agent, never to Terraform. 

Each secret belongs to one workspace build. A new build copies the previous build's secrets, then the old copies lose their values but stay as history.
2026-10-15 13:32:40 -05:00

23 lines
363 B
SQL

INSERT INTO workspace_secrets (
id,
workspace_id,
workspace_build_id,
name,
value,
env_name,
file_path,
ephemeral,
source
)
VALUES (
'5b1e9d0c-2f3a-4c6e-9a7b-8d4f1e2c3b5a',
'3a9a1feb-e89d-457c-9d53-ac751b198ebe',
'a8c0b8c5-c9a8-4f33-93a4-8142e6858244',
'secret-name',
'secret value',
'SECRET_ENV_NAME',
'~/secret/file/path',
false,
'request'
);