github.com/oam-dev/cluster-gateway@v1.9.0/pkg/config/args_authorization.go (about)

     1  package config
     2  
     3  import (
     4  	"github.com/spf13/pflag"
     5  )
     6  
     7  var AuthorizateProxySubpath bool
     8  
     9  func AddProxyAuthorizationFlags(set *pflag.FlagSet) {
    10  	set.BoolVarP(&AuthorizateProxySubpath, "authorize-proxy-subpath", "", false,
    11  		"perform an additional delegated authorization against the hub cluster for the target proxying path when invoking clustergateway/proxy subresource")
    12  }