Skip to content

Commit

Permalink
[server] Tie protected_secrets to ConfigCag
Browse files Browse the repository at this point in the history
so that we can gradually roll this out in prod
  • Loading branch information
csweichel authored and roboquat committed Aug 1, 2022
1 parent 04f122c commit 91d6ced
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/server/src/workspace/workspace-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,12 @@ export class WorkspaceStarter {
);
}

if (await getExperimentsClientForBackend().getValueAsync("protected_secrets", false, { user })) {
// We roll out the protected secrets feature using a ConfigCat feature flag, to ensure
// a smooth, gradual roll out without breaking users.
featureFlags = featureFlags.concat(["protected_secrets"]);
}

featureFlags = featureFlags.filter((f) => !excludeFeatureFlags.includes(f));

if (forcePVC === true) {
Expand Down

0 comments on commit 91d6ced

Please sign in to comment.