package catalogue import ( "strings" ) // A moved module's own secrets come from the vault (novox/hq ADR 0349 clauses 7 and 11, design 57 V4, issue 647): // where the module is handed, its declaration carries no sealed value — each file holding a secret alone is placed // without one and filled by the client, and the plan names every secret its templates and those files need, by // name. Where it is not handed, and for every module not moved, the composition is byte for byte what it was. func builtBot(text string) []Built { return []Built{{Name: "files", Kind: ArtifactArchive, Reference: ArtifactStoreScheme + "bot/files/blobs/sha256:" + strings.Repeat("e", 64), Digest: "sha256:" + strings.Repeat("e", 64), Texts: map[string]string{"bot.conf": text}}} } // What the controller seals for the bot when it fills it the old way: a stand-in sealed value. func sealedForBot(with Rendering) Rendering { with.Needed = map[string]map[string]string{"bot": {"token": "sealed-to-the-node"}} return with }