Skip to content

Can't setup replication between harbor and an ECS registry #4451

@arthurzenika

Description

@arthurzenika

We're trying to setup a replication between our harbor installation and and ECS registry.

ECS registry comes with a predefined password that you can get through aws cli with aws ecr get-login --no-include-email --region eu-west-1 the user is AWS and the password is pretty long (in this case 1916 characters long), I don't think there is a way to change it since it's generated by AWS.

When using the "test connection" button we get a " Failed to ping endpoint." error message on the web interface. "failed to ping target" from the API.

When we remove the https:// from the URL I think it tries in http and times out (which probably leaked the above password over clear text communication - or not if port 80 is not listening which seems to be the case for AWS ECS - this is probably another issue).

Then when we try to save the endpoint anyway we get " Invalid endpoint name. " in the web interface. We tried to understand what was wrong with the name (but it was a simple string "ECS"). Looking at the API response we see "password max length is 48". https://github.com/vmware/harbor/blob/64cc71ea12acff7d0f5179bcbd0c346a0aa256a6/src/common/models/replication_job.go#L103-L107 seems to be the culprit.

So this in my opinion is a double bug :

  • displayed error is wrong
  • can't replicate with a registry that has a long password

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions