Let module issue mint and deliver a bus process's account (issue 1181)
This commit is contained in:
@@ -192,7 +192,7 @@ func declaredFor(m catalogue.Manifest, seats map[string]catalogue.SeatDeclaratio
|
||||
Queues: queueOwnersOf(m),
|
||||
// And every process of its own that declares bus, each granted a bus account of its own (novox/hq
|
||||
// ADR 0436 §1, §2).
|
||||
Processes: processesOf(m),
|
||||
Processes: ProcessesOf(m),
|
||||
// And the tools its health asks (novox/hq ADR 0240): the machine's node-engine is granted them.
|
||||
Checks: catalogue.HealthChecks(m),
|
||||
// And whether it runs as an account of its own (novox/hq ADR 0259 §8).
|
||||
@@ -465,11 +465,11 @@ func queueOwnersOf(m catalogue.Manifest) []broker.QueueOwner {
|
||||
return out
|
||||
}
|
||||
|
||||
// processesOf is every process of a module that declares bus, as the broker composes its own account from
|
||||
// ProcessesOf is every process of a module that declares bus, as the broker composes its own account from
|
||||
// (novox/hq ADR 0436 §1, §2): its own emits, its own work-queue consumers (queueOwnersOf, filtered to each
|
||||
// process's own), its own state, whether it reads its module's own asks, and the tools and seat verbs it
|
||||
// calls.
|
||||
func processesOf(m catalogue.Manifest) []broker.ProcessPrincipal {
|
||||
func ProcessesOf(m catalogue.Manifest) []broker.ProcessPrincipal {
|
||||
buses := m.ProcessBuses()
|
||||
if len(buses) == 0 {
|
||||
return nil
|
||||
|
||||
@@ -68,6 +68,9 @@ const (
|
||||
// BusProvisioner is a machine's provisioner client (novox/hq ADR 0349 clause 11, design 57 P3): an account of
|
||||
// its own, named for the machine.
|
||||
BusProvisioner = "provisioner"
|
||||
// BusProcess is one process of a module that declares bus (novox/hq ADR 0436 §1, §2): an account of its
|
||||
// own, named for the machine, the module and the process.
|
||||
BusProcess = "process"
|
||||
)
|
||||
|
||||
// MintBusPassword makes a bus password and records its hash under a username, replacing whatever was
|
||||
|
||||
Reference in New Issue
Block a user