Repository navigation
fix: control:emergency scope for API emergency stop; farm mode without integration runtime - #968
Merged
Merged
Conversation
emergency_stop now needs a separate owner grant. control:extended no longer covers it, so existing grants lose it. Migration 0128 adds the scope and tightens the action guard, the server and the printer list require it, and the Connector refuses an emergency stop under any other scope. Closes #937
The page check falls back to bundled Chromium, through the browser helper, only when Google Chrome is not installed. The scope list is checked against both 0103 and 0128, and the approval suite asserts that control:extended is refused emergency stop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes.
Emergency stop gets its own consent-gated API scope (#937). Integration apps can request
emergency_stoponly with the newcontrol:emergencyscope, which needs a fresh owner grant.control:extendedno longer covers it, so existing grants lose it.control:emergencyfor emergency stop. Pendingemergency_stopenvelopes and actions still scopedcontrol:extendedare expired. The down migration refuses while the scope is in use.emergency_stopenvelope withoutcontrol:emergencybefore any write. This fails closed against an older server.Farm-page pause and commands no longer fail without the integration runtime (#964). The printer mode read returns the default mode when the integration API runtime isn't configured, and returns 404 for non-members and printers on other farms. A malformed configuration flag is still an error. This regression (from 3854be3) broke the farm-page pause and command acceptance rows.
Validated:
tests/unit/fix-937.test.ts,tests/node/fix-937-connector.test.ts,tests/unit/fix-964.test.ts.npm run check:allpasses on the integrated head.control:extendedfor emergency stop were moved tocontrol:emergency, and a negative case forcontrol:extendedwas added.Closes #937
Closes #964