design-15 S6a: secret:// operator targets + Sub-Store auto-sync - #16
Closed
lr00rl wants to merge 1 commit into
Closed
design-15 S6a: secret:// operator targets + Sub-Store auto-sync#16lr00rl wants to merge 1 commit into
lr00rl wants to merge 1 commit into
Conversation
design-15 §7 (no plugin merge): declared payload operator-target fields may now carry secret://<key>, resolved from the plugin's own encrypted vault before binding — so a saved Sub-Store endpoint can back http.operator.do without the URL re-crossing the browser. Resolution goes through plugin_host.go's new pluginSecretValue, the single non-broker read path the vault isolation test permits. Every committed vpn-core mutation (identity CRUD, bindings, rotation, applied line-user changes) re-arms a 30s debounced trigger; on fire, if the Sub-Store companion has a saved endpoint and autosync enabled, the server invokes its import as the system actor with allow/deny audits. Silent skip when disabled or inactive; no generic event bus (appendix C).
Contributor
Author
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
design-15 §7 server slice (Sub-Store stays a separate companion):
secret://operator targets: a declared payload operator-target field may carrysecret://<key>; the gateway resolves it from the plugin's own encrypted vault (pluginsecret:<pluginID>) before binding and rewrites the payload, so a saved Sub-Store endpoint backshttp.operator.dowithout the URL re-crossing the browser. Unknown/malformed refs fail loud; resolution is audited without the value.pluginSecretValueinplugin_host.gois the single non-broker read path —TestNoHTTPHandlerReachesThePluginSecretStorestill confines store accessors to that file.autosync=1, the server invokesimportas the system actor (allow/deny audited). Silent skip when disabled/inactive; no generic event bus (design-15 appendix C).Stacked on #15. Companion artifact/UI slice lands in the sub-store repo.
Verification
gofmt/go vetclean;go test ./internal/server/ok (20s) incl. the vault-isolation guardRefs LatticeNet/lattice#2, #13–#15.