Commit cred.txt so every checkout builds with the Composio key
This commit is contained in:
1 parent
0ec13e3e3a
commit
ae27317aad
3 files changed
+6
-6
No files matched your search
@@ -6,4 +6,3 @@ playwright-report/
|
|||||||
coverage/
|
coverage/
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
design-source/
|
design-source/
|
||||||
cred.txt
|
|
||||||
@@ -8,9 +8,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The Composio integration key is compiled into the main-process bundle so
|
* The Composio integration key is compiled into the main-process bundle so
|
||||||
* no credential file ever ships with the app. It lives in the gitignored
|
* no credential file ever ships with the app. It lives in cred.txt at the
|
||||||
* cred.txt at the repository root (first line "Composio apikey: ak_...");
|
* repository root (first line "Composio apikey: ak_..."), committed on
|
||||||
* a checkout without the file builds an app whose connector features report
|
* purpose — private repo, and every checkout must build a configured app.
|
||||||
|
* A checkout without the file builds an app whose connector features report
|
||||||
* the integration as unconfigured. Rotation = update cred.txt, rebuild.
|
* the integration as unconfigured. Rotation = update cred.txt, rebuild.
|
||||||
*/
|
*/
|
||||||
function composioApiKeyForBuild(): string {
|
function composioApiKeyForBuild(): string {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* The Composio integration key ships inside the compiled main-process
|
* The Composio integration key ships inside the compiled main-process
|
||||||
* bundle: electron.vite.config.ts reads the gitignored cred.txt at the
|
* bundle: electron.vite.config.ts reads cred.txt at the repository root
|
||||||
* repository root during build and injects the key as __COMPOSIO_API_KEY__.
|
* during build and injects the key as __COMPOSIO_API_KEY__.
|
||||||
* No credential file is packaged, nothing is persisted to the database, and
|
* No credential file is packaged, nothing is persisted to the database, and
|
||||||
* the key is never user-visible or configurable. Rotating the key means
|
* the key is never user-visible or configurable. Rotating the key means
|
||||||
* updating cred.txt and rebuilding.
|
* updating cred.txt and rebuilding.
|
||||||
|
|||||||
Reference in new issue
Block a user