Skip to content

v2.47.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 16:27
· 498 commits to main since this release

๐Ÿ”‘ SSO โ€” ๊ทธ๋ฃน์—์„œ ์ œ์™ธ๋œ ์‚ฌ์šฉ์ž์˜ ๊ถŒํ•œ์ด ์ด์ œ ํ™•์‹คํžˆ ํšŒ์ˆ˜๋ฉ๋‹ˆ๋‹ค

โš ๏ธ ์—…๊ทธ๋ ˆ์ด๋“œ ์ „์— ํ™•์ธํ•ด ์ฃผ์„ธ์š”

SSO ๊ณต๊ธ‰์ž์— "๊ทธ๋ฃน โ†’ ์—ญํ•  ๋งคํ•‘"์„ ์“ฐ๋ฉด์„œ "๊ธฐ๋ณธ ์—ญํ• "์„ ๋น„์›Œ ๋‘์…จ๋‹ค๋ฉด, ์—…๊ทธ๋ ˆ์ด๋“œ ์ „์— ๊ธฐ๋ณธ ์—ญํ• ์„ ์ง€์ •ํ•ด ์ฃผ์„ธ์š”. ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด ๋งคํ•‘์— ๊ฑธ๋ฆฌ์ง€ ์•Š๋Š” ์‚ฌ์šฉ์ž๋Š” ๋กœ๊ทธ์ธ์ด ๊ฑฐ๋ถ€๋ฉ๋‹ˆ๋‹ค.

๋ฌด์—‡์ด ๋ฌธ์ œ์˜€๋Š”์ง€๋ถ€ํ„ฐ ๋ง์”€๋“œ๋ฆฝ๋‹ˆ๋‹ค. IdP(Authelia, Authentik, Keycloak ๋“ฑ)์—์„œ ์–ด๋–ค ์‚ฌ์šฉ์ž๋ฅผ ๊ด€๋ฆฌ์ž ๊ทธ๋ฃน์—์„œ ๋นผ๋„, NPG๋Š” ๊ทธ ์‚ฌ์šฉ์ž๊ฐ€ ์˜ˆ์ „์— ๋ฐ›์•˜๋˜ ์—ญํ• ์„ ๊ทธ๋Œ€๋กœ ์œ ์ง€ํ•œ ์ฑ„ ๋กœ๊ทธ์ธ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค. ๊ธฐ๋ณธ ์—ญํ• ์ด ์ง€์ •๋ผ ์žˆ์œผ๋ฉด ๊ทธ์ชฝ์œผ๋กœ ๊ฐ•๋“ฑ๋์ง€๋งŒ, ๋น„์›Œ ๋‘” ๊ฒฝ์šฐ์—๋Š” ๊ถŒํ•œ ํšŒ์ˆ˜๊ฐ€ ์•„๋ฌด ํšจ๊ณผ๊ฐ€ ์—†์—ˆ์Šต๋‹ˆ๋‹ค. ๊ด€๋ฆฌ์ž ๊ทธ๋ฃน์—์„œ ์ œ์™ธ๋œ ์‚ฌ๋žŒ์ด ๊ณ„์† ๊ด€๋ฆฌ์ž๋กœ ๋“ค์–ด์˜ฌ ์ˆ˜ ์žˆ์—ˆ๋‹ค๋Š” ๋œป์ž…๋‹ˆ๋‹ค.

์ด์ œ ์ด๋ ‡๊ฒŒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค.

IdP๊ฐ€ ๋ณด๋‚ธ ๊ทธ๋ฃน ์ •๋ณด ๋™์ž‘
๋งคํ•‘์— ์ผ์น˜ํ•˜๋Š” ๊ทธ๋ฃน ์žˆ์Œ ๋งคํ•‘๋œ ์—ญํ•  ์ ์šฉ
์ผ์น˜ ์—†์Œ + ๊ธฐ๋ณธ ์—ญํ•  ์žˆ์Œ ๊ธฐ๋ณธ ์—ญํ• ๋กœ ๊ฐ•๋“ฑ
์ผ์น˜ ์—†์Œ + ๊ธฐ๋ณธ ์—ญํ•  ์—†์Œ ๋กœ๊ทธ์ธ ๊ฑฐ๋ถ€ (์ƒˆ ๋™์ž‘)
๊ทธ๋ฃน ์ •๋ณด๊ฐ€ ์•„์˜ˆ ์•ˆ ์˜ด ๊ธฐ์กด ์—ญํ•  ์œ ์ง€ (์•„๋ž˜ ์„ค๋ช…)

