Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `lua-resty-session` will be documented in this file.

## [4.1.4] - 2025-08-11
### Fixed
- fix(redis-cluster): correctly pass username and password


## [4.1.3] - 2025-07-29
### Fixed
- fix(utils): disable the SP800-132 compliance checks (on FIPS mode, but doesn't violate FIPS)
Expand Down
2 changes: 1 addition & 1 deletion lib/resty/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ end


local session = {
_VERSION = "4.1.3",
_VERSION = "4.1.4",
metatable = metatable,
}

Expand Down
12 changes: 8 additions & 4 deletions lib/resty/session/redis/cluster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ function storage.new(configuration)
local ssl_verify = configuration and configuration.ssl_verify
local server_name = configuration and configuration.server_name


local auth
if password then
if username then
auth = username .. " " .. password
else
if not username then
if password then
auth = password
password = nil
end
end

Expand All @@ -234,6 +234,8 @@ function storage.new(configuration)
max_connection_attempts = max_connection_attempts,
max_connection_timeout = max_connection_timeout,
auth = auth,
username = username,
password = password,
connect_opts = {
ssl = ssl,
ssl_verify = ssl_verify,
Expand Down Expand Up @@ -263,6 +265,8 @@ function storage.new(configuration)
max_connection_attempts = max_connection_attempts,
max_connection_timeout = max_connection_timeout,
auth = auth,
username = username,
password = password,
},
}, metatable)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "lua-resty-session"
version = "4.1.3-1"
version = "4.1.4-1"
source = {
url = "git+https://github.com/bungle/lua-resty-session.git",
tag = "v4.1.3",
tag = "v4.1.4",
}
description = {
summary = "Session Library for OpenResty - Flexible and Secure",
Expand Down