Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: added doc reference for permissions_v2 conditions usgae #82

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/resources/project_identity_specific_privilege.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ Required:

Optional:

- `conditions` (String) When specified, only matching conditions will be allowed to access given resource.
- `conditions` (String) When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.
- `inverted` (Boolean) Whether rule forbids. Set this to true if permission forbids.
5 changes: 4 additions & 1 deletion docs/resources/project_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ resource "infisical_project_role" "biller" {
"$in" = ["dev", "prod"]
"$eq" = "dev"
}
secretPath = {
"$eq" = "/"
}
})
},
]
Expand Down Expand Up @@ -108,5 +111,5 @@ Required:

Optional:

- `conditions` (String) When specified, only matching conditions will be allowed to access given resource.
- `conditions` (String) When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.
- `inverted` (Boolean) Whether rule forbids. Set this to true if permission forbids.
3 changes: 3 additions & 0 deletions examples/resources/infisical_project_role/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ resource "infisical_project_role" "biller" {
"$in" = ["dev", "prod"]
"$eq" = "dev"
}
secretPath = {
"$eq" = "/"
}
})
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (r *projectIdentitySpecificPrivilegeResourceResource) Schema(_ context.Cont
},
"conditions": schema.StringAttribute{
Optional: true,
Description: "When specified, only matching conditions will be allowed to access given resource.",
Description: "When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.",
PlanModifiers: []planmodifier.String{
pkg.JsonEquivalentModifier{},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource/project_role_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (r *projectRoleResource) Schema(_ context.Context, _ resource.SchemaRequest
},
"conditions": schema.StringAttribute{
Optional: true,
Description: "When specified, only matching conditions will be allowed to access given resource.",
Description: "When specified, only matching conditions will be allowed to access given resource. Refer to the documentation in https://infisical.com/docs/internals/permissions#conditions for the complete list of supported properties and operators.",
PlanModifiers: []planmodifier.String{
pkg.JsonEquivalentModifier{},
},
Expand Down
Loading