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

Auth: Revoking cert does not stop user from logging in #952

Closed
vohmar opened this issue Aug 27, 2018 · 5 comments · Fixed by #1578
Closed

Auth: Revoking cert does not stop user from logging in #952

vohmar opened this issue Aug 27, 2018 · 5 comments · Fixed by #1578
Assignees
Labels

Comments

@vohmar
Copy link
Contributor

vohmar commented Aug 27, 2018

If admin revokes user's PKI cert user can still login with this certificate.
Only deleting the certificate stops user from logging in.

@vohmar vohmar added the bug label Aug 27, 2018
@artur-intech
Copy link
Contributor

Might be connected to / may worth doing together with #887

@karlerikounapuu karlerikounapuu self-assigned this Dec 17, 2019
@vohmar
Copy link
Contributor Author

vohmar commented Dec 19, 2019

you can revoke only registrar portal certs - ones that require csr upload and are signed online. Todo

  • up on pressing the revoke button in admin present warning about csr and cert being deleted as a result, so admin could download the csr beforehand if necessary
  • revoke cert in CA
  • delete cert and csr from db

@teadur
Copy link
Contributor

teadur commented Jan 28, 2020

@vohmar i'm not sure deleting certs from db is good idea in the first place but even if we think it is' it should include logging when something is done with these certs, currently i think nothing related to certs is logged.

@vohmar
Copy link
Contributor Author

vohmar commented Feb 5, 2020

@teadur agreed regarding logging and we already do that to log_certificates table. Do you have any proposal on how to solve the situation better? Un-revoking a cert is not common practice in CA world so once cert is revoked it is unusable forever. To restore access we create and sigh new certificate. Instead of deleting revoked cert we could archive it to another table, but then do we need the actual revoked certs in db considering we have all the certs in CA? What should we improve here?

@ratM1n
Copy link

ratM1n commented May 12, 2020

cant upload certrequest:

`Completed 500 Internal Server Error in 108ms (ActiveRecord: 82.9ms)

NoMethodError (undefined method 'split' for nil:NilClass):

app/models/certificate.rb:46:in 'parse_metadata'
app/controllers/admin/certificates_controller.rb:21:in 'create'`

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