Skip to content

v0.0.3 - Secure Access#43

Merged
MWG-Logan merged 4 commits into
mainfrom
dev
Jan 14, 2026
Merged

v0.0.3 - Secure Access#43
MWG-Logan merged 4 commits into
mainfrom
dev

Conversation

@MWG-Logan
Copy link
Copy Markdown
Owner

This pull request updates dependencies and modifies access control for the web application. The most important changes include upgrading NuGet package versions for better stability and security, and refining route authorization rules to improve role-based access.

Dependency Upgrades:

  • Upgraded QuestPDF package in Bezalu.ProjectReporting.API.csproj from version 2025.4.0 to 2025.12.1 for improved PDF generation features and bug fixes.
  • Updated Microsoft.FluentUI.AspNetCore.Components and Microsoft.FluentUI.AspNetCore.Components.Icons in Bezalu.ProjectReporting.Web.csproj from 4.13.1 to 4.13.2 to incorporate latest UI enhancements and fixes.

Authorization and Routing Changes:

  • Added a new route for /manifest.webmanifest in staticwebapp.config.json, allowing access for anonymous users to improve PWA support.
  • Changed the default route authorization from "authenticated" to "editor" in staticwebapp.config.json, restricting general access to users with the editor role.

dependabot Bot and others added 4 commits January 7, 2026 16:14
)

---
updated-dependencies:
- dependency-name: Microsoft.FluentUI.AspNetCore.Components
  dependency-version: 4.13.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
updated-dependencies:
- dependency-name: QuestPDF
  dependency-version: 2025.12.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…13.2 (#38)

---
updated-dependencies:
- dependency-name: Microsoft.FluentUI.AspNetCore.Components.Icons
  dependency-version: 4.13.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(web): Change allowedRoles from 'authenticated' to 'editor'

* fix(web): Add route for manifest.webmanifest with anonymous
Copilot AI review requested due to automatic review settings January 14, 2026 16:07
@MWG-Logan MWG-Logan changed the title fix(web): Change allowedRoles from 'authenticated' to 'editor' v0.0.3 Jan 14, 2026
@MWG-Logan MWG-Logan changed the title v0.0.3 v0.0.3 - Secure Access Jan 14, 2026
@MWG-Logan MWG-Logan merged commit f3e3cc2 into main Jan 14, 2026
14 of 15 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates NuGet package dependencies and modifies the authorization model for the Azure Static Web App. The changes upgrade PDF generation and UI component libraries while restricting application access from any authenticated user to only users with the "editor" role.

Changes:

  • Upgraded QuestPDF from version 2025.4.0 to 2025.12.1 for improved PDF generation capabilities
  • Updated Microsoft FluentUI components from version 4.13.1 to 4.13.2 for latest UI fixes
  • Added anonymous access route for PWA manifest file to support Progressive Web App functionality
  • Changed default authorization from "authenticated" to "editor" role, significantly restricting application access

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
Bezalu.ProjectReporting.API/Bezalu.ProjectReporting.API.csproj Upgraded QuestPDF package to version 2025.12.1 for PDF generation improvements
Bezalu.ProjectReporting.Web/Bezalu.ProjectReporting.Web.csproj Updated Microsoft FluentUI packages to version 4.13.2 for UI component fixes
Bezalu.ProjectReporting.Web/staticwebapp.config.json Added PWA manifest route with anonymous access and changed default authorization to require "editor" role

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 11 to 14
{
"route": "/*",
"allowedRoles": ["authenticated"]
"allowedRoles": [ "editor" ]
}
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The catch-all route "/" with "editor" role requirement will apply to all routes including API routes (/api/). This means API endpoints will also require the "editor" role, not just the web UI. If the intent is to have different authorization requirements for API routes versus the web UI, you should add explicit route configurations for /api/* routes before the catch-all route. For example:

{
  "route": "/api/*",
  "allowedRoles": ["authenticated"]
}

Otherwise, ensure that the "editor" role requirement for API access is intentional and documented.

Copilot uses AI. Check for mistakes.
Comment on lines 11 to 14
{
"route": "/*",
"allowedRoles": ["authenticated"]
"allowedRoles": [ "editor" ]
}
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

With the catch-all route now requiring "editor" role, static assets like CSS (/css/), JavaScript (/js/), icons (/icon-*.png), and favicon (/favicon.ico) will also require authentication with the "editor" role. While these are excluded from navigationFallback, they are not excluded from route authorization.

For a typical web application, these static assets should be accessible without authentication to allow the application shell to load before authentication. Consider adding explicit route entries for these static assets with anonymous access:

{
  "route": "/css/*",
  "allowedRoles": ["anonymous"]
},
{
  "route": "/js/*",
  "allowedRoles": ["anonymous"]
},
{
  "route": "/favicon.ico",
  "allowedRoles": ["anonymous"]
},
{
  "route": "/icon-*.png",
  "allowedRoles": ["anonymous"]
}

These routes should be added before the catch-all "/*" route.

Copilot uses AI. Check for mistakes.
Comment thread Bezalu.ProjectReporting.Web/staticwebapp.config.json
Comment thread Bezalu.ProjectReporting.Web/staticwebapp.config.json
Comment thread Bezalu.ProjectReporting.Web/staticwebapp.config.json
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://mango-river-0addcf70f-43.eastus2.2.azurestaticapps.net

@MWG-Logan MWG-Logan review requested due to automatic review settings March 23, 2026 20:11
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.

2 participants