Skip to content
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 documentation #48

Merged
merged 2 commits into from
Sep 20, 2021
Merged

Add OPA documentation #48

merged 2 commits into from
Sep 20, 2021

Conversation

ereslibre
Copy link
Member

@ereslibre ereslibre commented Aug 27, 2021

Note well: to be merged only when the OPA work is merged and released.

Fixes: #47

This documentation covers the general Rego information and also two
specific sections about Open Policy Agent and Gatekeeper.

In other order of news, when I was writing this documentation I also updated the policy-evaluator opa branch with support for running gatekeeper policies :)

@ereslibre ereslibre requested a review from flavio August 27, 2021 15:17
Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good write up, helped me understand OPA and Gatekeeper!

Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, I left some comments. I hope everything is clear and consistent, I did the review over many days...

src/SUMMARY.md Show resolved Hide resolved
src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/02-builtin-support.md Outdated Show resolved Hide resolved
src/writing-policies/rego/02-builtin-support.md Outdated Show resolved Hide resolved
@ereslibre
Copy link
Member Author

@flavio All feedback has been addressed. Please have a look. I also recommend to run mdbook locally to get a better idea of how it looks and feels.

Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes, we are definitely heading in the right direction. I left some more comments

src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/02-builtin-support.md Outdated Show resolved Hide resolved
src/writing-policies/rego/gatekeeper/04-distribute.md Outdated Show resolved Hide resolved
src/writing-policies/rego/gatekeeper/04-distribute.md Outdated Show resolved Hide resolved
src/writing-policies/rego/open-policy-agent/01-intro.md Outdated Show resolved Hide resolved
Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, there's just one small fix to do. Once this is done I think you can squash everything into a single commit (or multiple ones, if you prefer).

We will merge that as soon as we finish all the work on the OPA/Gatekeeper story

src/writing-policies/rego/gatekeeper/02-create-policy.md Outdated Show resolved Hide resolved
This documentation covers the general Rego information and also two
specific sections about Open Policy Agent and Gatekeeper.
Copy link
Member Author

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Canot request changes/approve. Typo

src/writing-policies/rego/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/gatekeeper/01-intro.md Outdated Show resolved Hide resolved
src/writing-policies/rego/open-policy-agent/01-intro.md Outdated Show resolved Hide resolved
Be explicit about the releases of kwctl and policy-server that handle
Rego policies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to use OPA policies
3 participants