chore(infra): IaC, compose, redis, oauth2-proxy baseline#538
Draft
chore(infra): IaC, compose, redis, oauth2-proxy baseline#538
Conversation
This was referenced May 9, 2026
3a3355f to
b4203de
Compare
Infra & deployment topology: - IaC: app-registration + resources deploy scripts, bicep updates - docker-compose: align dev/override, wire oauth2-proxy service - radixconfig: updated config - redis: standalone Dockerfile + entrypoint - secrets: README and .gitignore - root: env template, gitattributes, release-please, mise lint task, dependabot, pre-commit hooks OAuth2 proxy & nginx: - web/oauth2: dedicated Dockerfile, entrypoint, oauth2-proxy config - web/nginx: oauth2 auth_request/redirect snippets, security headers, default.conf updates - web/Dockerfile: align with oauth2 split
d6db2ab to
bf4b2bc
Compare
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.
Stack 1/4 — base: `main`
Infra & deployment topology + oauth2-proxy split.
Stack
This pull request introduces significant improvements to the infrastructure-as-code (IaC) and authentication setup for the project. The main focus is on automating and clarifying the provisioning of Entra ID (Azure AD) app registrations for secure authentication, updating environment and Docker Compose configurations, and enhancing documentation for developers. It also includes minor dependency and configuration cleanups.
Authentication and Infrastructure Automation:
IaC/app-registration.bicep) to provision two Entra ID app registrations per environment: one for the API (resource server) and one for the BFF (oauth2-proxy, OIDC client), with support for custom owners, environments, and redirect URIs. Outputs are provided for use in local configuration.IaC/deploy-app-registration.sh, a robust shell script that wraps the Bicep deployment, interactively gathers required parameters, ensures correct Azure roles, resolves group owners, and securely creates a client secret for the BFF registration.IaC/deploy-resources.shto automate deployment of environment-specific Azure resources defined inmain.bicep.bicepconfig.jsonto enable extensibility and pin the Microsoft Graph Bicep extension version.Configuration and Environment Updates:
.env-templatewith new variables for Application Insights and optional service principal credentials, supporting telemetry and secure authentication.docker-compose.override.ymlto pass new authentication and telemetry environment variables to the API, and added anoauth2service with debug settings and mounted config files. [1] [2]nginxservice dependencies to ensureoauth2starts beforenginxindocker-compose.yml.Documentation Improvements:
README.mdwith a detailed section on the BFF authentication flow, instructions for running the new provisioning script, mapping outputs to configuration, and managing secrets.Dependency and Config Cleanups:
.github/dependabot.ymlto simplify dependency update groups and patterns.biomejs/pre-commithook version in.pre-commit-config.yamlfor compatibility.