object policies
- Source
- policies.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- policies
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val DenySysRule: Rule
- val RevokeSelfRule: Rule
-
def
createPolicy(cfg: PolicyConfig, sn: StackName, ns: NamespaceName, resources: Set[String]): VaultF[Unit]
For every resource in the specified namespace and unit, we create grant read access to a resource creds path from
cfg
for each resource, which may be internal or external. - def deletePolicy(sn: StackName, ns: NamespaceName): VaultF[Unit]
- def pkiRule(pkiPath: String, ns: NamespaceName): Rule
- def policyName(sn: StackName, ns: NamespaceName): String
-
def
resourceRule(resourceCredsPath: String, sn: StackName, ns: NamespaceName, resource: String): Rule
Creates a rule to read from a resource based on
resourceCredsPath
.Creates a rule to read from a resource based on
resourceCredsPath
. Variables%env%
,%unit%
, and%resource%
are interpolated. - def withPolicy[A](cfg: PolicyConfig, sn: StackName, ns: NamespaceName, resources: Set[String], interp: ~>[Vault, IO])(f: (Token) ⇒ Stream[IO, A]): Stream[IO, A]