[BUG][Modules] Epiphany's image-registry does not use HTTPS
See original GitHub issueDescribe the bug Communication with Epiphany’s image-registry is insecure.
We use this setting on all Epiphany hosts everywhere where docker runs:
{
"insecure-registries" : ["mop-module-tests-all-0:5000"],
}
This is the config of docker registry we use on repository hosts (it uses plain HTTP):
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
To Reproduce When AKS tries to pull images from the image-registry, this happens:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 15m default-scheduler Successfully assigned queue/rabbitmq-cluster-0 to aks-default-31075000-vmss000000
Normal Pulling 13m (x4 over 15m) kubelet, aks-default-31075000-vmss000000 Pulling image "mop-module-tests-all-0:5000/rabbitmq:3.8.3"
Warning Failed 13m (x4 over 15m) kubelet, aks-default-31075000-vmss000000 Failed to pull image "mop-module-tests-all-0:5000/rabbitmq:3.8.3": rpc error: code = Unknown desc = Error response from daemon: Get https://mop-module-tests-all-0:5000/v2/: http: server gave HTTP response to HTTPS client
Warning Failed 13m (x4 over 15m) kubelet, aks-default-31075000-vmss000000 Error: ErrImagePull
Normal BackOff 13m (x6 over 15m) kubelet, aks-default-31075000-vmss000000 Back-off pulling image "mop-module-tests-all-0:5000/rabbitmq:3.8.3"
Warning Failed 4m56s (x43 over 15m) kubelet, aks-default-31075000-vmss000000 Error: ImagePullBackOff
In particular http: server gave HTTP response to HTTPS client
is very disturbing 👎
Expected behavior ~Epiphany’s image-registry should at least expose its endpoint on HTTPS.~
- We should use
k8s_as_cloud_service
variable in application templates to ensure that if we use managed k8s service we use public registry address - we should add description of that problem to Changelog to “known issues” that it’s impossible to use embedded registry for now and one needs to use external registry (eg.: ACS).
Config files There is no way to change this behavior via config. It’s the only implemented default.
OS (please complete the following information):
- ALL
Cloud Environment (please complete the following information):
- ALL
Additional context N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Troubleshooting OpenShift Container Platform 4.x: Image ...
How do I troubleshoot issues with the image registry in Openshift 4 ... If the operator pod does not exist, inspect the deployment...
Read more >The HTTPS-Only Standard
An HTTPS-Only standard will eliminate inconsistent, subjective determinations across agencies regarding which content or browsing activity is sensitive in ...
Read more >Use Hypertext Transfer Protocol Secure (HTTPS) on your ...
Hypertext Transfer Protocol (HTTP) is a set of rules browsers use to determine how to read and transfer data over the web. When...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This variable should be used after #1713 is merged.
Agree. Nothing to-do in this issue, just we wont use local docker registry in aks/eks.