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

how does one prevent certs from being shown to certain users? #609

Closed
jeremyguarini opened this issue Dec 16, 2016 · 4 comments
Closed

how does one prevent certs from being shown to certain users? #609

jeremyguarini opened this issue Dec 16, 2016 · 4 comments

Comments

@jeremyguarini
Copy link

Hi,

I have a fresh install with two users. One user has admin and operator roles while the second user has no roles. Now if I create a cert with the first user and assign admin role to it the second user can still see/view it. Is my understanding of roles incorrect? I thought that by assigning roles to certs it would show hide it to the logged in user.

thanks

@kevgliss
Copy link
Contributor

Roles are membership based. For example you have two users: Alice and Bob.

Alice is an admin and has the admin role associated with her account. The admin role has special permissions that allow her to see and do just about anything within Lemur.

Bob is just an operator, by default he can't actually do anything. If we want Bob to be able to issue certificates from a given authority we assign the operator role to that authority. Now Bob can see and use that authority. Now any certificate he creates from that authority he can view the certificate and private key information as the creator of that certificate.

However if a third user Charlie; another operator; tries to view the private key of the certificate Bob just created we will not be allow. He will however be able to view the public key of the certificate Bob created. Public keys are not considered private as they have to be available for PKI to function.

@jeremyguarini
Copy link
Author

So I understand that. Is there a way to not show certs to Charlie when he is not part of any roles assigned to them?

thanks

@kevgliss
Copy link
Contributor

Charlie will not be able to view private key material but will still be able to view all public material. There is no current way to restrict Charlie of view the public parts of a certificate. There is however, #22 which would give you a view where a user would only see the certificates they own specifically.

@jeremyguarini
Copy link
Author

#22 sounds like what I want. I will track that request.

thanks

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

No branches or pull requests

2 participants