I have a docker repository in Artifactory which I want to replicate:
However, when I configure replication for the repository using the new user's credentials I get a forbidden 403 error. I can access the repository via the UI, but when I try to use the REST API I also get a forbidden 403 error, so I figured that this was the root of my problem. Using the admin account works (curl -X GET -u admin:pass artifactory-url/artifactory/api/repositories/my-repo
).
The REST API method for setting repository replication configuration requires a user with admin permissions. You can see the required permission in the API documentation.