Skip to content

feat: add support for the ABAC VIEW action - #181

Merged
andrii-codefresh merged 3 commits into
masterfrom
CF-149-abac-view-action
Oct 26, 2026
Merged

andrii-codefresh merged 3 commits into
masterfrom
CF-149-abac-view-action

Conversation

@andrii-codefresh

@andrii-codefresh andrii-codefresh commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Add VIEW to the allowed actions of the codefresh_abac_rules resource
  • Add an acceptance test step for a gitopsApplications rule with VIEW + SYNC and a RUNTIME attribute
  • Docs: add a VIEW rule example, a "View permissions" section explaining the default VIEW rule and the recommended order of changes, and an "Import" section with how to find a rule ID; update examples/abac_rules

Why

GitOps ABAC supports VIEW permissions for gitopsApplications, which control which applications users can see in the GitOps Apps, Products and Environments dashboards. The provider rejected VIEW with Invalid action value: VIEW, so these rules could not be managed with Terraform.

Notes

  • No API/client changes: VIEW is a regular action of an ABAC rule, so the existing GraphQL mutations are used as is.
  • Each account is created with a default rule granting VIEW on all gitopsApplications to the users team. The provider does not create it; to restrict visibility it should be imported (import block / terraform import) and narrowed or removed.
  • Tested:
    • make testacc TEST=./codefresh TESTARGS='-run TestAccCodefreshAbacRulesConfig' passes
    • Manually with a local build against a local environment: create a VIEW rule, reject an unknown action, import the default VIEW rule with no diff

Checklist

@andrii-codefresh

Copy link
Copy Markdown
Collaborator Author

/test

1 similar comment
@andrii-codefresh

Copy link
Copy Markdown
Collaborator Author

/test

@andrii-codefresh
andrii-codefresh merged commit 55608f9 into master Oct 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants