package resolution import ( "encoding/json" "slices" mcat "git.novox.be/novox/mesh-sdk/go/catalogue" ) // CarriesVaultSealed says whether module's own secrets are the core's credentials. func CarriesVaultSealed(module string) bool { return slices.Contains(mcat.CoreCredentialModules, module) } // 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 }