package resolution import ( "encoding/json" mcat "git.novox.be/novox/mesh-sdk/go/catalogue" ) // CarriesVaultSealed says whether a module's own secrets are the core's credentials, as its manifest says // (core-credentials): no list of modules is kept here. func CarriesVaultSealed(m mcat.Manifest) bool { return mcat.CarriesCoreCredentials(m) } // vaultSealedOf is the vault's box for one of module's own secrets, if the rendering was given one. func renderingVaultSealedOf(with mcat.Rendering, module, name string) (json.RawMessage, bool) { box, ok := with.VaultSealed[module][name] return box, ok && len(box) > 0 }