-
Notifications
You must be signed in to change notification settings - Fork 4.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use KONG-
prefix for Kong specific headers where applicable.
#324
Comments
I am fine with replacing |
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:
|
Well I think the least worst is |
By default Mostly relying on this note below the text that @ahmadnassri posted:
|
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. |
@thefosk we can:
|
use option 1, also works best for |
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-". |
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. |
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. |
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. |
Yes, and yes. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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)
The text was updated successfully, but these errors were encountered: