mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
clean ziti; configurable proxy identities
This commit is contained in:
parent
c63cafbf51
commit
6b47936b29
@ -19,6 +19,7 @@ type EndpointConfig struct {
|
|||||||
|
|
||||||
type ProxyConfig struct {
|
type ProxyConfig struct {
|
||||||
UrlTemplate string
|
UrlTemplate string
|
||||||
|
Identities []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoadConfig(path string) (*Config, error) {
|
func LoadConfig(path string) (*Config, error) {
|
||||||
|
@ -160,7 +160,11 @@ func (self *tunnelHandler) createServicePolicyBind(svcName, svcId, envId string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *tunnelHandler) createServicePolicyDial(svcName, svcId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
|
func (self *tunnelHandler) createServicePolicyDial(svcName, svcId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
|
||||||
identityRoles := []string{"@PyB606.S."} // @proxy
|
var identityRoles []string
|
||||||
|
for _, proxyIdentity := range self.cfg.Proxy.Identities {
|
||||||
|
identityRoles = append(identityRoles, "@"+proxyIdentity)
|
||||||
|
logrus.Infof("added proxy identity role '%v'", proxyIdentity)
|
||||||
|
}
|
||||||
name := fmt.Sprintf("%v-dial", svcName)
|
name := fmt.Sprintf("%v-dial", svcName)
|
||||||
postureCheckRoles := []string{}
|
postureCheckRoles := []string{}
|
||||||
semantic := rest_model.SemanticAllOf
|
semantic := rest_model.SemanticAllOf
|
||||||
|
@ -4,6 +4,8 @@ endpoint:
|
|||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
url_template: "http://{svcName}.zrok.quigley.com:10111/"
|
url_template: "http://{svcName}.zrok.quigley.com:10111/"
|
||||||
|
identities:
|
||||||
|
- "-zbBF8eVb-"
|
||||||
|
|
||||||
store:
|
store:
|
||||||
path: zrok.db
|
path: zrok.db
|
Loading…
Reference in New Issue
Block a user