Repository navigation
[Superseded] feat(signing): lay groundwork for configured external integrations (#9596) - #9610
Closed
vitormattos wants to merge 31 commits into
Closed
vitormattos wants to merge 31 commits into
vitormattos wants to merge 31 commits into
Conversation
Add unit tests for redaction, secret replacement and rollout matrix, plus isolated DB integration fixtures for multiple instances and tombstone retention. Refs: #9596 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 (bc40b5a) | #9610 (112fec8) | +/- |
|---------------------|----------------|-----------------|--------|
+ | Coverage | 77.7% | 77.9% | +0.1% |
| Files | 525 | 532 | +7 |
| Lines | 29495 | 29781 | +286 |
+ | Covered | 22940 | 23222 | +282 |
- | Test Execution Time | 3m13s | 4m35s | +1m22s |Code coverage of files in pull request scope (0.0% → 98.6%, patch 98.6%)
Reported by octocov |
Use documented Nextcloud column comment support, while SQLite discards unsupported metadata. Apply existing PHP-CS-Fixer constructor formatting. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Preserve Nextcloud ICrypto, translate expected cryptographic or corrupt-payload errors into safe domain failures, validate updates before decrypting, and cover real credential boundary cases with named PHPUnit data providers. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Cover rejected inputs, concurrent/stale secrets, encrypted replacement, disable and deletion retention, and pagination beyond 100 synthetic integrations across the Nextcloud DB test suites. Resolve the previously failing PHP-CS-Fixer import. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Mark secret-carrying arguments as SensitiveParameter to protect stack traces and apply the import ordering required by PHP-CS-Fixer. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Remove redundant crypto commentary; require encrypted secret payloads to be JSON objects, preserve object-shaped empty configuration, and validate Unicode display name lengths against the database character limit. Cover each case with focused PHPUnit tests. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Protect the private shape validator with SensitiveParameter, normalize invalid UTF-8 JSON errors without retaining sensitive causes, and verify stack traces under argument-enabled PHP settings. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Reject malformed top-level configuration maps and corrupt persisted JSON; verify redaction in both read and list paths and stale lifecycle revisions. Guarantee parent teardown on fixture cleanup failures, and replace a misleading secret-redaction assertion with the exact public record contract. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…tions Track every created synthetic integration centrally so validation regressions that unexpectedly allow persistence cannot leave test rows behind. Preserve per-test cleanup even when assertions fail. Refs: #9596 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
17 of 25 tasks
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>
…eletion lifecycle Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…catalog duplication Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…credential redaction Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…ion traces Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…eries Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…ions 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>
…nches Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…variants Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…cases Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…options Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This was referenced Nov 22, 2026
Closed
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.
Scope
Implements the persistence and metadata-driven administration service for configured external signing integrations. Tracks #9596 and depends on the declarative provider catalog in #9611 (#9595). This PR remains draft and must not be merged until the actual catalog and administrative OCS contract are integrated and verified.
Implemented
ICrypto.ExternalIntegrationAdministrationservice for create, inspect, list, update, enable, disable and soft-delete operations. No catalog classes were copied from the pending dependency.csc-v1metadata (baseUrland optional secretaccessToken), rejecting unknown fields and secrets in public configuration; HTTPS URL checks exclude credentials, fragments, query strings, local hostnames and literal IP targets.secretFields: [{ key, isConfigured }], without plaintext secret values. Omitted secret changes preserve ciphertext; explicit replacement or clearing uses the existing optimistic revision.Security boundaries
Administrative read model proposed for #9598
The following is an example of service output, not a live OCS endpoint:
{ "id": "c0ffeec0ffeec0ffeec0ffeec0ffeec0", "driverId": "csc-v1", "name": "Corporate CSC", "configuration": { "baseUrl": "https://csc.example.org" }, "enabled": false, "hasSecrets": true, "revision": 2, "secretFields": [{ "key": "accessToken", "isConfigured": true }], "driverAvailable": true }driverAvailablereports adapter availability and does not imply that a remote service is operational.Checks and remaining work
991025d3: PHP-CS-Fixer, OpenAPI, type checking, REUSE, info.xml and stylelint passed. Other workflows may have been superseded by later commits; do not carry their results forward.09535938bacd3ef8884ab1c41072d4ae72ebec27: 21 workflows found, 0 succeeded, 0 failed, 21 still awaiting results at this checkpoint.Test coverage audit — 22 Nov 2026
Scope:
ExternalIntegrationFieldValidator,ExternalIntegrationAdministration, and existing external integration test classes. Signed DCO commits:055f1cd7,4a3f0fa5,765fa1d6,354d1ee9. The code diff from09535938to354d1ee91modifies test files only.ExternalIntegrationSecretsTestalready has extensive data providers for encryption/decryption, invalid authenticated maps, ciphertext preservation and confidential exception traces;ExternalIntegrationAvailabilityTestexercises all eight boolean flag combinations; store tests cover encryption, CAS, pagination, lifecycle and malformed persistence. Avoided duplicating these cases.finallyblock for test-owned DB cleanup, even when a regression causes the intended exception not to occur.CI diagnosis: policy target selector (Playwright)
0bca6f13, the only failing workflow was Playwright E2E (95 passing tests, one failing):footer-policy-hierarchy-ui.spec.tsexceeded 120 s inselectTarget(). The failing screenshot shows theCreate ruledialog without a group selector; the helper used an unguardedArrowDown/Enterfallback that could switch focus to an unrelated control and leavelocator.fill()waiting on a disappeared field. The same test source passed in earlier workflows on this PR (17.8 s and 14.6 s), so this is a harness-interaction issue, not a confirmed CSC persistence regression.bdf1d06dremoves blind keyboard selection, waits for a matching ARIA/floating option, and asserts the selected target with bounded timeouts. It does not alter runtime application behavior.bdf1d06da54d889c8f704d5b0cd362a19f73431bhad 21 workflows registered at the checkpoint; a complete Playwright pass on the new HEAD is still needed before calling the failure resolved. No rerun was used to disguise the original failure.