NOTE: This applies when upgrading to the latest
v0.23.x
release.
When migrating from Vela version v0.22 to v0.23 the Vela administrator will want to ensure the following actions are being performed. All queries are available in the SQL migration scripts.
v0.23.x
introduces a newdeployments
table that will be created automatically by default. However, if you are running theserver
component with theVELA_DATABASE_SKIP_CREATION
set totrue
, you will need to manually create this table.
v0.23.x
introduces a newapprove_build
column to the repos table for approve build policy setting. The change also impacts the builds table, with the addition of theapproved_at
andapproved_by
columns.
-
The
approve_build
column should be prepopulated using the SQL query in the migration script to ensure a smooth transition. Feel free to adjust the default setting for already-enabled repos. -
v0.23.x
also introduces a newallow_events
column to the repos table, which is an integer mask that represents all possible event subscription configurations. The secrets table will also utilize the newallow_events
column.
-
The
allow_events
column should be prepopulated using the SQL query in the migration script to ensure a smooth transition to the new system. -
v0.23.x
(starting in v0.23.2) also adds anallow_substitution
column to the secrets table to give more control on secret usage.
Rather than migrate all Vault internal secrets to leverage allow_events
and allow_substition
via scripting, the Vela code has been updated to include translation per request for Vault secrets that have yet to be updated since an upgrade to v0.23.3
. These values will be rectified over time whenever users update the secret.
For existing native secrets, please follow the provided DML query in the migration script.
For increased security we recommend to set allow_command
and allow_substitution
to false
for shared secrets in your secrets table. You can use the following SQL commands to do so:
UPDATE secrets SET allow_command = false WHERE type = 'shared';
UPDATE secrets SET allow_substitution = false WHERE type = 'shared';