@gethelio/proxy 0.6.0 → 0.7.0
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/dist/cli.js +20 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -8045,6 +8045,13 @@ function warnIfDashboardOpenMode(config, log = console.error) {
|
|
|
8045
8045
|
);
|
|
8046
8046
|
return true;
|
|
8047
8047
|
}
|
|
8048
|
+
function warnIfNoEnforcement(policy, log = console.error) {
|
|
8049
|
+
if (policy.rules.length > 0 || policy.defaultAction !== "allow" || policy.dryRun) return false;
|
|
8050
|
+
log(
|
|
8051
|
+
'[helio] No policy rules are loaded and the default action is "allow" - Helio is recording an audit trail but NOT blocking anything. Add rules under `policies:` in helio.yaml to start enforcing (see docs/policies.md).'
|
|
8052
|
+
);
|
|
8053
|
+
return true;
|
|
8054
|
+
}
|
|
8048
8055
|
|
|
8049
8056
|
// src/crash-drain.ts
|
|
8050
8057
|
var hooks = [];
|
|
@@ -8117,18 +8124,6 @@ upstream:
|
|
|
8117
8124
|
# headers:
|
|
8118
8125
|
# Authorization: "Bearer \${UPSTREAM_TOKEN}"
|
|
8119
8126
|
|
|
8120
|
-
# Operator dashboard + approval REST API. Bound to 127.0.0.1 by default \u2014 do
|
|
8121
|
-
# not change to 0.0.0.0 without putting an authenticating reverse proxy in
|
|
8122
|
-
# front. dashboard.api_secret is the manual dashboard login secret and also
|
|
8123
|
-
# supports machine Bearer auth for sideband API clients. Store it safely; it
|
|
8124
|
-
# stays valid until you rotate it. Rotate by editing this file and restarting
|
|
8125
|
-
# (or hot-reloading) the proxy. Rotation invalidates active dashboard sessions.
|
|
8126
|
-
dashboard:
|
|
8127
|
-
enabled: true
|
|
8128
|
-
port: 3100
|
|
8129
|
-
host: 127.0.0.1
|
|
8130
|
-
api_secret: "${apiSecret}"
|
|
8131
|
-
|
|
8132
8127
|
# listen:
|
|
8133
8128
|
# port: 3000
|
|
8134
8129
|
# host: 127.0.0.1
|
|
@@ -8149,6 +8144,18 @@ dashboard:
|
|
|
8149
8144
|
# retention: 90d
|
|
8150
8145
|
# include_responses: true
|
|
8151
8146
|
|
|
8147
|
+
# Operator dashboard + approval REST API. Bound to 127.0.0.1 by default \u2014 do
|
|
8148
|
+
# not change to 0.0.0.0 without putting an authenticating reverse proxy in
|
|
8149
|
+
# front. dashboard.api_secret is the manual dashboard login secret and also
|
|
8150
|
+
# supports machine Bearer auth for sideband API clients. Store it safely; it
|
|
8151
|
+
# stays valid until you rotate it. Rotate by editing this file and restarting
|
|
8152
|
+
# (or hot-reloading) the proxy. Rotation invalidates active dashboard sessions.
|
|
8153
|
+
dashboard:
|
|
8154
|
+
enabled: true
|
|
8155
|
+
port: 3100
|
|
8156
|
+
host: 127.0.0.1
|
|
8157
|
+
api_secret: "${apiSecret}"
|
|
8158
|
+
|
|
8152
8159
|
# sdk:
|
|
8153
8160
|
# enabled: false
|
|
8154
8161
|
# port: 3200
|
|
@@ -8444,6 +8451,7 @@ async function startCommand(configPath, options) {
|
|
|
8444
8451
|
console.error(
|
|
8445
8452
|
`Policies: ${String(ruleCount)} rule${ruleCount !== 1 ? "s" : ""} loaded (default: ${policy.defaultAction})`
|
|
8446
8453
|
);
|
|
8454
|
+
warnIfNoEnforcement(policy);
|
|
8447
8455
|
if (config.upstream.transport === "stdio") {
|
|
8448
8456
|
console.error(`Upstream: ${config.upstream.command ?? ""} (stdio)`);
|
|
8449
8457
|
} else {
|