openshift / openshift/origin

RBAC Migration Followup #25: Deprecate policy commands in favor of RBAC equivalents

Open
#18,096 37 comments 0 reactions 1 assignee View on GitHub

@simo5 is already working on this.

Since Jan 12, 2018.

area/documentation area/security area/techdebt lifecycle/frozen priority/P2 sig/security
Dominant language
Go
Stars
8.7k
Forks
4.8k
Avg merge
4d 10h
Merged PRs (30d)
53

Description

Add cobra.Command.Deprecated to the following commands:

  1. oc adm policy {add|remove}-{cluster-}role-{to|from}-{user|group} ---> oc {create|edit} {cluster}role{binding}
  2. oc adm policy reconcile-cluster-role-{bindings} ---> oc auth reconcile
  3. oc policy can-i ---> oc auth can-i
  4. oc adm policy remove-{user|group} ---> oc {delete|edit} rolebinding
  5. Update docs https://docs.openshift.org/latest/admin_guide/manage_rbac.html#managing-role-bindings
  6. Update ansible playbooks to use RBAC commands instead

Deprecated should contain a pointer to the RBAC equivalent command. The CLI completions will have to be regenerated since we do not include completions for deprecated commands.

@liggitt @deads2k any others come to mind?

cc @bparees @openshift/sig-security @juanvallejo @fabianofranz

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.