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
fix contraction
adilson2b4c169f9009
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 6a673ea2b8..ed0dba2ee6 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,6 +72,7 @@ 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`@@ -89,6 +90,7 @@ 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.@@ -101,20 +103,21 @@ In addition to referencing attributes directly, you can use helper functions to**stripPrefix**-Removes a prefix from the beginning of a string. If the string does not start with the given prefix, it is returned unchanged.+Removes a prefix from the beginning of a string. If the string doesn't start with the given prefix, it is returned unchanged.**Examples:**Given `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**@@ -131,25 +134,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-*"}}/**```