C-3: a node takes its licence token from the vault (issue 1409)
The agent module asks the seat's current which licence it holds and its key, then the vault's get for that licence's access secret sealed to its own key: at its start, on a binding.changed with a newer generation than it applied, and on the vault's secret-changed for the licence it holds. The applied binding keeps the licence's key, so the vault's event is matched by the carried key, never one formed here. Builds: design 39 bus-and-switch §19, §18, B7, B9, B11 Claude-Session: https://claude.ai/code/session_01NcbgfHb9d4T9nq5Q6WqdiJ
This commit is contained in:
@@ -50,7 +50,9 @@ type Settings struct {
|
||||
|
||||
// Binding is the licence this node holds, as it was last applied.
|
||||
type Binding struct {
|
||||
Licence string `json:"licence"`
|
||||
Licence string `json:"licence"`
|
||||
// Key is the licence's key as the manager says it, which names its access secret in the vault (§19, B7).
|
||||
Key string `json:"key,omitempty"`
|
||||
Kind string `json:"kind"` // subscription | api-key
|
||||
Generation int64 `json:"generation,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user