-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 OCI documentation #4781
Add OCI documentation #4781
Conversation
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 picking this up! I've left a bunch of comments inline 🙃 👇
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 bearing with me! I've added a few more comments.
docs/content/management-bundles.md
Outdated
- the bundle tarball layer - the actual bundle tarball | ||
- the configuration layer - currently empty | ||
|
||
For OCI compatible registries an ***oci*** folder is created in the [persistence directory](../configuration/#miscellaneous). If this value is not set, because the OCI downloader plugin requires a storage path, the system's temporary folder location will be used instead. |
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.
Should the user care about this folder? Should it be backed-up or cleaned out regularly? 💭
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.
Added a comment that this folder should be maintained by the user and it should be backed-up/cleaned periodically as this also acts as a cache for the OCI downloader
This is also a good moment to drop |
@srenatus I talked with the team about the policy CLI. This is an OSS tool similar to oras within it's own Github organization so we don't think this is really a vendor-specific tool as we wanted it to be independent. |
Updated devel doc, I left only debugging information there in case anyone wants to do a step-by-step debugging session on the OCI downloader |
Thanks! I think what's left is pretty standard procedure -- let's remove the entire file, please 😃 |
Hah, the failing test is #4748 🙃 |
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.
Some questions/notes/requests. Thanks for bearing with me
docs/content/management-bundles.md
Outdated
- the bundle tarball layer - the actual bundle tarball | ||
- the configuration layer - currently empty | ||
|
||
For OCI compatible registries an ***oci*** folder is created in the [persistence directory](../configuration/#miscellaneous). If this value is not set, because the OCI downloader plugin requires a storage path, the system's temporary folder location will be used instead. This folder should be maintained by the user. We recommend backing-up or cleaning up this folder periodically as this acts as a local cache for the OCI downloader. |
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.
Can I have bundles pulled from multiple registries? I suppose so. But one, shared, oci
folder is still OK?
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.
Yes, it should still be ok. You can configure multiple services with oci typing and add in the bundles in you configuration.
The Both OPCR and the |
Hi @srenatus, OPCR is meant to be a reference implementation of a "policy registry" - it is single-user, free to use, and has no vendor angle (or upsell). And the Stepping back, the entire point of the |
👋 hello @ogazitt welcome to this discussion.
OPCR is the default server that But really, I believe OPCR doesn't need this extra mention. Besides being on the ecosystem page already, we have no evidence that our users care for it, and I don't think we should push them into using the "reference implementation". Frankly, since OPCR isn't open source, I'm not sure I see the "reference" angle here -- we don't learn anything from using OPCR that we wouldn't learn from using AWS' or GitHub's OCI registries. Also, the docs here show that there's not much that it does that a shell script using oras or any other standard OCI tool wouldn't be able to accomplish. If there was much effort, we'd need to provide that in |
Ah, I see the description of the policy repo does contain a mention of Open Policy Registry, and I can see why that would be a concern, because |
After taking a look at the docs text, I can see what @srenatus is getting at. Related: I think that if we find users often want to be building OCI images for OPA, that ought to become part of OPA itself, maybe as part of what a sub-command on the CLI (like |
Signed-off-by: carabasdaniel <dani@aserto.com>
Signed-off-by: carabasdaniel <dani@aserto.com>
Hi @philipaconrad @srenatus, |
@carabasdaniel You're correct. The test failure is unrelated to these changes. Our MacOS tests have been a bit flaky recently. We'll re-run the failing CI tests, and this PR should go green again. |
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.
These changes look ready for merge! 👍
Closes: #4638