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
Cloudfront storage documentation issue #2838
Comments
Thanks for the detailed bug report. The latest docs are there in |
Hello @manishtomar You can close this issue. Thanks for the feedback. |
Why is this not actually fixed yet? In 2.7.1 this setting is still required - even though the docs don't say it is.. |
looks like it was not backported / cherry-picked in the 2.7 release branch. I just opened a backport for consideration: #3088 |
Closing as fixed in #3088 and generally, outdated. Feel free to reopen. |
So, after restart the registry, it stopped working . Then I got the error bellow in my logs.
Then I went to the documentation at: https://docs.docker.com/registry/configuration/#cloudfront. I checked my config.yml and I dind't found out
any missconfiguration as you can see bellow.
As you can see, all required storage options are in there.
baseurl
privatekey
keypairid
After that I went to check the code and then a reliazed that there is a undocumented storage options "ipfilteredby" that is checked in the line:
https://github.com/docker/distribution/blob/b75069ef13a1de846c0cdf964f5917f5b00c1a47/registry/storage/driver/middleware/cloudfront/middleware.go#L141
So, I added the ipfilteredby to the options and then the registry works again.
I think you can update the documentation with that option as required, set a default value or not check the type (string) if it's not a required option.
https://docs.docker.com/registry/configuration/#cloudfront
https://github.com/docker/distribution/blob/b75069ef13a1de846c0cdf964f5917f5b00c1a47/registry/storage/driver/middleware/cloudfront/middleware.go#L141
The text was updated successfully, but these errors were encountered: