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

pki::RequestCertificate: don't persist untrusted CSRs over 1GiB total #10019

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link
Member

@Al2Klimov Al2Klimov commented Mar 8, 2024

Otherwise anonymous peers could fill the disk with CSRs.
Would take a long time and the admin would notice as with Icinga they have a monitoring tool by definition.
But better safe than sorry.

Before

[2024-03-08 10:24:14 +0100] information/JsonRpcConnection: Received certificate request for CN '2024-03-08 10:24:10.881432 +0100 CET m=+3.505743859' which couldn't be verified: self signed certificate (code 18)
[2024-03-08 10:24:14 +0100] information/JsonRpcConnection: Certificate request for CN '2024-03-08 10:24:09.374815 +0100 CET m=+1.999114695' is pending. Waiting for approval.

... until disk says nope.

After

[2024-03-08 10:28:44 +0100] critical/JsonRpcConnection: Temporarily rejecting certificate request for CN '2024-03-08 10:28:42.061735 +0100 CET m=+1.365551804'. Storage quota exceeded!

@Al2Klimov Al2Klimov added the area/distributed Distributed monitoring (master, satellites, clients) label Mar 8, 2024
@cla-bot cla-bot bot added the cla/signed label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant