Skip to content

Implement IProvideUserSecretBackend compatibility for per-user encryption#697

Open
summersab wants to merge 1 commit into
nextcloud:masterfrom
summersab:IProvideUserSecretBackend
Open

Implement IProvideUserSecretBackend compatibility for per-user encryption#697
summersab wants to merge 1 commit into
nextcloud:masterfrom
summersab:IProvideUserSecretBackend

Conversation

@summersab
Copy link
Copy Markdown

@summersab summersab commented Feb 10, 2023

This PR is intended to implement the functionality from PR #537. The upstream code changed enough that it was easier to close the original PR and submit a new one.

Now that the IProvideUserSecretBackend class has been added to the Nextcloud core with PR nextcloud/server#24837 / nextcloud/server#27929, this PR adds the necessary logic to support per-user SAML provided secrets.

@summersab summersab force-pushed the IProvideUserSecretBackend branch 2 times, most recently from 2835706 to cd0c669 Compare February 10, 2023 20:18
@summersab
Copy link
Copy Markdown
Author

@blizzz, you look like one of the top contributors to this repo. Is the CI check broken?

@blizzz
Copy link
Copy Markdown
Member

blizzz commented May 12, 2023

@blizzz, you look like one of the top contributors to this repo. Is the CI check broken?

Only partly, it should be green up to and including stable25. We're working on getting it back for 26 and master.

@immerda
Copy link
Copy Markdown

immerda commented May 20, 2023

Hey, this is just our yearly reminder that we are still testing this patch in our instance. In fact I just applied this new PR to the newest released nextcloud version and it works perfectly well and is stable enough that we can still decrypt the data from 2.5 years ago when we initially proposed this patch :) We are still eagerly awaiting upstream adoption...

@summersab summersab marked this pull request as draft July 11, 2023 13:54
@summersab summersab force-pushed the IProvideUserSecretBackend branch from cd0c669 to d5e4825 Compare July 11, 2023 14:24
@summersab summersab marked this pull request as ready for review July 11, 2023 14:25
@summersab summersab force-pushed the IProvideUserSecretBackend branch from d5e4825 to 17b1210 Compare August 24, 2023 16:42
@summersab summersab force-pushed the IProvideUserSecretBackend branch 2 times, most recently from becfef3 to f5de408 Compare August 24, 2023 16:52
@summersab summersab force-pushed the IProvideUserSecretBackend branch from f5de408 to 128a9d3 Compare September 3, 2023 18:24
@mglants
Copy link
Copy Markdown

mglants commented Nov 2, 2023

Any news, when it will be supported, readlly want to use saml for server-side encryption

@blizzz blizzz force-pushed the IProvideUserSecretBackend branch from 128a9d3 to 6e1548a Compare November 3, 2023 17:35
Copy link
Copy Markdown
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! Rebased (CI is repaired since) and left a first review.

Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php Outdated
Comment thread lib/UserBackend.php
@blizzz
Copy link
Copy Markdown
Member

blizzz commented May 2, 2025

@summersab @immerda is this still a thing?

@summersab
Copy link
Copy Markdown
Author

I mean... it should have been. I had to shift away from my NC plans, but this is a feature that provides some advanced encryption capabilities. I wish it would have been merged when I was more active with the project to be honest.

@blizzz
Copy link
Copy Markdown
Member

blizzz commented May 6, 2025

Understandably 😓

@CarlSchwan
Copy link
Copy Markdown
Member

btw this is now rebased and cleaned up. @summersab if you still have your test setup for this, it would be great if you could give it a try and confirm that it still works

@CarlSchwan CarlSchwan force-pushed the IProvideUserSecretBackend branch from 0cf1aca to d27578f Compare June 1, 2026 11:45
Comment thread lib/UserBackend.php Outdated
Signed-off-by: summersab <18727110+summersab@users.noreply.github.com>
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan
Copy link
Copy Markdown
Member

Actually this will need nextcloud/server#60898 otherwise there is no real way to make this feature optional. Now the logic is as following:

Feature enabled: returns either a non-empty-string or throws a HintException
Feature disabled: returns null

@CarlSchwan CarlSchwan added this to the 8.2.0 milestone Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants