Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring storage registry with envvars #7554

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

kobergj
Copy link
Collaborator

@kobergj kobergj commented Oct 20, 2023

Allows configuring the storage registry in the gateway service using envvars

Signed-off-by: jkoberg <jkoberg@owncloud.com>
Copy link
Contributor

@dragotin dragotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Martin <github@diemattels.at>
@sonarcloud
Copy link

sonarcloud bot commented Oct 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kobergj
Copy link
Collaborator Author

kobergj commented Oct 20, 2023

Wondering what the defaults and possible values like driver or rule names could be...

@dragotin once you are familiar with the new envvars, could you improve the description in a follow-up PR?

JSON string `yaml:"json"` // TODO: configure via env?
Driver string `yaml:"driver" env:"GATEWAY_STORAGE_REGISTRY_DRIVER" desc:"The driver name of the storage registry to use."`
Rules []string `yaml:"rules" env:"GATEWAY_STORAGE_REGISTRY_RULES" desc:"The rules for the storage registry."`
JSON string `yaml:"json" env:"GATEWAY_STORAGE_REGISTRY_CONFIG_JSON" desc:"Additional configuration for the storage registry in json format."`
Copy link
Contributor

@mmattel mmattel Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: how does the json get assigned to the variable? Imho a reference to a file would do this.
See: USERS_LDAP_CACERT where we have a default path/file if not otherwise defined: If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/idm. Just my 2c.

@kobergj kobergj merged commit 0aec22c into owncloud:master Oct 20, 2023
2 checks passed
ownclouders pushed a commit that referenced this pull request Oct 20, 2023
Allow configuring storage registry with envvars
@kobergj kobergj deleted the AllowDefiningStorageRegistryByEnv branch October 20, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants