Skip to content

Commit 64729bb

Browse files
committed
fix: shadow mode for org-level compute access, require only for MICROVM projects
1 parent 5ffc7d4 commit 64729bb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

apps/supervisor/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ class ManagedSupervisor {
4949
private readonly warmStartUrl = env.TRIGGER_WARM_START_URL;
5050

5151
constructor() {
52-
const { TRIGGER_WORKER_TOKEN, MANAGED_WORKER_SECRET, ...envWithoutSecrets } = env;
52+
const {
53+
TRIGGER_WORKER_TOKEN,
54+
MANAGED_WORKER_SECRET,
55+
COMPUTE_GATEWAY_AUTH_TOKEN,
56+
...envWithoutSecrets
57+
} = env;
5358

5459
if (env.DEBUG) {
5560
this.logger.debug("Starting up", { envWithoutSecrets });

apps/webapp/app/v3/services/computeTemplateCreation.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class ComputeTemplateCreationService {
139139
});
140140

141141
if (hasComputeAccess) {
142-
return "required";
142+
return "shadow";
143143
}
144144

145145
const rolloutPct = Number(env.COMPUTE_TEMPLATE_SHADOW_ROLLOUT_PCT ?? "0");

0 commit comments

Comments
 (0)