RunLLM was curious about how i should migrate from a phoneix deployment without auth to a deployment with auth as per the documentation, i can only get a system api key after enabling auth env vars and restarting my deployment however i have production jobs running that are sending traces to these servers the production jobs also need to be updated to use the system api key (we have custom tracer set up so it's a code change, not env var change) is there a recommended way to enable the auth with a new system api key without facing downtime to send traces? Or should i do the migration in a low traffic time ?
Sure thing! I'm looking through the available data to answer your question. Hold on a second... ⏳
I'm wondering if you could attach an auth enabled phoenix to the same DB...
I haven't tried it though so just a word of caution there.
We can also maybe make the secret be usable for the APIs and have a fix that way
no sweat !
I'm wondering if you could attach an auth enabled phoenix to the same DB...
to clarify how would this avoid missing traces?
We can also maybe make the secret be usable for the APIs and have a fix that way
by secret you mean this one?
I'm just thinking out loud here but you could bring up another phoenix on the same postgres, setup auth, and then once you have system keys setup just point to the new phoenix
yeah that one...
yeah i thought of that too but a bit more infra work that way the secret option would be good tbh that way i can set it in my production jobs even before enabling auth on phoenix assuming sending the secret even if auth is not enabled won't stop the traces from coming through
Awesome thank you for the quick response! slight clarification on the current usage of the PHOENIX_SECRET apart from adding it to my env vars for phoenix deployment, currently is there any thing else i need to do with it? I wasnt' sure if that needs to be passes a JWT token when making api calls (likely not right?)
Yupp aligns with my understanding thanks!
