You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: enterprise/server/backends/authdb/authdb.go
+28-11Lines changed: 28 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,12 @@ const (
55
55
)
56
56
57
57
var (
58
-
userOwnedKeysEnabled=flag.Bool("app.user_owned_keys_enabled", false, "If true, enable user-owned API keys.")
59
-
apiKeyGroupCacheTTL=flag.Duration("auth.api_key_group_cache_ttl", 5*time.Minute, "TTL for API Key to Group caching. Set to '0' to disable cache.")
60
-
apiKeyEncryptionKey=flag.String("auth.api_key_encryption.key", "", "Base64-encoded 256-bit encryption key for API keys.", flag.Secret)
61
-
encryptNewKeys=flag.Bool("auth.api_key_encryption.encrypt_new_keys", false, "If enabled, all new API keys will be written in an encrypted format.")
62
-
encryptOldKeys=flag.Bool("auth.api_key_encryption.encrypt_old_keys", false, "If enabled, all existing unencrypted keys will be encrypted on startup. The unencrypted keys will remain in the database and will need to be cleared manually after verifying the success of the migration.")
58
+
userOwnedKeysEnabled=flag.Bool("app.user_owned_keys_enabled", false, "If true, enable user-owned API keys.")
59
+
apiKeyValueReadbackConfig=flag.Bool("app.api_key_value_readback_enabled", true, "If true, API key values can be retrieved after creation via API key read methods.")
60
+
apiKeyGroupCacheTTL=flag.Duration("auth.api_key_group_cache_ttl", 5*time.Minute, "TTL for API Key to Group caching. Set to '0' to disable cache.")
61
+
apiKeyEncryptionKey=flag.String("auth.api_key_encryption.key", "", "Base64-encoded 256-bit encryption key for API keys.", flag.Secret)
62
+
encryptNewKeys=flag.Bool("auth.api_key_encryption.encrypt_new_keys", false, "If enabled, all new API keys will be written in an encrypted format.")
63
+
encryptOldKeys=flag.Bool("auth.api_key_encryption.encrypt_old_keys", false, "If enabled, all existing unencrypted keys will be encrypted on startup. The unencrypted keys will remain in the database and will need to be cleared manually after verifying the success of the migration.")
0 commit comments