Istio-envoy-filter-add-authorization-header #10273
Unanswered
nikhil-kumar25896
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi
Trying to add authorization bearer token for my kubernetes dashboard,seems to be not be not working,
can anyone ,who has worked previously worked on it, suggest me any example or verify it
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: add-auth-header
namespace: istio-system
spec:
workloadSelector:
labels:
istio: infra-ingressgateway
configPatches:
match:
context: GATEWAY
listener:
filterChain:
sni: dashboard.awslab.com
filter:
name: "envoy.filters.network.http_connection_manager"
patch:
operation: INSERT_FIRST
value:
name: "envoy.filters.http.lua"
typed_config:
"@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
inlineCode: |
function envoy_on_request(request_handle)
request_handle:headers():add("authorization", "Bearer ********")
end
Beta Was this translation helpful? Give feedback.
All reactions