Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Similar to #2054113, when acquia_agent_check_subscription() calls acquia_agent_get_subscription() which calls acquia_agent_valid_response() and fails validation it will mean that the variable acquia_subscription_data will lose any stored subscription data.
Acquia Agent should leave stored data in place, perhaps just updating a property within.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2217311-acquia-agent-hmac-invalid.patch | 1.04 KB | coltrane |
Comments
Comment #1
coltraneAttached patch returns the current stored subscription data if the server responded with an HMAC validation error. The theory being that in the event of an invalid response the data should not be trusted to be used by modules invoking 'acquia_subscription_status'. In practice I think most validation errors are temporary glitches so it's fine to skip doing anything during this subscription check.
Comment #2
arnested CreditAttribution: arnested commentedThe patch looks very promising.
From studying the code I'll say this is fine!
I'll look deeper into it and test it out tomorrow and then probably RTBC on monday.
Comment #3
arnested CreditAttribution: arnested commentedComment #5
coltraneFixed. Thanks for review @arnested.