Bug 1362489
Summary: | Make imagestream tag immutable.(https://github.com/openshift/origin/pull/8497) | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Miheer Salunke <misalunk> |
Component: | Image Registry | Assignee: | David Eads <deads> |
Status: | CLOSED ERRATA | QA Contact: | weiwei jiang <wjiang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.2.0 | CC: | aos-bugs, ccoleman, deads, jokerman, mmccomas, tdawson, wsun |
Target Milestone: | --- | Keywords: | NeedsTestCase |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-27 09:42:14 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Miheer Salunke
2016-08-02 11:03:45 UTC
https://github.com/openshift/origin/pull/8497 merged. This should now be possible by removing update,patch,delete imagestreams,imagestreamtags . You can then tag by creating imagestreamtags. You may have to shutdown imagestreamimports too. (In reply to David Eads from comment #5) > https://github.com/openshift/origin/pull/8497 merged. This should now be > possible by removing update,patch,delete imagestreams,imagestreamtags . You > can then tag by creating imagestreamtags. You may have to shutdown > imagestreamimports too. When I try to update an imagestreamtag, always met # oc edit istag hello-openshift:latestt A copy of your changes has been stored to "/tmp/oc-edit-hd29v.yaml" error: unable to find api field in struct RawExtension for the json field "ContainerConfig" (In reply to David Eads from comment #5) > https://github.com/openshift/origin/pull/8497 merged. This should now be > possible by removing update,patch,delete imagestreams,imagestreamtags . You > can then tag by creating imagestreamtags. You may have to shutdown > imagestreamimports too. Checked with # openshift version openshift v3.3.0.17 kubernetes v1.3.0+507d3a7 etcd 2.3.0+git And when I try to update an imagestreamtag, always met # oc edit istag hello-openshift:latestt A copy of your changes has been stored to "/tmp/oc-edit-hd29v.yaml" error: unable to find api field in struct RawExtension for the json field "ContainerConfig" This change allows someone to create a role that prohibits a user from updating an istag or updating an imagestream. That doesn't happen out of the box. As a cluster-admin, you can `oc edit clusterrole/edit`. You can then remove the normal, "imagestreams" and "imagestreamtags" permissions and create a new policy rule that allows get, list, watch, create, delete, deletecollection on those resources. After you do that, you can add an editor to a project and that user shouldn't be able to `oc tag` an istag that already exists. Checked with devenv-rhel7_4805, and now we can control if a user can do specific operation on the imagestreams and imagestreamtags. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1933 |