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
feat: Open Policy Agent module (#1740) #4441
Merged
Merged
Conversation
This file contains 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
davidkna
requested changes
Oct 9, 2022
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.
Thanks for the contribution! This PR mostly looks good, but please address my comments.
Please also update the presets as required in docs/.vuepress/public/presets/toml
.
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Presets updated, at least the ones I think are relevant (?). There are no nerd fonts icons for OPA. |
davidkna
approved these changes
Oct 9, 2022
This was referenced Feb 25, 2023
This was referenced Apr 11, 2023
Indyandie
pushed a commit
to Indyandie/starship
that referenced
this pull request
Jul 26, 2023
* feat: Open Policy Agent module (starship#1740) * Format documentation * Fix typo, `ropa` -> `rego` Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * Update presets for OPA module * Add extra space to OPA module symbol Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
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
Adds a module for the Open Policy Agent tool,
opa
.This assumes that people put the opa binary on $PATH, as it seems to not really be packaged apart from Docker Hub.
Emoji was picked because it's the closest to the official logo, which is a horned hat.
Largely based on the bun module and other modules that just run a command and parse it.
Upstream will likely not change the output of
opa version
, as they're conscious of it potentially being parsed; see https://github.com/open-policy-agent/opa/blob/15b9a884cd5f5fd403cec9929fa58d86b0a9046f/cmd/version.goMotivation and Context
Closes #1740
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: