Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHDEVDOCS-3817 - Added cluster permission management #47457

Merged
merged 1 commit into from Jul 15, 2022

Conversation

DebarghoGhosh
Copy link
Contributor

@DebarghoGhosh DebarghoGhosh commented Jul 6, 2022

Aligned team: Dev Tools
OCP version for cherry-picking: enterprise-4.10, 4.11

JIRA issue:
https://issues.redhat.com/browse/RHDEVDOCS-3817

Preview pages: https://drive.google.com/file/d/1y7gDNX7r5kIFn4ld0NcWtgDUCO70IhxJ/view?usp=sharing

SME+QE review: @jannfis @bluengo
Peer-review: @gabriel-rh @rolfedh

@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 6, 2022
@bluengo
Copy link

bluengo commented Jul 6, 2022

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Jul 6, 2022

@bluengo: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have some comments.

Copy link

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some more comments.

@jannfis
Copy link

jannfis commented Jul 12, 2022

/lgtm

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Jul 12, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jul 12, 2022

New changes are detected. LGTM label has been removed.

Copy link
Contributor

@gabriel-rh gabriel-rh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions, but looks good overall.

modules/gitops-inbuilt-permissions-for-cluster-config.adoc Outdated Show resolved Hide resolved
modules/gitops-inbuilt-permissions-for-cluster-config.adoc Outdated Show resolved Hide resolved
modules/gitops-inbuilt-permissions-for-cluster-config.adoc Outdated Show resolved Hide resolved
modules/gitops-inbuilt-permissions-for-cluster-config.adoc Outdated Show resolved Hide resolved
Copy link
Contributor

@gabriel-rh gabriel-rh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few additional comments from Rolfe's review.

Today I learned: if using object language, use backticks and add the word "object" or "resource".

Natural language equivalent: To add permissions, you create a cluster role with the additional permissions, and then create a cluster role binding to associate that role with a service account.

Object language equivalent: To add permissions, you create a ClusterRole object with the additional permissions, and then create a new ClusterRoleBinding object to associate the ClusterRole object with a ServiceAccount object.

@DebarghoGhosh
Copy link
Contributor Author

I have followed the OpenShift Peer Review Checklist > (for writers)

@JStickler JStickler added dev-tools Label for all Odo/Pipelines/Helm/Developer Console/Perspective PRs branch/enterprise-4.10 branch/enterprise-4.11 labels Jul 15, 2022
made review changes

made review changes

made review changes

made review changes

made review changes

made review changes

made review changes
@JStickler JStickler merged commit de348e3 into openshift:main Jul 15, 2022
@JStickler
Copy link
Contributor

/cherry-pick enterprise-4.10

@JStickler
Copy link
Contributor

/cherry-pick enterprise-4.11

@openshift-cherrypick-robot

@JStickler: new pull request created: #47853

In response to this:

/cherry-pick enterprise-4.10

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-cherrypick-robot

@JStickler: new pull request created: #47855

In response to this:

/cherry-pick enterprise-4.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

.Procedure

. Log in to the {product-title} web console as an admin.
. In the wev console, select **User Management** -> **Roles** -> **Create Role**. Use the following `ClusterRole` YAML template to add rules to specify the additional permissions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the web console,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rolfedh Why are you leaving new review comments on a PR that was merged almost eight weeks ago?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JStickler As part of my review to be granted merge rights, I received some feedback on PRs that I created or reviewed recently. Some of these are issues I missed, others are guidelines I wasn't aware of. I'm passing along some of those items to folks whose PRs I reviewed. I also messaged the PR owners directly in Slack to let them know that this is what I was doing.

resources: ["secrets"]
verbs: ["*"]
----
. Click **Create** to add the cluster role.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use a single asterisk to apply bold formatting.


[NOTE]
====
Argo CD does not have cluster-admin permissions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cluster-admin

|Resource Groups | Configure the user or administrator
|`operators.coreos.com` | Optional Operators managed by OLM
|`user.openshift.io` , `rbac.authorization.k8s.io` | Groups, Users and their permissions
|`config.openshift.io` | Control plane Operators managed by CVO used to configure cluster-wide build configuration, registry configuration and scheduler policies
Copy link
Contributor

@rolfedh rolfedh Sep 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Configure the user or administrator.
  • Groups, Users, and their permissions.
  • by Cluster Version Operator (CVO)...build configuration, registry configuration, and scheduler policies.
    Please spell out the first instance of an initialism, add serial commas, and add end punctuation.

====

Permissions for the Argo CD instance:
|===
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch/enterprise-4.10 branch/enterprise-4.11 dev-tools Label for all Odo/Pipelines/Helm/Developer Console/Perspective PRs size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants