TFVP-Initial-Implementation-Sys-Backend-Group-Policy-Application#2863
Open
itsjiyapatel wants to merge 7 commits intomainfrom
Open
TFVP-Initial-Implementation-Sys-Backend-Group-Policy-Application#2863itsjiyapatel wants to merge 7 commits intomainfrom
itsjiyapatel wants to merge 7 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Terraform Plugin Framework resource to manage Vault Enterprise’s global group policy application mode (sys/config/group-policy-application) as a singleton configuration, with accompanying docs, constants/version gating, and acceptance tests.
Changes:
- Introduces
vault_config_group_policy_applicationresource with CRUD + import and Vault Enterprise 1.13.8+ checks. - Registers the new resource in the framework provider and adds supporting constants/version references.
- Adds resource documentation and acceptance tests.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
internal/vault/sys/config/group_policy_application.go |
Implements the new singleton sys/config resource (schema + CRUD/import + validation/version checks). |
internal/vault/sys/config/group_policy_application_test.go |
Adds acceptance tests covering basic CRUD/import and some validation scenarios. |
internal/provider/fwprovider/provider.go |
Registers the new framework resource. |
internal/provider/meta.go |
Adds VaultVersion1138 semver for API gating. |
internal/consts/consts.go |
Adds group_policy_application_mode field constant (and VaultVersion1138). |
website/docs/r/config_group_policy_application.html.md |
Adds user-facing documentation for the new resource. |
CHANGELOG.md |
Adds a changelog entry for the new resource. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements a new Terraform resource vault_config_group_policy_application for managing Vault's group policy application mode configuration. This provides a type-safe, declarative way to control how identity group policies are applied across namespace hierarchies, replacing the need to use vault_generic_endpoint for this critical security configuration.
Resource: vault_config_group_policy_application at internal/vault/sys/config/group_policy_application.go
Key Features:
Configuration Modes:
Relates OR Closes #0000
Checklist
Output from acceptance testing:
Community Note
PCI review checklist
I have documented a clear reason for, and description of, the change I am making.
If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
If applicable, I've documented the impact of any changes to security controls.
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.