Enable Namespacing
Learn to issue token for namespaces in a vHSM.
Tokens can be issued for namespaces. To enable this feature, use the -namespacing flag. The vhsm nitride init command simplifies the setup of vHSM by automating authentication, identity creation, policy enforcement, and attestation. The namespacing feature allows fine-grained access control across multiple namespaces.
Enable token namespacing with a policy file:
vhsm nitride init -namespacing @policy.hclAlternatively, pipe the policy file:
cat policy.hcl | vhsm nitride init -namespacingThis ensures that child namespaces can have distinct access control policies.
Example Setup with Namespaces
If the vHSM plugin is enabled in the root namespace, while workloads access resources in the GCP and azurenamespaces.
!. Initialize vHSM with token namespacing
vhsm nitride init -namespacing @policy.hclEnable authentication in the namespace root
vhsm auth enable -path=ratls ratlsCreate identities in the
rootnamespace
vhsm nitride identity create @platform.json
vhsm nitride identity create @firmware.json
vhsm nitride identity create @workload.jsonDefine policies in each namespace
vhsm nitride policy create @policy.jsonCreate attestations for each namespace.
vhsm nitride attestation create @attestation.jsonWith this setup, tokens issued in root can reference and delegate access to workloads running in the gcp , and azurenamespaces. Each namespace can have its own policies and attestations.
Last updated
Was this helpful?