feature: Basic auth support with fission router (#2292)

This commit is contained in:
Pradeep Lakshmi Narasimha
2022-02-01 19:40:40 +05:30
committed by GitHub
parent 4b307be939
commit 590eefaa52
18 changed files with 466 additions and 6 deletions
+10
View File
@@ -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"`
}
)