22 days ago
Title: Are OAuth callback query parameters stored in Railway logs?
Hello Railway Community,
I am implementing an OAuth 2.0 authorization-code callback for an application hosted on Railway.
Example callback URL:
https://example.up.railway.app/api/oauth/callback
The OAuth provider redirects the user to this endpoint with short-lived parameters in the query string:
code
state
The application does not intentionally log the query string. It validates and consumes the parameters server-side and immediately redirects the user to a clean URL without query parameters.
Could you please clarify Railway’s logging behavior?
-
Does Railway’s edge proxy, HTTP proxy, or platform logging store the full request URL, including the query string?
-
Could the code and state values appear in:
- Deployment logs
- HTTP access logs
- Observability data
- Request traces
- Error reports
- Internal platform or support logs
- Is there a way to disable query-string logging:
- For the entire Railway service
- For a specific callback path
- Through a Railway setting, configuration, or request header
-
If query-string logging cannot be disabled, what approach does Railway recommend for OAuth authorization-code callbacks?
-
Would using a custom domain instead of a default *.up.railway.app domain change the logging behavior?
-
Does Railway automatically redact common sensitive query parameters such as:
code
state
access_token
token
client_secret
-
What is the retention policy for proxy or access logs that may contain query strings, and who can access those logs?
-
Is the query string still recorded when the application immediately responds with:
HTTP 303 See Other
Cache-Control: no-store
Referrer-Policy: no-referrer
I would appreciate a link to official Railway documentation or confirmation of the current platform behavior.
No access token or client secret will be included in the callback URL. Only a short-lived authorization code and a one-time state parameter will be present.
Thank you.
1 Replies
22 days ago
Our edge HTTP logs record a path field per request (e.g. /api/oauth/callback), not the full URL with query string, so the code and state parameters from an OAuth callback do not appear in the HTTP logs visible in the dashboard, CLI, or observability explorer. Deploy logs only capture your application's stdout/stderr, so those values would appear there only if your own code logs them. Network flow logs operate at the IP/port level and do not capture HTTP content. We do not offer per-path or per-service query-string logging toggles, automatic redaction of sensitive query parameters, or any setting to control this, and using a custom domain does not change the logging behavior. HTTP log retention is 7 days on Hobby and 30 days on Pro, and logs are accessible only to workspace members. See Logs for full details.
Status changed to Awaiting User Response Railway • 22 days ago
15 days ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 15 days ago