securegate-cli-tool 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/commands/login.js +1 -1
- package/src/config.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "securegate-cli-tool",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "SecureGate CLI — Secure your AI agent API keys from the terminal",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"node": ">=16"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@supabase/supabase-js": "^2.97.0",
|
|
29
30
|
"chalk": "^4.1.2",
|
|
30
31
|
"commander": "^12.1.0",
|
|
31
32
|
"inquirer": "^8.2.6",
|
package/src/commands/login.js
CHANGED
|
@@ -11,7 +11,7 @@ const api = require('../api');
|
|
|
11
11
|
const { getAuth, SUPABASE_URL, SUPABASE_ANON_KEY } = require('../config');
|
|
12
12
|
|
|
13
13
|
// Use production SecureGate domain by default, fallback to localhost for dev
|
|
14
|
-
const SECUREGATE_WEB_URL = process.env.SECUREGATE_WEB_URL || 'https://usesecuregate.
|
|
14
|
+
const SECUREGATE_WEB_URL = process.env.SECUREGATE_WEB_URL || 'https://usesecuregate.xyz';
|
|
15
15
|
|
|
16
16
|
async function loginCommand() {
|
|
17
17
|
console.log();
|
package/src/config.js
CHANGED
|
@@ -11,11 +11,14 @@ const CONFIG_DIR = path.join(os.homedir(), '.securegate');
|
|
|
11
11
|
const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
|
|
12
12
|
|
|
13
13
|
// Supabase project
|
|
14
|
+
// SECURITY NOTE: The Anon Key is designed to be public and is safe to include in the CLI.
|
|
15
|
+
// SecureGate uses strict Row Level Security (RLS) with no policies, meaning this key
|
|
16
|
+
// CANNOT read or write any database data. It is strictly used for the login flow.
|
|
14
17
|
const SUPABASE_URL = 'https://pbrmsfoowrjqsikgkijb.supabase.co';
|
|
15
|
-
const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
18
|
+
const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBicm1zZm9vd3JqcXNpa2draWpiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAzNjU0NjIsImV4cCI6MjA4NTk0MTQ2Mn0.XfZyEv3atJp7BMH7oQKx1T-rrP_8PLTKeyoIfvUgLks';
|
|
16
19
|
|
|
17
20
|
// Public-facing proxy URL
|
|
18
|
-
const PROXY_BASE_URL = 'https://
|
|
21
|
+
const PROXY_BASE_URL = 'https://usesecuregate.xyz/v1';
|
|
19
22
|
|
|
20
23
|
function ensureConfigDir() {
|
|
21
24
|
if (!fs.existsSync(CONFIG_DIR)) {
|