You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1465a85
Browse filesBrowse the repository at this point in the historyBrowse files
fix(service-settings): a clear of an env-pinned setting clears the stored value beneath the pin, so the allowed-IP lockout recovery holds once the variable is removed
7
+
8
+
Clause-②: yes (widening) — `SettingsService.setMany` / `set` (and `PUT /api/settings/:namespace`) accept a clear (`null` / `undefined`) of a key an `OS_*` override in force pins, where every write to such a key was refused `409 SETTINGS_LOCKED`; every other write is still refused. No export, type or error code changes.
9
+
Metadata-protocol: none
10
+
11
+
-**A clear goes through an env pin.** An `OS_*` override in force decides the value in force and still refuses every write but a clear. A clear (`null` / `undefined`, never a value such as `''` that a key would store) clears the value stored beneath the pin, so the key falls back to its default once the override is removed. It changes nothing in force: the answer still reads the env value with `source: 'env'` and `locked: true`. It meets every judgment a clear meets without a pin: a locked row at an upper scope, or a locked row at the write's own scope for a caller that is not the platform, still refuses it `SETTINGS_LOCKED` (`locked-by-<scope>`), and the key's write predicates still run.
12
+
-**Why.** The override hides the stored value from every read, and used to refuse every write to it, so an operator who pinned a key to recover from a bad stored value got the same value back the moment the pin was lifted. For `auth.allowed_ip_ranges` that meant the documented recovery (`OS_AUTH_ALLOWED_IP_RANGES` set empty) opened the gate only until the variable was removed, and the next restart locked the administrator out again.
13
+
-**Recovery when locked out by `allowed_ip_ranges` (`@objectstack/plugin-auth`).** Start the server with `OS_AUTH_ALLOWED_IP_RANGES` set to an empty value, sign in, clear the stored list with a settings request that sets `allowed_ip_ranges` to `null` (`PUT /api/settings/auth`), then remove the variable. The save refusal's message names these four steps in all four of its languages. This supersedes the recovery sentence of the earlier entry for the allowed-IP save refusal ("remove it once the list is fixed"): removing the variable without the clear brings the stored list back at the next restart. The Setup console still shows a pinned field read-only, so the clear is a settings API request for now.
Copy file name to clipboardExpand all lines: content/docs/protocol/kernel/config-resolution.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ Writes fail loudly rather than silently degrading:
218
218
219
219
| Condition | Thrown | Code |
220
220
| :--- | :--- | :--- |
221
-
| An `OS_*` override is in force for the key |`SettingsLockedError`|`SETTINGS_LOCKED`|
221
+
| An `OS_*` override is in force for the key, and the write is not a clear|`SettingsLockedError`|`SETTINGS_LOCKED`|
222
222
| A row at an upper scope has `locked=true`, or a row at the write's own scope has it and the caller is not the platform |`SettingsLockedError`|`SETTINGS_LOCKED` (`locked-by-<scope>`) |
223
223
| Key not declared by the manifest |`UnknownKeyError`|`SETTINGS_UNKNOWN_KEY`|
224
224
| Namespace has no manifest |`UnknownNamespaceError`|`SETTINGS_UNKNOWN_NAMESPACE`|
| Network |`allowed_ip_ranges` (IPv4 CIDR) for tenant- or office-scoped access|
244
+
| Network |`allowed_ip_ranges` (IPv4 CIDR) for tenant- or office-scoped access; locked out, restart with `OS_AUTH_ALLOWED_IP_RANGES=` (empty), sign in, clear the stored list (`PUT /api/settings/auth` with `allowed_ip_ranges: null`), then remove the variable|
245
245
246
246
Password expiry and enforced MFA share a *session-validation gate*: a
247
247
non-compliant session can authenticate but is blocked from data access (auth +
0 commit comments