mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: enable key rotation (#15066)
This PR contains the remaining logic necessary to hook up key rotation to the product.
This commit is contained in:
40
coderd/database/migrations/testdata/fixtures/000271_cryptokey_features.up.sql
vendored
Normal file
40
coderd/database/migrations/testdata/fixtures/000271_cryptokey_features.up.sql
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
INSERT INTO crypto_keys (feature, sequence, secret, secret_key_id, starts_at, deletes_at)
|
||||
VALUES (
|
||||
'workspace_apps_token',
|
||||
1,
|
||||
'abc',
|
||||
NULL,
|
||||
'1970-01-01 00:00:00 UTC'::timestamptz,
|
||||
'2100-01-01 00:00:00 UTC'::timestamptz
|
||||
);
|
||||
|
||||
INSERT INTO crypto_keys (feature, sequence, secret, secret_key_id, starts_at, deletes_at)
|
||||
VALUES (
|
||||
'workspace_apps_api_key',
|
||||
1,
|
||||
'def',
|
||||
NULL,
|
||||
'1970-01-01 00:00:00 UTC'::timestamptz,
|
||||
'2100-01-01 00:00:00 UTC'::timestamptz
|
||||
);
|
||||
|
||||
INSERT INTO crypto_keys (feature, sequence, secret, secret_key_id, starts_at, deletes_at)
|
||||
VALUES (
|
||||
'oidc_convert',
|
||||
2,
|
||||
'ghi',
|
||||
NULL,
|
||||
'1970-01-01 00:00:00 UTC'::timestamptz,
|
||||
'2100-01-01 00:00:00 UTC'::timestamptz
|
||||
);
|
||||
|
||||
INSERT INTO crypto_keys (feature, sequence, secret, secret_key_id, starts_at, deletes_at)
|
||||
VALUES (
|
||||
'tailnet_resume',
|
||||
2,
|
||||
'jkl',
|
||||
NULL,
|
||||
'1970-01-01 00:00:00 UTC'::timestamptz,
|
||||
'2100-01-01 00:00:00 UTC'::timestamptz
|
||||
);
|
||||
|
Reference in New Issue
Block a user