ansible-ThoTeam / nexus3-oss

Ansible role to install and provision sonatype nexus3-oss
GNU General Public License v3.0
284 stars 205 forks source link

Creating password protected Docker Proxy registries #415

Open Thulium-Drake opened 4 months ago

Thulium-Drake commented 4 months ago

Hi there!

We need to integrate container images from an external password protected registry. In the Nexus WebUI I can configure the credentials needed in the section below:

image

However, I was not able to find a means in the scripting the role provides to do this. Is this supported? If so, how? :-)

If not, what should be changed to make it work?

brianveltman commented 4 months ago

Hi @Thulium-Drake

You can set the remote_username and remote_password properties on your docker proxy repo definition. Like this:

nexus_repos_docker_proxy:
  - name: some-docker-proxy
    blob_store: docker-blob
    remote_url: https://some-private-registry.dev/
    remote_username: 'secret-username'
    remote_password: "{{ vault_alfresco_secret_password }}"

Note that currently only Username is supported for authentication type. Windows NTLM is not support at this time.

Thulium-Drake commented 4 months ago

Awesome, thanks! Did I miss that in the docs? :eyes:

brianveltman commented 4 months ago

@Thulium-Drake nope you did not. This is not documented in the README.md Feel free to add this :-) I would suggest to add it after line https://github.com/ansible-ThoTeam/nexus3-oss/blob/ec06f64febabee51bc02907afe06d8a32eda175c/README.md?plain=1#L720