Skip to content

Commit

Permalink
RequestCertificateHandler(): renew agent cert on master if satellite …
Browse files Browse the repository at this point in the history
…wants it

ignoring that cert seems up-to-date. This is to process renewals
needed to keep the CA up-to-date despite the leaf is already up-to-date.
  • Loading branch information
Al2Klimov committed Nov 9, 2023
1 parent ef50e5a commit b43f1e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/remote/jsonrpcconnection-pki.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
uptodate = IsCertUptodate(root);
}
}
} else {
// A satellite wants us to renew an agent certificate + CA despite it seems up-to-date.
// So just do it. There may be good reasons for it we don't know, e.g. see the if-then branch above.
uptodate = false;
}
}

Expand Down

0 comments on commit b43f1e7

Please sign in to comment.