securegate-cli-tool 2.1.0 → 2.1.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "securegate-cli-tool",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
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",
@@ -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.com';
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
18
  const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBicm1zZm9vd3JqcXNpa2draWpiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mzg5MTg0NjcsImV4cCI6MjA1NDQ5NDQ2N30.4lGMcORfVTiRxSRcVMeuiECra3SvDpkWRMkJEiRQAS8';
16
19
 
17
20
  // Public-facing proxy URL
18
- const PROXY_BASE_URL = 'https://securegate.xyz/v1';
21
+ const PROXY_BASE_URL = 'https://usesecuregate.xyz/v1';
19
22
 
20
23
  function ensureConfigDir() {
21
24
  if (!fs.existsSync(CONFIG_DIR)) {