Gate dAuth by registry oracles - #454
Open
aledefra wants to merge 4 commits into
Open
Conversation
aledefra
force-pushed
the
codex/dauth-registry-gating
branch
from
July 1, 2026 10:27
5d04ef7 to
b8f3951
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens the dAuth manager by failing closed unless the current node (and requesters, for secret disclosure) are registered as dAuth oracles, reducing the risk of serving auth material or supervisor/tunnel secrets from (or to) unregistered nodes.
Changes:
- Gate supervisor/tunnel secret inclusion in
fill_dauth_data()on both protocol-oracle membership and dAuth-registry oracle membership (fail-closed on registry check errors). - Add a cached dAuth-registry gate in the dAuth manager plugin to stop tunnel lifecycle work when unregistered, and fail closed at the auth endpoint with a forced fresh check.
- Add focused unit tests for secret omission and
_process()gating behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| extensions/business/dauth/dauth_mixin.py | Tightens secret disclosure by requiring dAuth registry oracle status in addition to protocol oracle status. |
| extensions/business/dauth/dauth_manager.py | Adds runtime + endpoint gating based on dAuth registry status, including periodic re-checking and tunnel stop on disable. |
| extensions/business/dauth/test_dauth_registry_gating.py | Adds unit coverage for secret gating and manager _process() gating using a lightweight loader harness. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aledefra
force-pushed
the
codex/dauth-registry-gating
branch
3 times, most recently
from
July 1, 2026 15:13
fede474 to
d5aaaa2
Compare
aledefra
force-pushed
the
codex/dauth-registry-gating
branch
from
July 8, 2026 10:57
d5aaaa2 to
1fd2bd6
Compare
aledefra
force-pushed
the
codex/dauth-registry-gating
branch
from
July 28, 2026 14:51
1fd2bd6 to
0acec17
Compare
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
should_pause,should_resume,on_pause,on_resume) instead of a manual_processgate.Dependency
Requires the plugin pause lifecycle hooks merged in Ratio1/naeural_core#215.
Tests
Residual Coverage
The focused edge tests use FastAPI lifecycle fakes. Real Uvicorn/Cloudflare pause-resume behavior is covered by the reference testbed in edge-node #470, but not repeated as a dAuth-specific Docker E2E in this PR.