feat(auth): enforce web capabilities in LiveView - #164
Draft
djwhitt wants to merge 8 commits into
Draft
Conversation
Require web access for browser sessions and reconnects, query capability for query and table routes, catalog management for catalog mutations, and platform operation for fleet actions. Recheck normalized contexts before every server-side event and asynchronous result, expire long-lived sockets at the assertion boundary, and hide unavailable controls without relying on the UI for authorization. Preserve static-mode operator behavior and harden fleet target eligibility against crafted events.
Recheck the credential-derived static session marker on LiveView events, messages, async results, and a bounded periodic timer so password rotation revokes already-connected operator sockets. Update the architecture security posture for explicit static and OIDC modes.
djwhitt
marked this pull request as draft
August 16, 2026 00:09
Carry the complete authentication hardening, updated lower stack, and current origin/main into the published LiveView capability layer without rewriting existing commits.
Propagate OIDC error-callback transaction consumption through the published LiveView capability layer without rewriting existing commits.
Propagate validated deployment settings, configurable scopes, independent encrypted transaction cookies, and the CSRF-protected logout control through the published LiveView capability layer without rewriting existing commits. Tests: ../bin/x mix ci Tests: ../bin/test Tests: ../bin/x mix dialyzer
Document that local OIDC logout clears both the normalized identity session and every pending browser login transaction cookie. Tests: ../bin/x mix ci Refs T-234 and PL-27.
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.
Summary
Tracker: T-235
Validation
../bin/x mix ci../bin/testafter syncing latestmain(1,112 passed; 184 excluded)../bin/x mix dialyzerStack
Depends on #163. This is layer 7 of stack #151.
Stack managed with GitHub Stacks CLI.