-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add OPA support to the policy API's: #579
Conversation
Updated Api's: - Create Policy: Adds the kind and Query options for OPA and enforcement_level - Update Policy: Adds option to update the Query - List Policy: List allows filtering by kind Adds integration tests for the above
ed92d07
to
9e2a6f6
Compare
# Conflicts: # policy_set.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good 🎉
a09933d
to
c2eba40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! 🥳
c2eba40
to
d4ae7c4
Compare
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
Description
Add OPA support to the go-tfe client for policy API's. OPA is still in beta phase.
This PR only contains changes to the policy API's.
For a complete list of API's that will be updated in subsequent PRs see : https://github.com/hashicorp/terraform-docs-common/pull/141/files
Updated Api's:
Testing plan
Integration tests added
External links
API Docs
JIRA
API PR
Output from tests
Needs the following env vars:
TFE_ADDRESS
TFE_TOKEN
OAUTH_CLIENT_GITHUB_TOKEN
GITHUB_POLICY_SET_IDENTIFIER
Set ENABLE_BETA=1