Skip to content

Commit

Permalink
Check for unique SAN in cert, 2% chance every 12 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Oct 17, 2023
1 parent 1ebf12f commit 35d72ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/shim/src/modules/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async function checkCertValidity(certBuffer, registerOptions, preregisterRespons
valid = false;
}

if (NETWORK === "main" && cert.subjectAltName && Math.random() < 1 / 100) {
if (NETWORK === "main" && cert.subjectAltName && Math.random() < 2 / 100) {
const subdomain = preregisterResponse?.ip?.replace(/\./g, "-");
const targetSAN = subdomain ? `${subdomain}.l1s.saturn.ms` : ".l1s.saturn.ms";

Expand Down

0 comments on commit 35d72ea

Please sign in to comment.