Werk #17620: agent_aws: Do not crash when invalid credentials are given

Component Checks & agents
Title agent_aws: Do not crash when invalid credentials are given
Date Feb 12, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p28 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

If e.g. a wrong secret access key was provided to the AWS agent, it would result in a crash with the error message

ClientError (An error occurred (SignatureDoesNotMatch) when calling the GetCallerIdentity operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation.)

Errors due to invalid credentials are now directed to the "AWS Exceptions" service instead as with other errors that occur when accessing AWS and require user attention.

To the list of all Werks