Skip to content

Commit caf2d44

Browse files
authored
feat: the default behavior in platform mesh is to forward the end users token to KCP. The gateway does not need to impersonate the user by default (#119)
On-behalf-of: @SAP <bastian.echterhoelter@sap.com> Signed-off-by: Bastian Echterhölter <bastian.echterhoelter@sap.com>
1 parent 639756b commit caf2d44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package cmd
33
import (
44
pmconfig "github.com/platform-mesh/golang-commons/config"
55
"github.com/platform-mesh/golang-commons/logger"
6-
"github.com/platform-mesh/kubernetes-graphql-gateway/common/config"
76
"github.com/spf13/cobra"
87
"github.com/spf13/viper"
8+
9+
"github.com/platform-mesh/kubernetes-graphql-gateway/common/config"
910
)
1011

1112
var (
@@ -65,7 +66,7 @@ func initConfig() {
6566
v.SetDefault("gateway-port", "8080")
6667

6768
v.SetDefault("gateway-username-claim", "email")
68-
v.SetDefault("gateway-should-impersonate", true)
69+
v.SetDefault("gateway-should-impersonate", false)
6970
// Gateway Handler config
7071
v.SetDefault("gateway-handler-pretty", true)
7172
v.SetDefault("gateway-handler-playground", true)

0 commit comments

Comments
 (0)