You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users request feature for APIRule to support setting up custom headers in the CR based on the VirtualService Headers section. Users use application configuration where upstream connectivity requires some values to be passed as headers in a request. See discussion in #808 (comment)
Decision
APIRule definition is extended with headers section.
Headers section lets user manipulate headers on request and response level.
Headers section lets user set additional labels that will be present in request or response.
If user-provided key in APIRule is already present in the request/response, value is overridden with user-provided data.
The APIRuleSpec struct is extended with a variable of type HeadersConfig:
typeAPIRuleSpec {
// Headers contains information about header manipulation in APIRuleHeadersHeadersConfig
}
typeHeadersConfigstruct {
// Request defines header manipulation options for all requests passing through an APIRuleRequestHeaderOptions// Response defines header manipulation options for all responses passing through an APIRuleResponseHeaderOptions
}
typeHeaderOptions {
// Set contains key/value pair map containing headers that are set in APIRuleSetmap[string]string
}
Consequences
User is allowed to set up custom headers in requests and responses that go through APIRule and its managed resources.
The text was updated successfully, but these errors were encountered:
Support setting up custom headers in APIRule
Status
Proposed
Context
Users request feature for APIRule to support setting up custom headers in the CR based on the VirtualService Headers section. Users use application configuration where upstream connectivity requires some values to be passed as headers in a request. See discussion in #808 (comment)
Decision
headers
section.APIRule extension
The
APIRuleSpec
struct is extended with a variable of typeHeadersConfig
:Consequences
The text was updated successfully, but these errors were encountered: