Repository navigation
feat: manage external signing providers in LibreSign settings (#9598) - #9665
Draft
vitormattos wants to merge 25 commits into
Draft
vitormattos wants to merge 25 commits into
vitormattos wants to merge 25 commits into
Conversation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This was referenced Nov 23, 2026
Closed
vitormattos
changed the base branch from
feat/9598-frontend-admin-integrations-20261122
to
main
November 23, 2026 00:35
This was referenced Nov 23, 2026
vitormattos
marked this pull request as ready for review
November 23, 2026 22:58
Do not imply that an active-session indicator exists in the current administrative OCS model: it does not. Keep lifecycle validation server-authoritative and report HTTP 409 accurately for both stale revisions and unresolved signing sessions. Add Vue regression coverage for rejected removal without claiming success. No backend API change, no secret disclosure, and no alteration to existing signing workflows. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
The Node test runner does not expose window.confirm by default, so spying on that missing method fails during fixture setup. Install an explicit Vitest global stub and restore it during cleanup, preserving the regression that HTTP 409 never shows removal success. CI reproduction: 1 test failed at line 100; 3,774 other tests passed on the prior head. This commit addresses that exact fixture failure. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add screenshots from the actual external-signing Vue administration UI running on an isolated Nextcloud 36 instance with the current main administrative API. Demonstrate the policy entry point, an empty state, creating and editing a provider, multiple instances, and mobile layout. Only synthetic example names and URLs are shown; the unavailable driver state accurately reflects the absent separate signer backend. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Apply the repository's AGPL-3.0-or-later screenshot copyright annotation to the six real UI captures in PR #9665. Locally confirmed `reuse lint` passes with 2128 of 2128 source files attributed; no changes to screenshots or application code. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
vitormattos
marked this pull request as draft
November 24, 2026 21:13
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Contributor
Code Metrics ReportNote: Metrics describe the revision analyzed by the successful PHPUnit run. Newer commits with pending, canceled or failed checks may not yet be represented in this report.
Details | | main (64db6c0) | #9665 (098932a) | +/- |
|---------------------|----------------|-----------------|-------|
- | Coverage | 78.0% | 78.0% | -0.1% |
| Files | 537 | 538 | +1 |
| Lines | 29953 | 30007 | +54 |
+ | Covered | 23393 | 23426 | +33 |
| Test Execution Time | 5m24s | 5m24s | 0s |Code coverage of files in pull request scope (0.0% → 61.1%, patch 61.1%)
Reported by octocov |
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #9598
📝 Summary
External signing providers now use a native policy card in LibreSign → Policies → How signing works. The existing policy workbench manages account, group and system rules, with the CSC connection manager available from inside the policy configuration.
This adds a single place to manage multiple integrations, configure their provider-specific fields, see whether a provider is operational or administratively enabled, and safely update or remove an instance. Stored secrets are never displayed, and simultaneous changes or signing sessions that prevent an update produce actionable feedback.
This PR covers policy administration and scoped CSC connections for system, groups and accounts. The signer-facing CSC workflow lives in #9659; the combined backend must check the effective
external_signing_enabledpolicy and the provider scope before any external signing operation is allowed. A connection never grants signer consent.🧪 How to test
Validation evidence
🎨 UI / Front-end changes
Live CSC policy-scoped administration — Nextcloud 36 (combined #9659 + #9665 code)
External signing connections are not global by default. Each configured connection belongs to exactly one policy scope — system, group or account — and its credentials are stored as encrypted integration secrets, outside policy values. The system admin may configure a global connection or explicitly delegate the CSC policy to a group or account. For group administrators, editing the delegated rule opens Configure integrations for that group only; other groups' and system-level CSC accounts are never shown in that list.
A new rule must first be saved through the regular policy CRUD. Then the rule can be edited to configure one or more CSC integrations under its scope.
This is an experimental synthetic CSC laboratory. The browser snapshots prove policy-scope configuration and segregation in the isolated test installation, not production CSC authorization or a valid external cryptographic signature. The final signer flow must also pass negative authorization tests on the merged backend.
Names and endpoints in the screenshots are test data, not production integrations. “Driver unavailable” is the expected state in this isolated administration-only setup until the separately developed signing backend is integrated.
🚧 Tasks
✅ Checklist
🤖 AI (if applicable)