feat: add preflight-checks endpoint for autofix deploy permission validation#2119
Open
feat: add preflight-checks endpoint for autofix deploy permission validation#2119
Conversation
…idation Adds POST /sites/:siteId/preflight-checks — a generic, extensible endpoint that runs server-side permission and capability checks before autofix deploy. The UI cannot probe AEM Author directly (CORS), so this proxies the check through SpaceCat using the user's IMS token. Initial handler: content-api-access — probes AEM Author Content API with the user's Bearer token and returns granular status (PASSED/FAILED with reason). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
rpapani
reviewed
Apr 6, 2026
rpapani
reviewed
Apr 6, 2026
rpapani
reviewed
Apr 6, 2026
rpapani
reviewed
Apr 6, 2026
rpapani
reviewed
Apr 6, 2026
rpapani
requested changes
Apr 6, 2026
Contributor
rpapani
left a comment
There was a problem hiding this comment.
please check the feedback
…utofix-checks - Resolve merge conflicts with origin/main (ephemeral-run controller additions) - Fix import path for autofix-checks controller in src/index.js - Add code-repo-access handler and tests - Update route to POST /sites/:siteId/autofix-checks Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This PR will trigger a minor release when merged. |
Aligns variable and import names with the autofix-checks file rename. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…vice into permission-checks
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.
Adds POST /sites/:siteId/preflight-checks — a generic, extensible endpoint that runs server-side permission and capability checks before autofix deploy. The UI cannot probe AEM Author directly (CORS), so this proxies the check through SpaceCat using the user's IMS token.
Initial handler: content-api-access — probes AEM Author Content API with the user's Bearer token and returns granular status (PASSED/FAILED with reason).
Please ensure your pull request adheres to the following guidelines:
describe here the problem you're solving.
If the PR is changing the API specification:
yet. Ideally, return a 501 status code with a message explaining the feature is not implemented yet.
If the PR is changing the API implementation or an entity exposed through the API:
If the PR is introducing a new audit type:
Related Issues
Thanks for contributing!