Skip to content

Commit

Permalink
Merge pull request #54 from Infisical/daniel/add-missing-allowed-subj…
Browse files Browse the repository at this point in the history
…ects

fix: added missing permission subjects to terraform provider
  • Loading branch information
DanielHougaard authored Sep 16, 2024
2 parents bcf45d8 + a7b3bd3 commit 6662fe3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 @@ -86,7 +86,7 @@ Required:

- `actions` (List of String) Describe what action an entity can take. Enum: create,edit,delete,read
- `conditions` (Attributes) The conditions to scope permissions (see [below for nested schema](#nestedatt--permission--conditions))
- `subject` (String) Describe what action an entity can take. Enum: role,member,groups,settings,integrations,webhooks,service-tokens,environments,tags,audit-logs,ip-allowlist,workspace,secrets,secret-rollback,secret-approval,secret-rotation,identity
- `subject` (String) Describe what action an entity can take. Enum: role,member,groups,settings,integrations,webhooks,service-tokens,environments,tags,audit-logs,ip-allowlist,workspace,secrets,secret-rollback,secret-approval,secret-rotation,identity,certificate-authorities,certificates,certificate-templates,kms,pki-alerts,pki-collections

<a id="nestedatt--permission--conditions"></a>
### Nested Schema for `permission.conditions`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/project_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ resource "infisical_project_role" "biller" {
Required:

- `action` (String) Describe what action an entity can take. Enum: create,edit,delete,read
- `subject` (String) Describe what action an entity can take. Enum: role,member,groups,settings,integrations,webhooks,service-tokens,environments,tags,audit-logs,ip-allowlist,workspace,secrets,secret-rollback,secret-approval,secret-rotation,identity
- `subject` (String) Describe what action an entity can take. Enum: role,member,groups,settings,integrations,webhooks,service-tokens,environments,tags,audit-logs,ip-allowlist,workspace,secrets,secret-rollback,secret-approval,secret-rotation,identity,certificate-authorities,certificates,certificate-templates,kms,pki-alerts,pki-collections

Optional:

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 @@ -19,7 +19,7 @@ import (
var (
_ resource.Resource = &projectRoleResource{}
PERMISSION_ACTIONS = []string{"create", "edit", "delete", "read"}
PERMISSION_SUBJECTS = []string{"role", "member", "groups", "settings", "integrations", "webhooks", "service-tokens", "environments", "tags", "audit-logs", "ip-allowlist", "workspace", "secrets", "secret-rollback", "secret-approval", "secret-rotation", "identity"}
PERMISSION_SUBJECTS = []string{"role", "member", "groups", "settings", "integrations", "webhooks", "service-tokens", "environments", "tags", "audit-logs", "ip-allowlist", "workspace", "secrets", "secret-rollback", "secret-approval", "secret-rotation", "identity", "certificate-authorities", "certificates", "certificate-templates", "kms", "pki-alerts", "pki-collections"}
)

// NewProjectResource is a helper function to simplify the provider implementation.
Expand Down

0 comments on commit 6662fe3

Please sign in to comment.