Open quulah opened 3 years ago
@quulah could you solve your issue?
Nope. :(
We've also transitioned away from Sensu for the monitoring since perhaps two years ago, so I am unable to say whether newer versions change the behavior.
On Thu 23. May 2024 at 18.47, Kenan Erdogan @.***> wrote:
@quulah https://github.com/quulah could you solve your issue?
— Reply to this email directly, view it on GitHub https://github.com/sensu/sensu-go/issues/4472#issuecomment-2127465836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKWJCHHFBZWFUBXEU2XE2DZDYFRHAVCNFSM5HE2HVPKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSG42DMNJYGM3A . You are receiving this because you were mentioned.Message ID: @.***>
We are experiencing the same issue, also could not find a solution after hours of debugging and investigation. We figured though, that the error message "[WARNING] error checking revocation via OCSP" is generated in an external library that is used for the revocation check of the certificate: cfssl package https://github.com/cloudflare/cfssl/
We verified our certificates successfully using openssl against the ocsp URI provided in the issued agent certificates and all is fine. Also the CRL URI from the certificate can be accesse wirhout a problem from the sesnu backend host.
The error logging is unfortunately very poor in this regard in sensu.
New root CA, intermediate, certificates with OCSP information generated. Agents fail to connect.
Expected Behavior
Agents should authenticate successfully.
Current Behavior
Backend logs say:
I find this interesting, because it is differently formatted than the other logs. And I couldn't find this line in Sensu code. Must come from a library further down the pipes.
On the agents:
From the OCSP error, and the actual message missing after
status 400:
I've begin thinking that something horrible happens and the backend fails to respond correctly.I have set up an OCSP responder, tested it with
openssl ocsp
and some online checkers and it should be fine.No requests appear in its logs when Sensu is running and states the above error.
Also,
openssl s_client
seems to be happy with the certs:Possible Solution
It would probably be good to have an option to control OCSP checks.
The error messages could be more descriptive too.
Steps to Reproduce (for bugs)
Create and configure certificates with AIA information for OCSP (and possibly CA issuers).
Context
We've been running Sensu for a while successfully with an internal root CA signed certificates.
I have now recreated our CA, added an intermediate in between and also added OCSP.
I have followed the instructions, so the chain is configured and the leaf certificate is the first one in the bundle.
Your Environment
sensu-go-ansible