~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

`PROVISIONING_CLIENTS` can never name a client id that ends in `/`

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

every list item has a trailing / trimmed, but provisionGroup compares the entry to the client's id exactly. With PROVISIONING_CLIENTS=https://app.example/ and a client whose client_id is https://app.example/ (a URL client ids may be, and oauth_clients::client accepts), the entry is kept as https://app.example and the app is refused UntrustedApp; only * lets it in. tests/config.rs and tests/provision.rs use ids without a trailing slash.

How to see it

Read against docs/fresh at 4636e6d, the code at: crates/group-host/src/config.rs:80-87; crates/group-host/src/provision.rs:76-77. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Trim the trailing / only for the lists that are URLs of services (HANDLE_RESOLVERS, PDS_CRAWLERS), and keep PROVISIONING_CLIENTS entries as written (trimmed of spaces).

Where

The host, as built from 4636e6d. Found while checking the docs against the code.