Skip to content

Role system:image-pusher does not allow to push images. #17341

@jtudelag

Description

@jtudelag

The clusterrole system:image-pusher does NOT allow to push images.

Version

oc version
oc v3.6.173.0.49
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://lb.karmalabs.local:8443
openshift v3.6.173.0.49
kubernetes v1.6.1+5115d708d7

In OCP 3.5 does not work neither.

Steps To Reproduce
  1. Give a user the role system:image-pusher
    oc adm policy add-cluster-role-to-user system:image-pusher "USER"

  2. Log into oc with that user
    oc login "USER"..

  3. Get user token
    token=$(oc whoami -t)

  4. Log into the registry with Docker cli
    docker login -u "USER" -p $token

  5. Try to push an image
    docker push...

Current Result

"denied: requested access to the resource is denied"

docker push myregistry.example.com/test-push/test-push:latest
The push refers to a repository [myregistry.example.com/test-push/test-push]
a11fda45870e: Mounted from test-push/test-push
denied: requested access to the resource is denied

Expected Result

The docker push command to ends with no errors ;)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions