Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
revert editor reformatting of handlebars examples
adilson5d323af4cb9e
diff --git a/docs/documentation/platform/access-controls/abac/managing-machine-identity-attributes.mdx b/docs/documentation/platform/access-controls/abac/managing-machine-identity-attributes.mdxindex 661341ec08..6a673ea2b8 100644--- a/docs/documentation/platform/access-controls/abac/managing-machine-identity-attributes.mdx+++ b/docs/documentation/platform/access-controls/abac/managing-machine-identity-attributes.mdx@@ -72,7 +72,6 @@ For methods like OIDC, these come as claims in the token and can be made availab```<img src="/images/platform/access-controls/abac-policy-k8s-format.png" />-</Tab><Tab title="AWS Attributes">For identities authenticated using AWS Auth, several attributes can be accessed. On top of the 3 base attributes, there's 4 derived from the ARN. The example below includes comments showing how each derived attribute looks like based on this ARN: `arn:aws:iam::123456789012:user/example-user`@@ -90,7 +89,6 @@ For methods like OIDC, these come as claims in the token and can be made availab```<img src="/images/platform/access-controls/abac-policy-aws-format.png" />-</Tab><Tab title="Other Authentication Method Attributes">At the moment we only support OIDC claims, Kubernetes attributes, and AWS attributes. Payloads on other authentication methods are not yet accessible.@@ -110,14 +108,13 @@ Removes a prefix from the beginning of a string. If the string does not start wiGiven `identity.auth.kubernetes.namespace` = `production-us-east`:```handlebars-{{stripPrefix identity.auth.kubernetes.namespace "production-"}} -> us-east+{{ stripPrefix identity.auth.kubernetes.namespace 'production-' }} -> us-east```Given `identity.auth.aws.arn` = `arn:aws:iam::123456789012:user/example-user`:```handlebars-{{stripPrefix identity.auth.aws.arn "arn:aws:iam::123456789012:"}}--> user/example-user+{{ stripPrefix identity.auth.aws.arn 'arn:aws:iam::123456789012:' }} -> user/example-user```**trimSuffix**@@ -134,25 +131,25 @@ wildcards trims nothing.Given `identity.auth.kubernetes.namespace` = `myapp-pr-42`:```handlebars-{{trimSuffix identity.auth.kubernetes.namespace "-pr-*"}} -> myapp+{{ trimSuffix identity.auth.kubernetes.namespace '-pr-*' }} -> myapp```Given `identity.auth.kubernetes.namespace` = `myapp` (nothing matches the pattern):```handlebars-{{trimSuffix identity.auth.kubernetes.namespace "-pr-*"}} -> myapp+{{ trimSuffix identity.auth.kubernetes.namespace '-pr-*' }} -> myapp```Given `identity.auth.kubernetes.namespace` = `myapp-pr-1`, where `-*` matches both `-pr-1`and `-1`, the shorter suffix is removed:```handlebars-{{trimSuffix identity.auth.kubernetes.namespace "-*"}} -> myapp-pr+{{ trimSuffix identity.auth.kubernetes.namespace '-*' }} -> myapp-pr```You can combine this with a secret path condition so both the base namespace and its pull requestnamespaces read from one path:```handlebars-/{{trimSuffix identity.auth.kubernetes.namespace "-pr-*"}}/**+/{{ trimSuffix identity.auth.kubernetes.namespace '-pr-*' }}/**```