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

fix(ocm): add data_server_url to ocm storage provider #10440

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Oct 29, 2024

Fixes #10358

Copy link

sonarcloud bot commented Oct 29, 2024

StorageRoot string `yaml:"storage_root" env:"OCM_OCM_STORAGE_PROVIDER_STORAGE_ROOT" desc:"Directory where the ocm storage provider persists its data like tus upload info files." introductionVersion:"5.0"`
Insecure bool `yaml:"insecure" env:"OCM_OCM_STORAGE_PROVIDER_INSECURE" desc:"Disable TLS certificate validation for the OCM connections. Do not set this in production environments." introductionVersion:"5.0"`
StorageRoot string `yaml:"storage_root" env:"OCM_OCM_STORAGE_PROVIDER_STORAGE_ROOT" desc:"Directory where the ocm storage provider persists its data like tus upload info files." introductionVersion:"5.0"`
DataServerURL string `yaml:"data_server_url" env:"OCM_OCM_STORAGE_DATA_SERVER_URL" desc:"URL of the data server, needs to be reachable by the data gateway provided by the frontend service or the user if directly exposed." introductionVersion:"7.0.0"`
Copy link
Contributor

@mmattel mmattel Oct 30, 2024

Choose a reason for hiding this comment

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

This new envvar is very hard to understand what it is good for. Please add a text in the readme to explain in more detail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The text is a copy from https://github.com/owncloud/ocis/blob/master/services/storage-users/pkg/config/config.go#L29 😆 I have a hard time coming up with something better that is brief enough to fit into a comment here. I'll try.

Copy link
Contributor

Choose a reason for hiding this comment

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

I must agree to @rhafer that it's a very precise and understandable description, if you know what:

  • a data gateway is
  • a data server is

But this is oCIS architecture fundamentals that can not be covered in a config option description

Copy link
Contributor

@mmattel mmattel Oct 30, 2024

Choose a reason for hiding this comment

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

I proposed to do a brief explanation in the readme to help admins to understand. A dev most likely will be fine with the envvar description only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I proposed to do a brief explanation in the readme to help admins to understand

I agree that a better description of the architecture is needed here. (I am not even sure I understand it well enough to properly describe it).
But this PR is fixing a release blocker. So I think we should merge it independently of the poor documentation. That issue is broader anyway it affects every storageprovider.

Copy link
Contributor

@wkloucek wkloucek left a comment

Choose a reason for hiding this comment

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

Looks fine from a configuration perspective

@wkloucek wkloucek mentioned this pull request Oct 30, 2024
11 tasks
@rhafer rhafer merged commit 0d88a68 into owncloud:master Oct 30, 2024
4 checks passed
@rhafer rhafer deleted the issue/10358 branch October 30, 2024 15:45
@micbar micbar mentioned this pull request Nov 8, 2024
87 tasks
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.

OCM cannot open shared file
3 participants