Questions tagged [rbac]

RBAC is short for Role Based Access Control, an authorization and access control model in which access to restricted resources is granted or denied based on whether the requester's identity is associated with one or more role classifications required by the restricted resource.

Traditionally, security systems have often been structured to specify which individuals are allowed to access each restricted resource. As the number of restricted resources and number of individuals grows, this quickly becomes difficult to administer. When a person leaves the organization or joins the organization, the person must be removed from or added to all the relevant access control lists.

In Role Based Access Control, a level of abstraction in inserted between the restricted resource and the identities permitted to use that resource. A role descriptor is defined, typically aligned with job function (operator, manager, etc). The role descriptor is added to the access control list of the restricted resources. Individual identities are associated with or tagged with the role descriptor. When access to a restricted resource is requested, access can be granted by checking to see if the requesting identity is associated with one or more of the role definitions permitted to access the resource.

In this configuration, the number of role descriptors is relatively small even when there are a large number of users or resources involved, making the overall system easier to manage and administer than direct-reference access control lists.

1107 questions
23
votes
2 answers

Unable to create secrets in Azure Key Vault if using Azure role-based access control

I'm really new to Azure but trying to learn - so apologies if this is a daft question. I've started the free trial (which gives me some credit to start with), and I'm trying to create a key vault. If I specify "Vault access policy" under access…
Andy
  • 399
  • 1
  • 2
  • 10
22
votes
3 answers

MongoDB + Node JS + Role Based Access Control (RBAC)

Am currently learning MEAN stack, developing a simple TODO's app and want to implement Role Based Access Control (RBAC) for that. How do i set up roles & permission on MongoDB. I want 3 roles (roles may look funny but this is purely to learn) :…
BeingSuman
  • 3,015
  • 7
  • 30
  • 48
21
votes
4 answers

ClusterRoleBinding requires namespace

I have the following: apiVersion: v1 kind: ServiceAccount metadata: name: SomeServiceAccount kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: SomeClusterRole rules: - apiGroups: - "myapi.com" …
fardin
  • 1,399
  • 4
  • 16
  • 27
20
votes
3 answers

Create user in Kubernetes for kubectl

I need to create users to assign them permissions with RBAC, I create them as follows: echo -n "lucia" | base64 bHVjaWE= echo -n "pass" | base64 cGFzcw== apiVersion: v1 kind: Secret metadata: name: lucia-secret type: Opaque data: username:…
jbelenus
  • 483
  • 1
  • 7
  • 18
18
votes
1 answer

What is the exact difference between ACL and RBAC in general?

Hello all this may be a silly question but I am really confused about ACL, RBAC, DAC, MAC... with the simple example of online university management system that has following user types: admin hod faculty student each of them have different…
Innam Hunzai
  • 442
  • 1
  • 6
  • 17
18
votes
8 answers

How to get user role in Yii2?

How to get user role in Yii2? I searched and read Yii2 guide but I didn't find any solution.
b24
  • 2,425
  • 6
  • 30
  • 51
17
votes
2 answers

how to retrieve current user granted RBAC with kubectl

One can create Role or ClusterRole and assign it to user via RoleBinding or ClusterRoleBinding. from user view that have a token, how to get all granted permissions or roles\rolebindings applied to him via kubectl?
wtayyeb
  • 1,879
  • 2
  • 18
  • 38
17
votes
1 answer

How to create users/groups restricted to namespace in Kubernetes using RBAC API?

Problem I'd like to issue certs to many different developers (different subjects) all within the dev group, and have them all have access to create and modify things within the dev namespace, but not touch anything outside it, and definitely not see…
Amit Kumar Gupta
  • 17,184
  • 7
  • 46
  • 64
17
votes
6 answers

Role Based Access Control

Are there any java open source role-based access control system?
Alex
  • 187
  • 1
  • 1
  • 3
16
votes
2 answers

get vs. list in Kubernetes RBAC

What is the difference between the get and list RBAC verbs? All I could find in the the documentation is this: "get (for individual resources), list (for collections, including full object content)", which I find severely lacking. Is list a…
g.o.a.t.
  • 420
  • 4
  • 13
16
votes
1 answer

How to find which role or clusterrole binded to a service account in Kubernetes?

Is there a way with kubectl to find out which clusterroles or roles are bound to the service account?
karthikeayan
  • 4,291
  • 7
  • 37
  • 75
16
votes
1 answer

Limit access to Kubernetes secret by RBAC

I have set up Kubernetes secrets. kubectl create secret generic mysecret --from-file=mysecret=/home/ubuntu/secret.txt And this secret can be converted to plaintext using the same kubectl command: kubectl get secret mysecret -o yaml # and base64…
enerudfwqenq
  • 301
  • 2
  • 4
  • 8
15
votes
1 answer

Resource Based Access Control vs Role Based Access Control

I am learning Apache Shiro, and I found this article: The New RBAC: Resource-Based Access Control And the author said: .......you could assign behaviors (permissions) directly to a Role if you want. In this sense, you would still have a…
hguser
  • 35,079
  • 54
  • 159
  • 293
14
votes
2 answers

Mistakenly updated configmap aws-auth with rbac & lost access to the cluster

Was trying to restrict IAM users with the rbac of AWS EKS cluster. Mistakenly updated the configmap "aws-auth" from kube-system namespace. This removed the complete access to the EKS cluster. Missed to add the groups: in the configmap for the…
Sandy
  • 946
  • 11
  • 14
13
votes
3 answers

Kubernetes RBAC rules for PersistentVolume

I'm trying to create RBAC Role / rules for a service that needs a persistent volume and it's still failing with forbidden error. Here is my role config: kind: Role apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name:…
KeepLearning
  • 349
  • 2
  • 3
  • 10
1
2
3
73 74