{"id":33179199,"url":"https://github.com/chexagon/redis-session-manager","last_synced_at":"2026-01-14T02:37:56.010Z","repository":{"id":32460340,"uuid":"36039997","full_name":"chexagon/redis-session-manager","owner":"chexagon","description":"A tomcat8 session manager providing session replication via persistence to redis","archived":false,"fork":false,"pushed_at":"2023-12-19T14:28:39.000Z","size":128,"stargazers_count":103,"open_issues_count":3,"forks_count":58,"subscribers_count":11,"default_branch":"master","last_synced_at":"2023-12-19T17:49:03.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ladybirdweb/faveo-helpdesk","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chexagon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-05-21T22:16:32.000Z","updated_at":"2023-10-13T22:42:30.000Z","dependencies_parsed_at":"2023-12-19T17:21:23.538Z","dependency_job_id":"eb35fd06-dd13-487b-a532-c3cb8d43ac98","html_url":"https://github.com/chexagon/redis-session-manager","commit_stats":null,"previous_names":[],"tags_count":13,"template":null,"template_full_name":null,"purl":"pkg:github/chexagon/redis-session-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexagon%2Fredis-session-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexagon%2Fredis-session-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexagon%2Fredis-session-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexagon%2Fredis-session-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chexagon","download_url":"https://codeload.github.com/chexagon/redis-session-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexagon%2Fredis-session-manager/sbom","scorecard":{"id":277143,"data":{"date":"2025-08-11","repo":{"name":"github.com/chexagon/redis-session-manager","commit":"26190dbe992d12cdf71e153342f7fde53a62bedf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Info: 'stale review dismissal' is required to merge on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is required - but no codeowners file found in repo","Warn: 'last push approval' is disabled on branch 'master'","Warn: no status checks found to merge onto branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5j33-cvvr-w245","Warn: Project is vulnerable to: GHSA-653p-vg55-5652","Warn: Project is vulnerable to: GHSA-83qj-6fr2-vhqg","Warn: Project is vulnerable to: GHSA-ff77-26x5-69cr","Warn: Project is vulnerable to: GHSA-h2fw-rfh5-95r3","Warn: Project is vulnerable to: GHSA-h3gc-qfqq-6h8f","Warn: Project is vulnerable to: GHSA-wc4r-xq3c-5cf3","Warn: Project is vulnerable to: GHSA-wr62-c79q-cv37","Warn: Project is vulnerable to: GHSA-xcpr-7mr4-h4xq","Warn: Project is vulnerable to: GHSA-25xr-qj8w-c4vf","Warn: Project is vulnerable to: GHSA-3p2h-wqq4-wf4h","Warn: Project is vulnerable to: GHSA-7w75-32cg-r6g2","Warn: Project is vulnerable to: GHSA-wm9w-rjj3-j356","Warn: Project is vulnerable to: GHSA-4j3c-42xv-3f84","Warn: Project is vulnerable to: GHSA-7jqf-v358-p8g7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T14:47:41.899Z","repository_id":32460340,"created_at":"2025-08-17T14:47:41.899Z","updated_at":"2025-08-17T14:47:41.899Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-16T03:00:36.826Z","updated_at":"2026-01-14T02:37:56.001Z","avatar_url":"https://github.com/chexagon.png","language":"Java","funding_links":[],"categories":["分布式开发"],"sub_categories":[],"readme":"# Redis Session Manager for Tomcat 8.5\nTomcat 8.5 / Java 8 session manager to store sessions in Redis.\n\n## Goals\n* Support for Lettuce and Redisson redis clients\n* JDK serialization\n* Session save configuration to allow persistence [after a request|when an attribute changes]\n* Ignore certain requests (e.g. for static resources)\n\n\n## Usage\n* Decide if you're going to use either Lettuce or Redisson as the redis client.\n* After building, copy `rsm-[redisson|lettuce]-with-dependencies-VERSION.jar` to tomcat/lib\n* Note `master` pom defines Tomcat 8.5.x; use branch `tomcat8` for Tomcat 8.0.x\n\n## Common Configuration\n```\n\u003cManager className=\"com.crimsonhexagon.rsm.XXX\"\n\tsessionKeyPrefix=\"_rsm_\"\n\tsaveOnChange=\"false\"\n\tforceSaveAfterRequest=\"false\"\n\tdirtyOnMutation=\"false\"\n\tignorePattern=\".*\\\\.(ico|png|gif|jpg|jpeg|swf|css|js)$\"\n\tmaxSessionAttributeSize=\"-1\"\n\tmaxSessionSize=\"-1\"\n\tallowOversizedSessions=\"false\"\n/\u003e\n```\n\n* _sessionKeyPrefix_: prefix for redis keys. Useful for situations where 1 redis cluster serves multiple application clusters with potentially conflicting session IDs.\n* _saveOnChange_: if _true_, the session will be persisted to redis immediately when any attribute is modified. When _false_, a modified session is persisted to redis when the request is complete.\n* _forceSaveAfterRequest_: if _true_, the session will be persisted to redis when the request completes regardless of whether the session has detected a change to its state.\n* _dirtyOnMutation_: see \"Notes on object mutation\" below.\n* _ignorePattern_: Java Pattern String to be matched against the request URI (_does not include the query string_). If matched, the request will not be processed by the redis session manager.\n* _maxSessionAttributeSize_: if not -1 (RedisSessionManager#DO_NOT_CHECK) specifies a maximum _encoded_ size for a session attribute value. Attributes larger than this size will be logged and will not be stored in the session.\n* _maxSessionSize_: if not -1 (RedisSessionManager#DO_NOT_CHECK) specifies a maximum _encoded_ size for the entire session. Sessions larger than this size will be logged and will not be persisted to redis.\n* _allowOversizedSessions_: if _true_ will allow sessions exceeding the configurations in _maxSessionAttributeSize_ and _maxSessionSize_ to be saved. An error will still be logged for any sessions exceeding the size. This attribute has no effect if neither _maxSessionAttributeSize_ nor _maxSessionSize_ are specified.\n\nNote: A session can be persisted immediately to redis in the web application by setting the RedisSession#SAVE_IMMEDIATELY_ATTR) attribute to any value.\n\n## Lettuce\n* Default configuration: (communicates with redis on localhost:6379)\n```\n\u003cManager className=\"com.crimsonhexagon.rsm.lettuce.LettuceSessionManager\" /\u003e\n```\n\nMultiple nodes can be configured with the `nodes` parameter (this includes AWS Elasticache config):\n```\n\u003cManager \n  className=\"com.crimsonhexagon.rsm.lettuce.LettuceSessionManager\"\n  nodes=\"redis://host1:6379 redis://host2:6379\" \n  [common config]\n/\u003e\n```\nSee https://github.com/lettuce-io/lettuce-core/wiki/Redis-URI-and-connection-details for more information on \nURI format and specifying timeouts, etc.\n\n## Redisson\n* Default configuration: (communicates with redis on localhost:6379)\n```\n\u003cManager className=\"com.crimsonhexagon.rsm.redisson.SingleServerSessionManager\" /\u003e\n```\n* Full configuration (showing default values):\n```\n\u003cManager className=\"com.crimsonhexagon.rsm.redisson.SingleServerSessionManager\"\n\tendpoint=\"redis://localhost:6379\"\n\tconnectionPoolSize=\"100\"\n\tdatabase=\"0\"\n\tpassword=\"\u003cnull\u003e\"\n\ttimeout=\"60000\"\n\tpingTimeout=\"1000\"\n\tretryAttempts=\"20\"\n\tretryInterval=\"1000\"\n\t[common config]\n/\u003e\n```\n* _endpoint_: hostname:port of the redis server. Must be a primary endpoint (read/write) and not a read replicate (read-only).\n\n### Redisson AWS ElastiCache usage\nVersion 2.0.0 added additional support for ElastiCache Replication Groups. Applicable configuration:\n```\n\u003cManager className=\"com.crimsonhexagon.rsm.redisson.ElasticacheSessionManager\"\n\tnodes=\"redis://node1.cache.amazonaws.com:6379 redis://node2.cache.amazonaws.com:6379 ...\"\n\tnodePollInterval=\"1000\"\n\t[other redisson/common config]\n/\u003e\n```\n_nodes_ is a space-separated list of all nodes in the replication group. There is no default value; failure to specify this will result in a failure to start.\n_nodePollInterval_ is the interval for polling each node in the group to determine if it is the master or a slave.\n\n\t\n## Notes on object mutation\n* TL;DR: avoid mutation of objects pulled from the session. If you must do this, read on.\n* Changes made directly to an object in the session without mutating the session will not be persisted to redis. E.g. `session.getAttribute(\"anObject\").setFoo(\"bar\")` will not result in the session being marked dirty. _forceSaveAfterRequest_ can be used as a workaround, but this is inefficient. A dirty workaround would be to mark the session as dirty by `session.removeAttribute(\"nonExistentKey\")` \n* It is possible for an object to be mutated and `session.setAttribute(\"anObject\")` invoked without the session being marked as dirty due to the session object and mutated object being references to the same actual object. _dirtyOnMutation_ will mark the session as dirty whenever `setAttribute()` is invoked. This is generally safe but is disabled by default to avoid unnecessary persists.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchexagon%2Fredis-session-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchexagon%2Fredis-session-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchexagon%2Fredis-session-manager/lists"}