"๊ทธ๋ฃน ์ •๋ณด๊ฐ€ ์•ˆ ์˜จ ๊ฒƒ"๊ณผ "๊ทธ๋ฃน์—์„œ ๋น ์ง„ ๊ฒƒ"์„ ๊ตฌ๋ถ„ํ•ฉ๋‹ˆ๋‹ค. ์ผ๋ถ€ ๊ณต๊ธ‰์ž(Authelia ๋“ฑ)๋Š” ๊ทธ๋ฃน์„ UserInfo ์—”๋“œํฌ์ธํŠธ๋กœ๋งŒ ๋‚ด๋ ค์ฃผ๋Š”๋ฐ, ๊ทธ ์กฐํšŒ๊ฐ€ ์ผ์‹œ์ ์œผ๋กœ ์‹คํŒจํ–ˆ๋‹ค๊ณ  ํ•ด์„œ ๊ถŒํ•œ์„ ํšŒ์ˆ˜ํ•˜๋ฉด ์ž ๊น์˜ ์žฅ์• ๊ฐ€ ์˜๊ตฌ์ ์ธ ๊ถŒํ•œ ๋ณ€๊ฒฝ์ด ๋ฉ๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๊ทธ๋ฃน ์ •๋ณด๊ฐ€ ์˜ค์ง€ ์•Š์€ ๊ฒฝ์šฐ์—๋Š” ์•„๋ฌด๊ฒƒ๋„ ๋ฐ”๊พธ์ง€ ์•Š๊ณ  ๊ธฐ์กด ์—ญํ• ์„ ์œ ์ง€ํ•œ ๋’ค ๊ฒฝ๊ณ ๋งŒ ๋‚จ๊น๋‹ˆ๋‹ค. ์ฐธ๊ณ ๋กœ ์ง€๊ธˆ๊นŒ์ง€๋Š” ์ด ๊ฒฝ์šฐ์— ๊ธฐ๋ณธ ์—ญํ• ๋กœ ๊ฐ•๋“ฑํ•ด ๋ฒ„๋ ธ๋Š”๋ฐ, ๊ทธ ๋ฌธ์ œ๋„ ํ•จ๊ป˜ ๊ณ ์ณ์กŒ์Šต๋‹ˆ๋‹ค.

๋กœ๊ทธ์ธ์ด ๊ฑฐ๋ถ€๋˜๋ฉด ์ด๋ ‡๊ฒŒ ํ‘ธ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ์„ค์ • โ†’ SSO์—์„œ ํ•ด๋‹น ๊ณต๊ธ‰์ž์˜ ๊ธฐ๋ณธ ์—ญํ• ์„ ์ง€์ •ํ•˜๊ฑฐ๋‚˜(๊ฐ€์žฅ ๊ถŒํ•œ์ด ๋‚ฎ์€ ์—ญํ• ์„ ๊ถŒ์žฅ), IdP ์ชฝ ๊ทธ๋ฃน ๋งคํ•‘์„ ๋ฐ”๋กœ์žก์œผ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ๊ด€๋ฆฌ์ž ๊ณ„์ • ์ž์ฒด๊ฐ€ ๋ง‰ํžŒ ๊ฒฝ์šฐ์—๋„ ๋กœ์ปฌ ๋กœ๊ทธ์ธ์€ ํ•ญ์ƒ ์‚ด์•„ ์žˆ๊ณ , ๊ทธ๋งˆ์ € ์–ด๋ ค์šฐ๋ฉด ๋‹ค์Œ ๋ช…๋ น์œผ๋กœ ๋ณต๊ตฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

docker compose exec api ./server reset-password

