Repository navigation
[Superseded] feat(signing): expose administrative OCS CRUD for external integrations (#9596) - #9660
Closed
vitormattos wants to merge 6 commits into
Closed
vitormattos wants to merge 6 commits into
vitormattos wants to merge 6 commits into
Conversation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…ts (#9596) 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>
…Script (#9596) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
… QA (#9596) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
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: #9596 (administrative OCS slice; dependent on #9610 and #9611)
📝 Summary
Adds system-administrator-only OCS v1 endpoints for listing, creating, inspecting, updating, enabling, disabling and deleting configured external signing integrations.
Base:
feat/9596-external-signing-storageatbdf1d06da54d889c8f704d5b0cd362a19f73431b(PR #9610). This stacked PR only adds the HTTP administration boundary, response definitions, generated API types, and tests. It does not alter either base PR branch or duplicate the catalog. It importsExternalSigningDriverCatalogprovided by #9611; merge/test with that dependency before considering readiness.⚙️ API / Back-end changes
/admin/signing/integrations: paginated GET list, POST create, GET detail, PATCH update, POST enable/disable, DELETE.experimental_featuresdisabled 404.secrets; reads returnsecretFields: [{ key, isConfigured }]for detail/mutations; list returns redacted summaries. Omitted secrets preserve ciphertext; explicit null can clear optional secrets.composer openapi:spec+npm run typescript:generate, using the current [Superseded] feat(signing): lay groundwork for configured external integrations (#9596) #9610 base (without copying feat(signing): consolidate CSC driver catalog, encrypted configuration and admin OCS API #9611-generated artifacts).🧪 How to test
php vendor-bin/phpunit/vendor/bin/phpunit -c tests/php/phpunit.xml tests/php/Unit/Controller/ExternalSigningIntegrationsControllerTest.php --no-coveragephp vendor-bin/phpunit/vendor/bin/phpunit -c tests/php/phpunit.xml tests/php/Integration/Controller/ExternalSigningIntegrationsControllerTest.php --no-coverageExternalIntegrationAdministrationTest,ExternalIntegrationStoreTestandphp vendor-bin/phpunit/vendor/bin/phpunit -c tests/php/openapi/phpunit.xml.Validation evidence
git diff --check.migrations:migrateand the isolated SQLite schema was prepared separately).08522653d: Psalm failed with 21 errors and PHPUnit failed across SQLite/MySQL/MariaDB/PostgreSQL becauseExternalSigningDriverCatalogwas absent on the PR base. The remaining DB bootstrap errors were cascading failures; do not rerun them as flakes. Latest64eec754CI was queued/pending at the last inspection.Scope/limits
No CSC signing implementation, no provider-specific endpoints, no UI, no modified base PRs, no merge. The PR intentionally depends on pending #9611: its catalog is not vendored here. Review the combined SHA and DB matrix before merge.
✅ Checklist
Stack integration diagnosis — 22 Nov 2026
Cause of persistent red standalone CI: GitHub evaluates this PR against the #9610 branch, which does not contain the catalog from #9611. Therefore static analysis cannot resolve
ExternalSigningDriverCatalog, and the full PHPUnit matrix fails while loading the tests. This is a real dependency sequencing issue; the PR must remain draft. Do not solve it by copying catalog classes into this PR, suppressing Psalm errors, weakening tests, or rerunning CI.Code issues fixed in this PR: response helper now carries generic, checked
DataResponsestatus/data types,authorizeandsetEnabledhave precise typing, the duplicate@paramwas removed, and OpenAPI/TypeScript artifacts regenerated. In a combined checkout with #9611 present, focused Psalm reports 0 errors on the new controller; the same files pass PHP CS Fixer and focused unit/integration tests.Actual combined validation (no base PR modifications):
087f5e33withgit merge --no-commit --no-ff; resolved five conflicts locally:lib/ResponseDefinitions.phpand four generated API artifacts. Both read models were preserved, and the generated contracts were regenerated with the repository tools. No merge commit or branch-base change was pushed.signerphp/pdf-signerv0.5.0 was verified in the isolated combined vendor tree; no downgrade.Required integration order: merge/reconcile #9611 first, then bring #9610 onto a base containing that catalog (with the necessary authorization/QA), then validate #9660 on the resulting combined SHA. Until the approved branch integration occurs, standalone CI on #9660 cannot pass. No PR has been merged as part of this work.