Repository navigation
decern — an egress ext_proc adapter for Substrate actors (proven decision + contestable record) #4091
Anivar Aravind (anivar)
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Built a small Envoy
ext_procservice that evaluates Substrate actor egress against decern, an open deterministic authorization kernel with an AuthZEN 1.0 PDP.It plugs into the
--experimental-additional-egress-extproc-serviceaugment path:atenet-egresscalls it on every outbound request after it has authenticated the actor and applied itsEgressPolicy. The adapter reads the actor SPIFFE id fromfilter_state['dev.ate.actor.identity'](exactly as atenet dispatch reads it) and the destination, maps them to an AuthZEN evaluation, and either blocks (enforce, fail-closed 403) or records the decision and lets it through (record, fail-open). It never proxies — the mTLS CONNECT, credential injection and the Network Egress Contract stay inatenet-egress; the adapter carries only the decision and its record.Why it may interest you: decern returns a proven decision and a signed, contestable record on one call, so
recordmode gives a per-actor egress audit the subject can contest without putting decern on the critical path.Self-hosted in the decern repo (Apache-2.0), with README and tests: https://github.com/anivar/decern/tree/main/examples/substrate_egress_extproc
note for maintainers: the resource is the inner request
:authority, which only carries a port when the actor dialedhost:port. The reliable dialed port is indev.ate.connect.authorityfilter state, which the augment doesn't forward today; forwarding it (one line in the filter'srequest_attributes) would let adapters key egress policy onhost:portreliably.All reactions