When deploying Phoenix with Railway, Railway defines a PHOENIX_SECRET. Does Phoenix itself use that, or is it something Railway uses? I removed PHOENIX_SECRET from my env, and traces are still sent even with auth enabled. I do have the api key sent. So is the api key all that is needed?
The PHOENIX_SECRET is used by Phoenix to sign JWTs for authentication purposes. It is not something that Railway uses directly. When authentication is enabled in Phoenix, the PHOENIX_SECRET is necessary for generating and validating tokens. However, if you have set up an API key and are using it correctly, traces can still be sent without issues, as the API key is used for authenticating API requests.If you have removed PHOENIX_SECRET and traces are still being sent, it indicates that the API key is sufficient for your current setup. The API key is used in the Authorization header as a bearer token, which is essential for authenticating requests to Phoenix's APIs. For more details, you can refer to the Phoenix authentication setup guide.Would you like more detail on how PHOENIX_SECRET and API keys work together in Phoenix? Sources:
- Phoenix authentication setup guide
💡 Hint: Mention RunLLM in the thread for followups.
got it - thanks!
so not needed by the client or traced app then
No, it's not - those will require a system or user key for auditing and permisssion purposes.
