moonming commented on PR #13651: URL: https://github.com/apache/apisix/pull/13651#issuecomment-6967165811
I prepared a follow-up fix on top of this PR's current head (`dfccf896b7c600651ea1dc4101bcee900ce1d24c`): [5cf4527](https://github.com/moonming/apisix/commit/5cf4527143af7a03295e4e0582c67b5b6c9e1978). The patch addresses the points above: - Scope revocation caches by the complete session configuration and cache raw Redis results/errors, so fail-open results cannot override a fail-closed configuration. Identical configuration copies used by different URIs share the same runtime backend, so logout updates the cache used by subsequent requests. - Open the incoming session without refreshing it before logout, ensuring that logout revokes the identifier in the presented cookie. Redis read/write failures in closed mode return 503 without clearing the cookie, allowing a retry. - Keep `lua-resty-session 4.2.0`, as required by the released `lua-resty-openidc 1.9.3` rockspec, and implement caching through the supported custom revocation backend interface. This also resolves the existing cache-count test failure while retaining its expected `3/1/1` result. - Clarify defaults, failed fail-open writes, cache propagation, and the limits for earlier rotated cookies in the English and Chinese documentation. Validation: all 23 `openid-connect*.t` files passed (698 assertions), using real Keycloak 18.0.2, Redis and etcd with session 4.2.0 / OpenIDC 1.9.3. The original code failed the rolling-logout replay regression; the corrected code passed. Removing failure-policy isolation also made the shared-cookie regression fail with the closed route returning 200. The new tests cover actual Redis ACL write denial/recovery, cache expiry, and an in-flight read/write race. Lua checks passed. Independent review caught a missing installation entry for the new module; that is fixed and verified by loading the module from a staged installation. No HIGH/MEDIUM finding remains open. GitHub denied my push to the `geico/apisix` branch, so this PR's head has not changed. Please apply the additive commit to the existing branch: ```sh git fetch https://github.com/moonming/apisix.git fix/pr13651-revocation-20261118 git cherry-pick 5cf4527143af7a03295e4e0582c67b5b6c9e1978 ``` A separate clean full-rockspec rebuild stopped at an unrelated SAML dependency's missing `zlib.h` in the test container. The updated branch will still need its normal CI run before merging. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
