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.
What happened
every list item has a trailing
/trimmed, butprovisionGroupcompares the entry to the client's id exactly. WithPROVISIONING_CLIENTS=https://app.example/and a client whoseclient_idishttps://app.example/(a URL client ids may be, andoauth_clients::clientaccepts), the entry is kept ashttps://app.exampleand the app is refusedUntrustedApp; only*lets it in. tests/config.rs and tests/provision.rs use ids without a trailing slash.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/group-host/src/config.rs:80-87; crates/group-host/src/provision.rs:76-77. Paths are undercrates/group-host/srcunless 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 keepPROVISIONING_CLIENTSentries as written (trimmed of spaces).Where
The host, as built from 4636e6d. Found while checking the docs against the code.