Skip to content

[full-ci] Update reva to move validation to the public share provider - #7877

Merged
micbar merged 7 commits into
masterfrom
public-provider-pw
Dec 6, 2023
Merged

micbar merged 7 commits into
masterfrom
public-provider-pw

Conversation

@micbar

@micbar micbar commented Dec 4, 2023 •

Copy link
Copy Markdown
Contributor

Description

This is the ocis part of cs3org/reva#4372

It makes the password policy config global.

-        "FRONTEND_PASSWORD_POLICY_MIN_CHARACTERS": 1,
-        "FRONTEND_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS": 0,
-        "FRONTEND_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS": 0,
-        "FRONTEND_PASSWORD_POLICY_MIN_DIGITS": 0,
-        "FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS": 0,
+        "OCIS_PASSWORD_POLICY_MIN_CHARACTERS": 1,
+        "OCIS_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS": 0,
+        "OCIS_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS": 0,
+        "OCIS_PASSWORD_POLICY_MIN_DIGITS": 0,
+        "OCIS_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS": 0,

Already existing

OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD and OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD

have already been there

Frontend service

        "FRONTEND_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD"
        "FRONTEND_PUBLIC_SHARE_MUST_HAVE_PASSWORD"
        "FRONTEND_PASSWORD_POLICY_MIN_CHARACTERS"
        "FRONTEND_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS"
        "FRONTEND_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS"
        "FRONTEND_PASSWORD_POLICY_MIN_DIGITS"
        "FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS"

Sharing service

        "SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD" (new!)
        "SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD"
        "SHARING_PASSWORD_POLICY_MIN_CHARACTERS"
        "SHARING_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS"
        "SHARING_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS"
        "SHARING_PASSWORD_POLICY_MIN_DIGITS"
        "SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS"

Related Issue

  • Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs

update-docs Bot commented Dec 4, 2023

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@micbar
micbar force-pushed the public-provider-pw branch 10 times, most recently from 17e3582 to 4fd7363 Compare December 6, 2023 08:30
@micbar micbar changed the title move business logic to the provider [full-ci] move business logic to the provider Dec 6, 2023
@micbar
micbar force-pushed the public-provider-pw branch from cb640cf to 9c8ced9 Compare December 6, 2023 08:45
@v-scharf

v-scharf commented Dec 6, 2023 •

Copy link
Copy Markdown
Contributor

CI is failed
Is a password now required for permission 0 (invite people)?

@micbar

micbar commented Dec 6, 2023

Copy link
Copy Markdown
Contributor Author

CI is failed Is a password now required for permission 0 (invite people)?

Fixed it. Let us see now.

@micbar
micbar force-pushed the public-provider-pw branch from 5cf6a60 to 0808917 Compare December 6, 2023 11:14
@micbar
micbar force-pushed the public-provider-pw branch from 0808917 to 3b56a57 Compare December 6, 2023 11:22
@micbar
micbar marked this pull request as ready for review December 6, 2023 11:23
@micbar
micbar requested review from 2403905, fschade, rhafer and v-scharf and removed request for rhafer, v-scharf and wkloucek December 6, 2023 11:23
@sonarqubecloud

sonarqubecloud Bot commented Dec 6, 2023

Copy link
Copy Markdown

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

28.3% 28.3% Coverage
0.0% 0.0% Duplication

@v-scharf v-scharf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM on the testing side

@micbar micbar mentioned this pull request Dec 6, 2023
22 tasks done
@micbar micbar changed the title [full-ci] move business logic to the provider [full-ci] Update reva to move validation to the public share provider Dec 6, 2023
@micbar
micbar merged commit 176ac99 into master Dec 6, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the public-provider-pw branch December 6, 2023 13:22
ownclouders pushed a commit that referenced this pull request Dec 6, 2023
[full-ci] Update reva to move validation to the public share provider
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