diff --git a/cmd/defaults.yaml b/cmd/defaults.yaml index 6841d8c8b..6539457b2 100644 --- a/cmd/defaults.yaml +++ b/cmd/defaults.yaml @@ -307,6 +307,13 @@ SystemDefaults: PublicKeyLifetime: 30h CertificateLifetime: 8766h +Actions: + HTTP: + # wildcard sub domains are currently unsupported + DenyList: + - localhost + - '127.0.0.1' + DefaultInstance: InstanceName: DefaultLanguage: en diff --git a/cmd/start/config.go b/cmd/start/config.go index a3d8e9c86..078e3ce1d 100644 --- a/cmd/start/config.go +++ b/cmd/start/config.go @@ -8,6 +8,7 @@ import ( "github.com/zitadel/logging" "github.com/zitadel/zitadel/internal/api/saml" + "github.com/zitadel/zitadel/internal/actions" admin_es "github.com/zitadel/zitadel/internal/admin/repository/eventsourcing" internal_authz "github.com/zitadel/zitadel/internal/api/authz" "github.com/zitadel/zitadel/internal/api/http/middleware" @@ -58,6 +59,7 @@ type Config struct { SystemAPIUsers map[string]*internal_authz.SystemAPIUser CustomerPortal string Machine *id.Config + Actions *actions.Config } func MustNewConfig(v *viper.Viper) *Config { @@ -70,6 +72,7 @@ func MustNewConfig(v *viper.Viper) *Config { mapstructure.StringToTimeDurationHookFunc(), mapstructure.StringToSliceHookFunc(","), database.DecodeHook, + actions.HTTPConfigDecodeHook, )), ) logging.OnError(err).Fatal("unable to read config") @@ -84,6 +87,7 @@ func MustNewConfig(v *viper.Viper) *Config { logging.OnError(err).Fatal("unable to set meter") id.Configure(config.Machine) + actions.SetHTTPConfig(&config.Actions.HTTP) return config } diff --git a/console/src/app/pages/actions/actions.component.html b/console/src/app/pages/actions/actions.component.html index df9d75796..c0c60c7ab 100644 --- a/console/src/app/pages/actions/actions.component.html +++ b/console/src/app/pages/actions/actions.component.html @@ -21,12 +21,12 @@

{{ 'FLOWS.FLOWSDESCRIPTION' | translate }}

-
+
{{ 'FLOWS.FLOWTYPE' | translate }} - {{ 'FLOWS.TYPES.' + type | translate }} + {{ type.name?.localizedMessage }} @@ -36,8 +36,14 @@
- {{ 'FLOWS.TYPES.' + flow.type | translate }} -
@@ -45,7 +51,11 @@
- {{ 'FLOWS.TRIGGERTYPES.' + trigger.triggerType | translate }} + {{ trigger.triggerType?.name?.localizedMessage }} + +
@@ -72,7 +82,13 @@
-