Wallet Gateway login on a no-auth validator: prefilled Client ID `wallet-user` does not exist, and the error is cryptic
Problem
On a Splice 0.10.5 Docker Compose validator deployed with -g and without -a (no authentication), the Wallet Gateway login form for the "Splice validator" network shows:
- Client ID:
wallet-user(prefilled) - Client Secret: empty
A new user has no way to know what to enter. If they keep the prefilled wallet-user and enter unsafe as the secret, sign-in appears to succeed, then the Parties page shows:
Unexpected Error: Client version missing from response
Gateway log:
Error: Client version missing from response
at LedgerClient.parseSupportedVersions (core-ledger-client/dist/index.js)
WARN Error in getWithRetry for path /v2/parties/participant-id
ERROR Wallet sync failed.
Participant log (the actual cause):
PERMISSION_DENIED: Could not resolve is_deactivated status for user 'wallet-user'
and identity_provider_id 'Default' due to 'UserNotFound(wallet-user)'
Root cause
- The compose overlay
compose-wallet-gateway-disable-auth.yamlhard-codes"clientId": "wallet-user"for the self-signed network. No validator creates that ledger user. The only user a fresh validator has isledger-api-user, the participant admin user, which also backs theadminAuthentry of the same config. - The self-signed token's
subis the Client ID, and the participant rejects it withUserNotFound, soGET /v2/versionreturns an error body. LedgerClient.init()readsdata?.versionwithout checking the response status. It throwsClient version missing from response, which hides the 403 and the real reason.- The login form doesn't explain what to enter. The correct instruction exists only in the Docker Compose docs ("enter your username as the Client ID, replacing the prefilled one, and
unsafeas the Client Secret").
Manual workaround: either log in with ledger-api-user / unsafe, or create the wallet-user ledger user on the participant (POST /v2/users) and restart the gateway.
Proposed solution
- Prefill a Client ID that exists. In the no-auth overlay, set the self-signed network
clientIdtoledger-api-user, which exists on every validator, instead ofwallet-user. Alternatively, have the gateway or overlay create thewallet-userledger user at startup using the existingadminAuth. - Explain the form. For
self_signednetworks,login-form.tsalready supports ahelpobject withinfoanddocsUrl. Use it to say: "No authentication is configured. Enter the ID of an existing ledger user as Client ID (for exampleledger-api-user) andunsafeas the Client Secret. Local testing only." Link to the Docker Compose docs section "Wallet Gateway and Splice Portfolio" (https://docs.canton.network/global-synchronizer/deployment/validator-docker-compose). - Surface the real error. In
LedgerClient.init()(core-ledger-client), check the response status ofGET /v2/version. On 401/403 or an error body, report that, for example "Ledger API rejected the token: user 'X' not found", instead of "Client version missing from response".
Acceptance criteria
- On a fresh
start.sh ... -gdeployment without-a, logging in with the prefilled values andunsafeloads the Parties page without errors. - The login form shows guidance and a docs link for self-signed networks.
- A rejected token produces an error message that names the status code and the cause.
Environment
- Splice 0.10.5 Docker Compose validator, DevNet, no authentication,
start.sh -g - wallet-gateway v1.13.0, splice-portfolio v1.14.0, participant Canton 3.7.6