SSO๋กœ ์ž๋™ ์ƒ์„ฑ๋œ ๊ณ„์ •์€ ๋กœ์ปฌ ๋น„๋ฐ€๋ฒˆํ˜ธ๊ฐ€ ์—†์œผ๋ฏ€๋กœ, ๊ทธ๋Ÿฐ ๊ณ„์ •๋งŒ ์“ฐ๊ณ  ๊ณ„์‹ ๋‹ค๋ฉด ์—…๊ทธ๋ ˆ์ด๋“œ ์ „ ๊ธฐ๋ณธ ์—ญํ•  ์ง€์ •์„ ํŠนํžˆ ๊ถŒํ•ฉ๋‹ˆ๋‹ค.

๋ณด๋‚ด ์ฃผ์‹  @heygoodluck ๋‹˜ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. (#260)


๐Ÿ” ์˜ˆ์ „์— ์ €์žฅ๋œ ์œ„ํ—˜ํ•œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ๋ฅผ ์ด์ œ ๋Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

๊ตฌ๋ฒ„์ „์—์„œ ์ €์žฅ๋œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ํ˜ธ์ŠคํŠธ ์ค‘์—๋Š” ์ง€๊ธˆ ๊ธฐ์ค€์œผ๋กœ๋Š” ์•ˆ์ „ํ•˜์ง€ ์•Š์€ ๊ฐ’(์˜ˆ: ์ „๋‹ฌ ๊ฒฝ๋กœ์— nginx ๋ณ€์ˆ˜๊ฐ€ ๋“ค์–ด๊ฐ„ ๊ฒฝ์šฐ)์ด ๋‚จ์•„ ์žˆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ํ•ญ๋ชฉ์€ ๋น„ํ™œ์„ฑํ™”์กฐ์ฐจ ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์ €์žฅํ•  ๋•Œ ์ „์ฒด ๊ฐ’์„ ๋‹ค์‹œ ๊ฒ€์‚ฌํ•˜๋Š”๋ฐ, ๊ธฐ์กด ๊ฐ’์ด ๊ฒ€์‚ฌ๋ฅผ ํ†ต๊ณผํ•˜์ง€ ๋ชปํ•ด "๋„๊ธฐ"๊นŒ์ง€ ๋ง‰ํ˜€ ๋ฒ„๋ ธ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ์‚ญ์ œ ๊ถŒํ•œ์ด ์—†๋Š” ์šด์˜์ž๋Š” ์œ„ํ—˜ํ•œ ์„ค์ •์„ ์ฆ‰์‹œ ๋‚ด๋ฆด ๋ฐฉ๋ฒ•์ด ์—†์—ˆ์Šต๋‹ˆ๋‹ค.

์ด์ œ ๋„๋Š” ๊ฒƒ๋งŒ ํ•˜๋Š” ๋ณ€๊ฒฝ์€ ํ—ˆ์šฉ๋ฉ๋‹ˆ๋‹ค. ๊ฐ’์„ ๊ทธ๋Œ€๋กœ ๋‘๊ณ  ๋น„ํ™œ์„ฑํ™”ํ•˜๋ฉด ์ €์žฅ๋˜๊ณ , ํ•ด๋‹น nginx ์„ค์ •์ด ์ œ๊ฑฐ๋ฉ๋‹ˆ๋‹ค. ๊ฐ’์„ ์‹ค์ œ๋กœ ๋ฐ”๊พธ๋ ค ํ•˜๊ฑฐ๋‚˜ ๋น„ํ™œ์„ฑํ™”๋œ ํ•ญ๋ชฉ์„ ๋‹ค์‹œ ์ผœ๋ ค ํ•˜๋ฉด ์˜ˆ์ „์ฒ˜๋Ÿผ ๊ฑฐ๋ถ€๋˜๋ฏ€๋กœ, ์œ„ํ—˜ํ•œ ์„ค์ •์ด ๋˜์‚ด์•„๋‚˜๋Š” ์ผ์€ ์—†์Šต๋‹ˆ๋‹ค.

๊ฑฐ๋ถ€๋  ๋•Œ์˜ ์•ˆ๋‚ด๋„ ์ข‹์•„์กŒ์Šต๋‹ˆ๋‹ค. ์ง€๊ธˆ๊นŒ์ง€๋Š” ๊ฐ’์ด ๊ฑฐ๋ถ€๋˜๋ฉด "๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์˜ค๋ฅ˜"๋กœ ํ‘œ์‹œ๋์ง€๋งŒ, ์ด์ œ ์–ด๋–ค ํ•ญ๋ชฉ์ด ์™œ ๊ฑฐ๋ถ€๋๋Š”์ง€ ์•Œ๋ ค ์ค๋‹ˆ๋‹ค.

๋ณด๋‚ด ์ฃผ์‹  @heygoodluck ๋‹˜ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. (#262)


๐Ÿงน ์œ ์ง€๋ณด์ˆ˜

  • ์•”ํ˜ธํ™” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(golang.org/x/crypto)๋ฅผ 0.55.0์œผ๋กœ ์˜ฌ๋ ธ์Šต๋‹ˆ๋‹ค. (#266)

api ์ด๋ฏธ์ง€๋ฅผ ๋ฐ›์•„ ๋‹ค์‹œ ์˜ฌ๋ ค ์ฃผ์„ธ์š”.

docker compose pull && docker compose up -d

๐Ÿ”‘ SSO โ€” revoking a group now actually revokes the role

โš ๏ธ Please check this before upgrading

If your SSO provider uses group-to-role mappings but has no default role set, set one before upgrading. Otherwise users whose groups match no mapping will be denied sign-in.

Here is what was wrong. When you removed someone from an admin group at your IdP (Authelia, Authentik, Keycloakโ€ฆ), NPG kept the role they had been granted earlier and signed them in anyway. With a default role configured they were demoted to it โ€” but with the field left empty, revoking the group had no effect at all. Someone removed from the admin group could keep signing in as an admin.

The behavior now:

Groups the IdP sent Result
Matches a mapping Mapped role applied
No match + default role set Demoted to the default role
No match + no default role Sign-in denied (new)
No groups sent at all Existing role kept (see below)

"No groups were sent" and "removed from the group" are now told apart. Some providers (Authelia among them) serve groups only from the UserInfo endpoint, and treating a temporary lookup failure as a revocation would turn a brief outage into a permanent privilege change. So when no group claim arrives, nothing changes โ€” the existing role is kept and a warning is logged. Previously this case demoted the user to the default role, which is fixed too.

If a sign-in is denied, set a default role for that provider under Settings โ†’ SSO (a least-privilege role is the right choice), or fix the group mapping at your IdP. Local sign-in always remains available, and if you are fully locked out:

docker compose exec api ./server reset-password

Accounts created automatically by SSO have no local password, so if those are all you use, setting a default role before upgrading is strongly recommended.

Thanks to @heygoodluck for the contribution. (#260)


๐Ÿ” Unsafe legacy redirects can finally be switched off

Redirect hosts saved by older versions may hold values today's validation rejects โ€” an nginx variable in the forward path, for example. Those entries could not even be disabled: saving re-validates the whole record, and the stored value failed, so "turn it off" was refused along with everything else. An operator without delete permission had no way to take a risky entry down.

A change that only disables an entry is now allowed. Leave the values as they are, switch it off, and it saves โ€” the nginx config for it is removed. Actually editing a value, or re-enabling a disabled invalid entry, is still rejected, so nothing unsafe comes back to life.

Rejections read better now, too: a refused value used to surface as "a database error", and now names the field and the reason.

Thanks to @heygoodluck for the contribution. (#262)


๐Ÿงน Housekeeping

  • Bumped golang.org/x/crypto to 0.55.0. (#266)

Pull the api image and restart.

docker compose pull && docker compose up -d

Docker Images

docker pull svrforum/nginxproxyguard-api:2.47.0
docker pull svrforum/nginxproxyguard-ui:2.47.0
docker pull svrforum/nginxproxyguard-nginx:2.47.0

Architectures: linux/amd64, linux/arm64

Component Status
API Built
UI Built
Nginx Skipped (no changes)

Contributors: @heygoodluck, @app/dependabot