Goal: Have different X-API-Key headers for the production and staging environments for an OpenAPI resource.
Steps:
Create a new OpenAPI resource
Add values in the Headers
Add a staging environment
Add values in the Headers for the staging environment
Save changes
Observe that values in the Headers for the production environment now match values for the staging environment
I used to be able to have different Header values when switching between production and staging environments for the OpenAPI resource, now the value are overriding each other.
Over half of our apps now work only in one environment...
! was able to get around the issue using configuration variables. You can store different tokens for each environment there, and reference the configuration variable as the token value.
@tomasvemola I was able to reproduce the bug you're showing in the screen recording, but the resource still works as expected in the app despite the incorrect resource set up (you can preview queries to see sanitized headers). Since I'm not seeing the issue persist in apps, I just wanted to double check that you are still seeing this issue persist within apps? Either way, definitely looks like a bug we should fix!
The issue isn't to do with the resulting activity from what I can see. I may be writing this in the wrong thread as this is happening for all REST API resources for me at the moment.
In the resource editing window (either via the query (in apps) or via the resources). There appears to be a rendering issue where fields are not updating correctly and/or are being replicated between environments.
I think screenshots will be more unhelpful as its hard to show... and i cant reproduce as its broken - I currently cant get the two environments to show different values for headers (even if I think they are saving correctly). I'm scared to check too much in case it breaks the resource.
Essentially editing the headers (and a few other things) in the production environment appears to edit them in the staging environment when switching between environments. The opposite is also true (staging -> production).
I appears that it 'SAVES' correctly so it works... but it shows the wrong thing in the UI consistently. I'm tentative about testing further.
I'd like to suggest prioritising this if it hasn't already been fixed. Its kind of a big deal to not be able to see accurate values in resources.
It's not only extremely inconvenient but a massive security issue too to not be able to see what values you have set for different environments reliably.
I don't understand how this issue has been unresolved for three months. Utilizing APIs is one of the most fundamental and essential features for any app.
Everything was working fine until I made some changes last week, and now we need to choose between using Staging or Production. Naturally, we have to go with Production. However, this decision is hindering dozens of people from doing their jobs effectively, as many rely on Staging for testing and other tasks.
How is this not being addressed as a high-impact bug?