Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

control plane: leave HighLevel's secret out of secrets.required

milind-soni207732e893e3
diff --git a/cloudflare/control-plane/README.md b/cloudflare/control-plane/README.md
index 940469f7d7..6ca24f32c8 100644
--- a/cloudflare/control-plane/README.md
+++ b/cloudflare/control-plane/README.md
@@ -661,10 +661,9 @@ Setup, once:
On a running Worker, apply 0010 before deploying a Worker built from this
code: its callback marks the flow in `callback_at`. An older Worker
ignores the column.
-4. `wrangler secret put HIGHLEVEL_CLIENT_SECRET --config wrangler.jsonc`. Until
- it exists the routes answer `503 highlevel_unavailable`. It is live, so it is
- listed in `secrets.required`: a deploy keeps only the secrets listed there and
- would otherwise drop it.
+4. `wrangler secret put HIGHLEVEL_CLIENT_SECRET --config wrangler.jsonc`. It is
+ deliberately not in `secrets.required`: until it exists the routes answer
+ `503 highlevel_unavailable`.
5. `wrangler deploy --config wrangler.jsonc`.
A private app stops accepting installs past five external agencies; publish it
diff --git a/cloudflare/control-plane/test/control-plane.test.ts b/cloudflare/control-plane/test/control-plane.test.ts
index 3e8fbd732f..34a5482414 100644
--- a/cloudflare/control-plane/test/control-plane.test.ts
+++ b/cloudflare/control-plane/test/control-plane.test.ts
@@ -404,7 +404,6 @@ describe("control-plane migrations and health", () => {
RELAY_ALLOW_INSTALLATIONS: env.RELAY_ALLOW_INSTALLATIONS,
RELAY_DISABLED: env.RELAY_DISABLED,
RELAY_CAPABLE_MIN_VERSION: env.RELAY_CAPABLE_MIN_VERSION,
- HIGHLEVEL_CLIENT_SECRET: "",
RELAY_TOKEN_SIGNING_KEY: "",
BETTER_AUTH_SECRET: "too-short",
};
diff --git a/cloudflare/control-plane/wrangler.jsonc b/cloudflare/control-plane/wrangler.jsonc
index bc109d59c2..a597a56eae 100644
--- a/cloudflare/control-plane/wrangler.jsonc
+++ b/cloudflare/control-plane/wrangler.jsonc
@@ -65,11 +65,10 @@
"OMB_CLEANUP_SWEEP_LIMIT": "20",
// HighLevel OAuth relay (README "HighLevel OAuth relay"). The client id
// is public (it is in the authorization URL); the secret is
- // HIGHLEVEL_CLIENT_SECRET, set with `wrangler secret put`. It is live, so it
- // is in secrets.required: a deploy keeps only the secrets listed there, and
- // an unlisted one is dropped (the relay would then answer 503
- // highlevel_unavailable). The redirect URL must match the one registered in
- // the HighLevel Marketplace app exactly.
+ // HIGHLEVEL_CLIENT_SECRET, set with `wrangler secret put` and deliberately
+ // not in secrets.required: the relay answers 503 highlevel_unavailable
+ // until it exists. The redirect URL must match the one registered in the
+ // HighLevel Marketplace app exactly.
"HIGHLEVEL_CLIENT_ID": "6ad0c3b87999ff4de949c785-mv9n5v73",
"HIGHLEVEL_REDIRECT_URL": "https://accounts.openmausbot.com/v1/highlevel/callback",
"HIGHLEVEL_SCOPES": "contacts.readonly contacts.write opportunities.readonly opportunities.write conversations.readonly locations.readonly calendars.readonly calendars/events.readonly users.readonly",
@@ -90,7 +89,7 @@
"RELAY_CAPABLE_MIN_VERSION": ""
},
"secrets": {
- "required": ["BETTER_AUTH_SECRET", "CLOUDFLARE_API_TOKEN", "CLOUDFLARE_API_TOKEN_MAUSBOT_SI", "HIGHLEVEL_CLIENT_SECRET", "RELAY_TOKEN_SIGNING_KEY"]
+ "required": ["BETTER_AUTH_SECRET", "CLOUDFLARE_API_TOKEN", "CLOUDFLARE_API_TOKEN_MAUSBOT_SI", "RELAY_TOKEN_SIGNING_KEY"]
},
"d1_databases": [
{