Skip to content

Commit 91d6ced

Browse files
csweichelroboquat
authored andcommitted
[server] Tie protected_secrets to ConfigCag
so that we can gradually roll this out in prod
1 parent 04f122c commit 91d6ced

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/server/src/workspace/workspace-starter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,12 @@ export class WorkspaceStarter {
749749
);
750750
}
751751

752+
if (await getExperimentsClientForBackend().getValueAsync("protected_secrets", false, { user })) {
753+
// We roll out the protected secrets feature using a ConfigCat feature flag, to ensure
754+
// a smooth, gradual roll out without breaking users.
755+
featureFlags = featureFlags.concat(["protected_secrets"]);
756+
}
757+
752758
featureFlags = featureFlags.filter((f) => !excludeFeatureFlags.includes(f));
753759

754760
if (forcePVC === true) {

0 commit comments

Comments
 (0)