-
Notifications
You must be signed in to change notification settings - Fork 680
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
Drop NET_RAW from all containers in manual #4116
Conversation
As an aside: Are there any checks to detect configuration drift from AIO and Manual modes? Perhaps a github check could help find these kind of bugs? Also, I wonder if more capabilities could be dropped from all of the containers. |
you need to add this to the https://github.com/nextcloud/all-in-one/blob/main/manual-install/update-yaml.sh, otherwise your changes will be overridden when the file is regenerated |
nextcloud#3377 drops NET_RAW from all containers, but this doesn't appear to have been adopted into the manual mode. Signed-off-by: Joshua Hesketh <[email protected]>
@Zoey2936 Just wondering if you could please take another look at this when you get a chance. Thanks! |
I still think it needs to be added to the update-yaml.sh, since the latest.yaml will be automatically overriden and if you add it to the containers.json the containers will get the value twice which could cause errors |
Right, I see, thanks. Wouldn't it be better to have the capabilities listed in Rationale:
|
Not sure @szaimen did this |
Looking a bit closer, it seems this is a little more non-trivial than I expected. Specifically cap_drop isn't supported in containers.json. It would need loading in ContainerDefinitionFetcher.php and passed into the Container() constructor. All doable, and possibly the neater solution due to the above rationale, but more work than placing a I'll await @szaimen's opinion before bothering to pipe it through the definition fetcher. |
Signed-off-by: Simon L <[email protected]>
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.
LGTM
#3377 drops NET_RAW from all containers, but this doesn't appear to have been adopted into the manual mode.