Open vandman opened 5 months ago
Please use occ security:certificates:import
for that
Hi,
Thanks for your answer, but unfortunately, it does not solve the problem.
If you secure your docker daemon with self signed certificate, it means that app_api will be the client. So the client need a private key to encrypt data. In order to trust this key, you also need to provide the root CA public key.
The private key can not be loaded by occ security:certificates:import
, moreover, how do you select the proper client certificate to start communicating in ssl?
You need to specify the certificate files.
Look at the Docker documentation
regards
Hi,
I am not sure, but it might be wrong because the container has acces to the docker socket.
Try the same thing without the -v /var/run/docker.sock:/var/run/docker.sock
parameter.
There is difference between my setting and the test, my docker server has a private/public key, each of my service that need to comunicate with the daemon has its own private/public key.
The service/container that need to comunicate with docker daemon are not launched with --net host
, I set up specific authorisation to allow trafic from container to the host.
Regards
Pierre
I am not sure, but it might be wrong because the container has acces to the docker socket.
docker-socket-proxy must have access to the "/var/run/docker.sock" , it's goal is to allow accessing docker socket for AppAPI with the network requests.
Hi, By docker-socket-proxy, do you mean this repository https://github.com/Tecnativa/docker-socket-proxy. If yes, that mean that I need to install docker-socket-proxy too to make AppApi work, Am I right?
Hi, By docker-socket-proxy, do you mean this repository https://github.com/Tecnativa/docker-socket-proxy.
Hi!
By docker-socket-proxy
we mean our implementation, which is based on haproxy alpine, configuration is originally like in all-in-one config, with a few security adjustments for remote installs.
If yes, that mean that I need to install docker-socket-proxy too to make AppApi work, Am I right?
As was said above, yes, AppAPI requires the Docker daemon configured to work with it via network requests. Please follow our instructions in docker-socket-proxy to setup https docker socket proxy connection.
If you have any further questions, do not hesitate to ask them here.
Describe why it is important and where it will be useful
Describe your proposed solution
Add options to be able to load certificate from file system. to be clear, you could use the same key as in daemon.json in /etc/docker/ "tlscacert", "tlscert", "tlskey".
Describe alternatives you've considered, if relevant
No response
Additional context
No response