Resolving HTTP 403 Forbidden errors during AEM Cloud Manager deployments

Adobe Experience Manager as a Cloud Service (AEMaaCS) deployments may fail during product tests with HTTP 403 Forbidden responses when recent custom code or configuration changes restrict permissions, authentication, or request handling required for standard authoring operations. To resolve the issue, review recent security and permission changes, correct restrictions affecting product tests, and rerun the Cloud Manager pipeline.

Description description

Environment

Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions

Issue/Symptoms

  • A Cloud Manager deployment completes artifact creation and deployment but fails during the product test phase.
  • Product tests take an extended time to complete and ultimately fail.
  • Logs show multiple test failures with HTTP 403 Forbidden responses during standard authoring operations, such as creating pages or validating configuration.
  • AEM Author and Publish pods remain healthy.
  • The failures are limited to product tests that perform authoring operations.

Root cause

Recent custom code or configuration changes may restrict permissions, authentication, or request handling. These restrictions block standard authoring operations required by the product test suite, resulting in HTTP 403 Forbidden errors.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review recent code and configuration changes:

    • Examine the latest code and configuration deployed in the failing pipeline.
    • Check for custom authentication or authorization logic, security filters, servlet filters, or interceptors that may return HTTP 403 responses.
    • Check for changes to permissions, groups, or access control lists (ACLs) that could affect Author accounts or service users.
    • Review restrictions applied to key content paths, such as /content, /libs, or /conf.
  2. Verify roles and permissions:

    • Ensure that the Author accounts and service users required by the product tests have sufficient permissions to create pages and modify content.
    • Confirm that all required service users and principals are present and correctly configured.
    • Check pod logs for messages indicating missing principals or denied access.
  3. Adjust or revert restrictive changes:

    • If recent changes tightened security or permissions, consider relaxing these changes in the development environment.
    • Explicitly allow the operations required for authoring and configuration endpoints used by the product tests.
  4. Rerun the Cloud Manager pipeline:

    • After making the necessary adjustments, rerun the deployment pipeline.
    • Confirm that the product tests pass and that subsequent functional and UI tests run as expected.
recommendation-more-help
experience-cloud-kcs-help-kbarticles