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

DRKey: Additional error type in the level 1 key fetching protocol #92

Open
marcfrei opened this issue Apr 27, 2021 · 2 comments
Open

DRKey: Additional error type in the level 1 key fetching protocol #92

marcfrei opened this issue Apr 27, 2021 · 2 comments

Comments

@marcfrei
Copy link
Member

Consider introducing an additional error type in the level 1 key fetching protocol which enables a given AS to report that it will no longer provide level 1 keys to the requesting AS. I.e., introduce some kind of "permanent error" in the protocol so that client ASes can adapt their behavior accordingly.

This issue should mainly serve as a reminder to think again about the possible error scenarios in the DRKey protocol. It's not clear yet, whether the suggestion above is really needed.

@matzf
Copy link

matzf commented Apr 27, 2021

gRPC allows to return different error codes out of the box. The appropriate error code could be PermissionDenied or ResourceExhausted.

@JordiSubira
Copy link

I've just come across this issue right now. At the moment any AS can request Lvl1Keys, one first step might be loading a blacklist from the DRKey configuration. Ideally, this list should be dynamically provided to the DRKey service, although this might need further discussion.

gRPC allows to return different error codes out of the box. The appropriate error code could be PermissionDenied or ResourceExhausted.

Yes, it seems a great idea to leverage those errors.

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

No branches or pull requests

3 participants