Fix OIDC re-authentication failing after ~24 hours #1470
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1469.
Description
OIDC users were unable to re-authenticate after ~24 hours. The only workaround was restarting Parseable.
Root cause: Inverted logic in
remove_expired_session()was keeping expired sessions and removing valid ones.Changes:
src/rbac/map.rs:212This PR has:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
parseable-prism-build.s3.us-east-2.amazonaws.com/home/REDACTED/work/parseable/parseable/target/debug/build/parseable-e7150ceacea65be3/build-script-build /home/REDACTED/work/parseable/parseable/target/debug/build/parseable-e7150ceacea65be3/build-script-build lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libobject-00745b6f63a5acb7.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libmemchr-ff20d9e744b5ce29.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libaddr2line-05ff42d0bb8bc056.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libgimli-9e30a03d9a87a46b.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libcfg_if-ca532f729409e986.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/librustc_demangle-d3519961f658f03a.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libstd_detect-866c9680e50cd51f.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libhashbrown-e3c0c009096f309d.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/librustc_std_workspace_alloc-2fb855ef27dbee02.rlib(dns block)/home/REDACTED/work/parseable/parseable/target/debug/build/parseable-cfb611a16fdc6fb3/build-script-build /home/REDACTED/work/parseable/parseable/target/debug/build/parseable-cfb611a16fdc6fb3/build-script-build(dns block)/home/REDACTED/work/parseable/.codeql-scratch/dbs/rust/working/target/debug/build/parseable-5219d1c764b0c7a3/build-script-build /home/REDACTED/work/parseable/.codeql-scratch/dbs/rust/working/target/debug/build/parseable-5219d1c764b0c7a3/build-script-build get/debug/deps/libchange_detection-f4fef92857f2f5e3.rlib get/debug/deps/libpath_slash-8cb979fc12d43daf.rlib get/debug/deps/libpath_matchers-39bf8d94493f4411.rlib get/debug/deps/libglob-6dbd901f06f5c038.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libstd-a71a575950182156.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libpanic_unwind-150250ca1242312f.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libobject-00745b6f63a5acb7.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libmemchr-ff20d9e744b5ce29.rlib lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libaddr2line-05ff42d0bb8bc056.rlib zstd/lib/legacy --gdwarf-4 --64 -o /home/REDACTED/work/parseable/parseable/target/debug/build/zstd-syas /tmp/ccGOEnYJ.s(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.