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

Rotate/revoke issuer.jwk throws error when origin auto-registers at registry #383

Closed
haoming29 opened this issue Nov 16, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@haoming29
Copy link
Contributor

haoming29 commented Nov 16, 2023

Steps to reproduce:

  • If you have issuer.jwk under /etc/pelican, and have an origin prefix registered at registry, say /origin1
  • rm issuer.jwk
  • Run director, registry, and origin
  • You would expect the following message:
Error: Namespace /origin1 already registered under a different key

I'm not sure what's the fix for this, which can initiate to some security policy discussions. @bbockelm What's your thoughts on this?

@haoming29 haoming29 added the bug Something isn't working label Nov 16, 2023
@haoming29 haoming29 changed the title Rotate/revoke issuer.jwk throws error when origin auto-register at registry Rotate/revoke issuer.jwk throws error when origin auto-registers at registry Nov 16, 2023
@bbockelm
Copy link
Collaborator

That's the expected / desired behavior: if you try to register with a different key, it should be an error (otherwise someone could pretty trivially steal your namespace).

Separately, I would like to have a mechanism to rotate (add / delete) keys that are registered -- for example, if there are multiple origins under a single part of the namespace -- but you still need to have access to the old key to rotate.

@haoming29
Copy link
Contributor Author

Closed with #561 opened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants