mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add endpoint for fetching workspace proxy keys (#14789)
This commit is contained in:
@@ -3,6 +3,13 @@ SELECT *
|
||||
FROM crypto_keys
|
||||
WHERE secret IS NOT NULL;
|
||||
|
||||
-- name: GetCryptoKeysByFeature :many
|
||||
SELECT *
|
||||
FROM crypto_keys
|
||||
WHERE feature = $1
|
||||
AND secret IS NOT NULL
|
||||
ORDER BY sequence DESC;
|
||||
|
||||
-- name: GetLatestCryptoKeyByFeature :one
|
||||
SELECT *
|
||||
FROM crypto_keys
|
||||
|
||||
Reference in New Issue
Block a user