feature: Basic auth support with fission router (#2292)
This commit is contained in:
@@ -16,6 +16,8 @@ limitations under the License.
|
||||
|
||||
package featureconfig
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
FeatureConfigFile = "/etc/config/config.yaml"
|
||||
CanaryFeature = "canary"
|
||||
@@ -31,6 +33,7 @@ type (
|
||||
FeatureConfig struct {
|
||||
// In the future more such feature configs can be added here for each optional feature
|
||||
CanaryConfig CanaryFeatureConfig `json:"canary"`
|
||||
AuthConfig AuthFeatureConfig `json:"auth"`
|
||||
}
|
||||
|
||||
// specific feature config
|
||||
@@ -38,4 +41,11 @@ type (
|
||||
IsEnabled bool `json:"enabled"`
|
||||
PrometheusSvc string `json:"prometheusSvc"`
|
||||
}
|
||||
|
||||
AuthFeatureConfig struct {
|
||||
IsEnabled bool `json:"enabled"`
|
||||
AuthUriPath string `json:"authUriPath"`
|
||||
JWTExpiryTime time.Duration `json:"jwtExpiryTime"`
|
||||
JWTIssuer string `json:"jwtIssuer"`
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user