From: Thomas Ellmenreich <t.ellmenreich@proxmox.com>
To: pdm-devel@lists.proxmox.com
Cc: Thomas Ellmenreich <t.ellmenreich@proxmox.com>
Subject: [PATCH datacenter-manager/proxmox 0/4] fix #7747: OpenID: allow non HTTP scheme in redirect URL
Date: Thu, 13 Aug 2026 17:05:47 +0200 [thread overview]
Message-ID: <20260813150551.415237-1-t.ellmenreich@proxmox.com> (raw)
As reported in this bug: [1], PDM's '/access/openid/auth-url' endpoint only
accepts URL's that either have a HTTP or HTTPS scheme. Also as the user
mentions, this is a problem for native app authentication flows that might
want to redirect back to the application after successful authentication.
Since PVE already accepts redirect URLs with any scheme, this series also
extends PDM's validation to allow other schemes.
Implementation
--------------
To avoid duplicated regex strings, part of the original HTTP_URL_REGEX
was refactored out, and then reused for the new URL_REGEX.
Testing
-------
I tested this with a simple curl request to both PDM's and PVE's 'auth-url'
endpoints. Providing a HTTP and non HTTP scheme, to see where the process
fails.
```
curl -o - --data '{"realm":"myrealm","redirect-url":"https://pdm1:8443"}' \
--header 'Content-Type: application/json;charset=UTF-8' \
-k https://pdm1:8443/api2/extjs/access/openid/auth-url | jq
```
[1]: https://bugzilla.proxmox.com/show_bug.cgi?id=7747
proxmox:
Thomas Ellmenreich (3):
api-types: reorganise unit tests
api-types: refactor HTTP_URL_REGEX construction
api-types: add a scheme generic URL regex
pbs-api-types/src/lib.rs | 1 +
proxmox-schema/src/api_types.rs | 128 ++++++++++++++++++++++++--------
2 files changed, 97 insertions(+), 32 deletions(-)
proxmox-datacenter-manager:
Thomas Ellmenreich (1):
fix #7747: openid: allow non HTTP schemes in redirect URL
lib/pdm-api-types/src/lib.rs | 1 +
server/src/api/access/openid.rs | 6 ++----
2 files changed, 3 insertions(+), 4 deletions(-)
Summary over all repositories:
4 files changed, 100 insertions(+), 36 deletions(-)
--
Generated by murpp 0.12.0
next reply other threads:[~2026-08-13 15:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 15:05 Thomas Ellmenreich [this message]
2026-08-13 15:05 ` [PATCH proxmox 1/4] api-types: reorganise unit tests Thomas Ellmenreich
2026-08-13 15:05 ` [PATCH proxmox 2/4] api-types: refactor HTTP_URL_REGEX construction Thomas Ellmenreich
2026-08-13 15:05 ` [PATCH proxmox 3/4] api-types: add a scheme generic URL regex Thomas Ellmenreich
2026-08-13 15:05 ` [PATCH datacenter-manager 4/4] fix #7747: openid: allow non HTTP schemes in redirect URL Thomas Ellmenreich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260813150551.415237-1-t.ellmenreich@proxmox.com \
--to=t.ellmenreich@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox