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

K8SPSMDB-1124: User roles #376

Open
wants to merge 1 commit into
base: K8SPSMDB-1153-psmdb-1180
Choose a base branch
from

Conversation

inelpandzic
Copy link

Add spec.roles.

@@ -499,6 +499,40 @@ sharding:
# - name: dbOwner
# db: sometest

# roles:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, add the corresponding crd under psmdb-operator/crds

| `roles.authenticationRestrictions.clientSource` | Array of IP addresses or CIDR blocks from which users assigned this role can connect.MongoDB servers reject connection requests from users with this role if the requests come from a client that is not present in this array. | `""` |
| `roles.authenticationRestrictions.serverAddress` | Array of IP addresses or CIDR blocks to which users assigned this role can connect.MongoDB servers reject connection requests from users with this role if the client requests to connect to a server that is not present in this array. | `""` |
| `roles.privileges.actions` | Name of the role. Valid values are built-in roles. | `[]` |
| `spec.roles.privileges.resource.db` | Database for which the privilege `spec.security.roles.privileges.actions` apply. An empty string ("") indicates that the privilege actions apply to all databases. | `""` |
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the "spec." prefix in the parameters and descriptions.

Also, just a tip to format the table, try turning word wrap off in your code editor(if you are not doing it yet). The lines are huge, but I hope this will make the table more readable to edit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants