Flagsmith / flagsmith

Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
https://flagsmith.com/
BSD 3-Clause "New" or "Revised" License
4.56k stars 345 forks source link

Add Flagsmith release version to all API response headers #4253

Open rolodato opened 6 days ago

rolodato commented 6 days ago

Is your feature request related to a problem? Please describe.

Today I spent way more time than I'd like to admit troubleshooting a self-hosted customer issue that was caused by not running on the latest Flagsmith version. Having the current Flagsmith version be returned as part of the response headers might have saved me hours of troubleshooting.

Describe the solution you'd like.

Add a response header like X-Flagsmith-Version: 2.123.0 to all responses, no matter the status code or error condition.

Describe alternatives you've considered

Don't really care about the specific header, just want to see the version in there somewhere.

I know we have the /version endpoint as well, but that requires 1) making an explicit request to it, and 2) knowing/remembering that it exists, which customers usually don't. Usually the information we get for troubleshooting is in the form of a failed curl command or similar, which if we're lucky contains the response headers as well.

Additional context

No response