Skip to content

chore: Dev to Main - #717

Merged
Prajwal-Microsoft merged 13 commits into
mainfrom
dev
Oct 5, 2026
Merged

Prajwal-Microsoft merged 13 commits into
mainfrom
dev

Conversation

@Vamshi-Microsoft

Copy link
Copy Markdown
Contributor

Purpose

This pull request introduces a fully automated script for configuring Microsoft Entra ID (Easy Auth) authentication for the deployed API and Web container apps. The documentation has been updated to recommend this script as the primary method for authentication setup, replacing the manual portal steps. The script ensures secure post-deployment configuration, minimizes manual error, and improves reproducibility. It is designed to be idempotent and supports both new and existing app registrations.

The most important changes are:

Authentication Automation

  • Added infra/scripts/configure_app_authentication.ps1, a comprehensive PowerShell script that automates all steps required to configure authentication for API and Web container apps, including app registrations, scope exposure, permission grants, Easy Auth setup, and environment variable updates. The script is idempotent and can reuse existing registrations if client IDs are provided.

Documentation Updates

  • Updated docs/ConfigureAppAuthentication.md to recommend and document the new automated script, including usage instructions, options for reusing app registrations, and notes on required permissions and admin consent. The manual portal steps are now fallback guidance.
  • Updated docs/DeploymentGuide.md to clarify the deployment flow: the schema registration script should be run before authentication is configured, and the new script should be run immediately after as a required manual step. Instructions for both PowerShell and Bash are provided, and the authentication step is now clearly marked as mandatory. [1] [2]

Security Improvements

  • The script configures the API to return HTTP 401 for unauthenticated callers (fail closed), closing the window where the API is externally accessible without authentication after deployment.

Idempotency and Reusability

  • Both the script and documentation support reusing existing app registrations by passing client IDs, making repeated deployments safer and more flexible. [1] [2]

These changes significantly streamline and secure the authentication configuration process for Azure deployments.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Prajwal-Microsoft and others added 13 commits September 28, 2026 12:02
fix: Fix authentication Script
chore: Down mere from main to dev
…bilities

fix: update vulnerable dependencies
The committed blob used CRLF, causing 'bash infra/scripts/configure_app_authentication.sh' to fail on Linux/macOS/WSL/CI with \$'\r': command not found before any Azure command runs. Convert to LF so the documented invocation works cross-platform.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fix: Added token validation on API to avoid security issues
fix: Add troubleshooting steps for authentication errors in deployment guide

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Authentication allowlisting, readiness checks, reused-registration handling, and PowerShell error propagation contain blocking reliability issues.

Review effort: Balanced
Findings: 5 Medium severity

Open (5)
What changed in this PR

Automates post-deployment Entra ID authentication and updates authenticated tooling and dependencies.

Changes:

  • Adds Bash and PowerShell Easy Auth configuration scripts.
  • Adds bearer-token support to deployment and upload scripts.
  • Updates deployment documentation and web dependency overrides.
File Description
infra/​scripts/​configure_app_authentication.sh Adds Bash authentication automation.
infra/​scripts/​configure_app_authentication.ps1 Adds PowerShell authentication automation.
infra/​scripts/​post_deployment.sh Authenticates schema registration requests.
infra/​scripts/​post_deployment.ps1 Authenticates schema registration requests.
src/​ContentProcessorAPI/​samples/​upload_files.sh Supports bearer-token uploads.
src/​ContentProcessorAPI/​samples/​upload_files.ps1 Supports bearer-token uploads.
docs/​ConfigureAppAuthentication.md Documents automated configuration.
docs/​DeploymentGuide.md Adds mandatory authentication step.
src/​ContentProcessorWeb/​package.json Updates dependency overrides.
src/​ContentProcessorWeb/​pnpm-lock.yaml Synchronizes resolved dependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread infra/scripts/configure_app_authentication.ps1
Comment thread infra/scripts/configure_app_authentication.ps1
Comment thread infra/scripts/configure_app_authentication.sh
Comment thread infra/scripts/post_deployment.ps1
Comment thread infra/scripts/post_deployment.sh
@Prajwal-Microsoft
Prajwal-Microsoft merged commit 65868ce into main Oct 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants