Claus Ibsen created CAMEL-26274:
-----------------------------------

             Summary: camel-docker - the connection and registry credential 
settings should not be taken from message headers by default
                 Key: CAMEL-26274
                 URL: https://issues.apache.org/jira/browse/CAMEL-26274
             Project: Camel
          Issue Type: Improvement
          Components: camel-docker
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Found while adding the catalog body types of docker (CAMEL-24961, PR #28414).

{{DockerClientFactory}} (main 2a465aa4814c, lines 50-79) takes the host, the 
port, the socket, the username, the password and the server address of the 
registry from the {{CamelDocker*}} headers when they are set, before the 
endpoint configuration ({{DockerHelper.getProperty}}). A message can so point 
the client at another Docker daemon, or send the registry username and password 
configured on the endpoint to another registry host.

Proposed: take these connection and credential settings from the endpoint only, 
and from headers only with a new endpoint option (default false), with an entry 
in the upgrade guide. The operation headers can stay as they are.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to