Merge pull request #4601 from wkloucek/remove-default-insecure

change the default value for PROXY_OIDC_INSECURE to false
This commit is contained in:
David Christofas
2022-09-26 11:19:10 +02:00
committed by GitHub
3 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: Change the default value for PROXY_OIDC_INSECURE to false
We've changed the default value for PROXY_OIDC_INSECURE to `false`.
Previously the default values was `true` which is not acceptable since default values need to be secure.
https://github.com/owncloud/ocis/pull/4601

View File

@@ -28,7 +28,12 @@ type InsecureService struct {
}
type InsecureProxyService struct {
InsecureBackends bool `yaml:"insecure_backends"`
OIDC InsecureProxyOIDC `yaml:"oidc"`
InsecureBackends bool `yaml:"insecure_backends"`
}
type InsecureProxyOIDC struct {
Insecure bool `yaml:"insecure"`
}
type LdapSettings struct {
@@ -282,6 +287,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
}
cfg.Proxy = InsecureProxyService{
InsecureBackends: true,
OIDC: InsecureProxyOIDC{
Insecure: true,
},
}
cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true

View File

@@ -33,9 +33,8 @@ func DefaultConfig() *config.Config {
Name: "proxy",
},
OIDC: config.OIDC{
Issuer: "https://localhost:9200",
Insecure: true,
//Insecure: true,
Issuer: "https://localhost:9200",
AccessTokenVerifyMethod: config.AccessTokenVerificationJWT,
UserinfoCache: config.UserinfoCache{
Size: 1024,