|
|
@@ -24,6 +24,12 @@ const KEYS_FOR_SAML_USE_ONLY_ENV_OPTION = [
|
|
|
'security:passport-saml:ABLCRule',
|
|
|
];
|
|
|
|
|
|
+const KEYS_FOR_GCP_USE_ONLY_ENV_OPTION = [
|
|
|
+ 'gcs:apiKeyJsonPath',
|
|
|
+ 'gcs:bucket',
|
|
|
+ 'gcs:uploadNamespace',
|
|
|
+];
|
|
|
+
|
|
|
class ConfigManager extends S2sMessageHandlable {
|
|
|
|
|
|
constructor(configModel) {
|
|
|
@@ -218,6 +224,11 @@ class ConfigManager extends S2sMessageHandlable {
|
|
|
KEYS_FOR_SAML_USE_ONLY_ENV_OPTION.includes(key)
|
|
|
&& this.defaultSearch('crowi', 'security:passport-saml:useOnlyEnvVarsForSomeOptions')
|
|
|
)
|
|
|
+ // gcp option
|
|
|
+ || (
|
|
|
+ KEYS_FOR_GCP_USE_ONLY_ENV_OPTION.includes(key)
|
|
|
+ && this.searchOnlyFromEnvVarConfigs('crowi', 'gcs:isGcpEnvPrioritizes')
|
|
|
+ )
|
|
|
));
|
|
|
}
|
|
|
|