use KONG-
prefix for Kong specific headers where applicable.
#7197
Replies: 12 comments
-
I am fine with replacing |
Beta Was this translation helpful? Give feedback.
-
that's what I was referencing in using a more generic name (so we can later even introduce as standard to the rest of the API community) options that come to mind:
|
Beta Was this translation helpful? Give feedback.
-
Well I think the least worst is |
Beta Was this translation helpful? Give feedback.
-
By default Mostly relying on this note below the text that @ahmadnassri posted:
|
Beta Was this translation helpful? Give feedback.
-
Just want to point out that this change would be a breaking change and our users will need to update their implementations - not sure it's worth it. |
Beta Was this translation helpful? Give feedback.
-
@thefosk we can:
|
Beta Was this translation helpful? Give feedback.
-
use option 1, also works best for |
Beta Was this translation helpful? Give feedback.
-
I have been thinking about making this configurable in the datastore, so all nodes can be aware of it (instead of the configuration file), and this could be configurable on a per-API basis. Maybe as an attribute of the "Services" entity, which would default to "Kong-". |
Beta Was this translation helpful? Give feedback.
-
I would actually disagree on making this configurable per API, seems like a core functionality of the system and especially concerning SDKs and integrations. e.g. an SDK library dealing with requests from Kong now has to be aware of each API/route prefix for headers... therefore I think it should remain a global setting. |
Beta Was this translation helpful? Give feedback.
-
This is a non-sequitur. If the SDK is developed by the same company, then said company can just have the same prefix for all of its APIs. If the SDK is developed by a third party, then the same problem arises since we are making it configurable anyways. |
Beta Was this translation helpful? Give feedback.
-
shouldn't the entire config be stored in the database? (only db access info and credentials locally provided)
I don't think you should punish a power-user for the stupidity of some fool. Even if you don't provide this flexibility, the fool will find another way to mess up his config. |
Beta Was this translation helpful? Give feedback.
-
Yes, and yes. |
Beta Was this translation helpful? Give feedback.
-
X-
prefixes have been deprecated since RFC 6648 along with a set of reccomendations for creating new parameters:since Kong specific headers prefixed with
X-
depict new and common patterns of API Management usage, we can start withKong-
prefix, or evenAPI-
prefix to give it more meaning.as we make our way into standardizing these headers as common practice, we can suggest them as an RFC to IETF in the future.
Proxy specific headers should remain intact, or apply existing standards where applicable (such as in #270)
Beta Was this translation helpful? Give feedback.
All reactions