-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
restrict filters server side in docker images #10128
Conversation
Signed-off-by: Victor Vieux <vieux@docker.com>
See docker-archive/classicswarm#249 for an example |
you just changed some restrictions to constraints on the cli - where is the documentation telling users of this? :) |
I understand the use case, but want to point to a reason that accepting any filter could be troublesome #8777. For that reason; perhaps this should be given another thought #928 Implement a 'clean' command so that uses can have a "safer" way to cleanup images and don't need to use the filters for that? |
Reading docker-archive/classicswarm#249; wouldn't that be something to use "meta-data" for? #9882, i.e. |
@SvenDowideit @thaJeztha I'll add the check back server side, so there will be no change for the user |
Filters are already sent to the daemon, so it doesn't require any doc change |
👍 thanks |
Signed-off-by: Victor Vieux <vieux@docker.com>
@thaJeztah @SvenDowideit updated, I added back the test @crosbymichael @jfrazelle can you please take a look ? |
LGTM |
I like this; having this check server-side makes more sense, so a nice improvement overall as well. |
@thaJeztah I agree :D |
@vieux why is this more useful as a server side check? Are all filters done on the client or server? |
@crosbymichael filters are done server side for |
LGTM: server-side should be the source of truth for what's allowed. |
Server-side restriction of allowed image filters
Unlike
docker ps
,docker images
filters are restricted.Filters are a great way to extend the filtering of the cli.
This change would be extremely useful in Swarm.