Skip to content
This repository was archived by the owner on Aug 20, 2026. It is now read-only.

Chat Copilot Security Improvements - #126

Merged
Gina Triolo (gitri-ms) merged 41 commits into
mainfrom
feature-better-auth
Aug 18, 2023
Merged

Gina Triolo (gitri-ms) merged 41 commits into
mainfrom
feature-better-auth

Conversation

@gitri-ms

@gitri-ms Gina Triolo (gitri-ms) commented Aug 8, 2023 •

Copy link
Copy Markdown
Contributor

Motivation and Context

This PR addresses microsoft/semantic-kernel#1639. It is a combination of PRs #92 and #110

Description

Backend changes

  • Remove API key authorization
  • Use "AzureAD" as default authentication configuration for deployments, "None" for running locally (Note: UI changes to disable sign in flow for the latter case are still forthcoming)
  • Enable auth policy on controllers that checks if the user is part of the conversation they are trying to access

This PR changes the contract between the frontend and backend around how user IDs are communicated. Users who have been signing into the frontend with AAD will now only see their chats if the backend is also gated by AAD authentication, which was not the case previously.

Frontend changes

  • adds REACT_APP_AUTH_TYPE and changes AAD variables in .env to be optional
  • adds AuthHelper.IsAuthAAD to conditionally render different elements throughout the app
  • changes user settings menu popup to instead just show as a settings button:
    image

Existing users will need to uncomment REACT_APP_AUTH_TYPE=AzureAd in webapp/.env to continue using AAD as their authorization type.

Contribution Checklist

@github-actions github-actions Bot added documentation Improvements or additions to documentation webapp Pull requests that update Typescript code webapi Pull requests that update .net code PR: ready for review labels Aug 8, 2023
Comment thread scripts/deploy/deploy-webapp.ps1 Resolved
Comment thread scripts/deploy/deploy-webapp.sh Resolved
Comment thread scripts/deploy/deploy-webapp.ps1 Resolved
Comment thread scripts/Configure.sh Resolved
Comment thread scripts/Start.ps1 Resolved
Comment thread scripts/deploy/deploy-webapp.ps1 Resolved
Comment thread scripts/deploy/deploy-webapp.ps1 Resolved
Comment thread scripts/deploy/deploy-webapp.sh Resolved
Comment thread webapi/appsettings.json Resolved
@gitri-ms
Gina Triolo (gitri-ms) added this pull request to the merge queue Aug 18, 2023
Merged via the queue into main with commit 2f9dbc5 Aug 18, 2023
@gitri-ms
Gina Triolo (gitri-ms) deleted the feature-better-auth branch August 18, 2023 20:37
Team Leader (teamleader-dev) pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
### Motivation and Context
This PR addresses
microsoft/semantic-kernel#1639. It is a
combination of PRs microsoft#92 and microsoft#110

### Description

#### Backend changes
- Remove API key authorization
- Use "AzureAD" as default authentication configuration for deployments,
"None" for running locally (Note: UI changes to disable sign in flow for
the latter case are still forthcoming)
- Enable auth policy on controllers that checks if the user is part of
the conversation they are trying to access

This PR changes the contract between the frontend and backend around how
user IDs are communicated. Users who have been signing into the frontend
with AAD will now only see their chats if the backend is also gated by
AAD authentication, which was not the case previously.

#### Frontend changes
- adds `REACT_APP_AUTH_TYPE` and changes AAD variables in `.env` to be
optional
- adds `AuthHelper.IsAuthAAD` to conditionally render different elements
throughout the app
- changes user settings menu popup to instead just show as a settings
button:

![image](https://github.com/microsoft/chat-copilot/assets/52973358/342f977d-d011-464d-b122-5eff5f8222ac)

Existing users will need to uncomment `REACT_APP_AUTH_TYPE=AzureAd` in
`webapp/.env` to continue using AAD as their authorization type.


### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Desmond Howard <[email protected]>
Kyle Beachem (kb0039) pushed a commit to aaronba/chat-copilot that referenced this pull request Jan 8, 2025
### Motivation and Context
This PR addresses
microsoft/semantic-kernel#1639. It is a
combination of PRs microsoft#92 and microsoft#110

### Description

#### Backend changes
- Remove API key authorization
- Use "AzureAD" as default authentication configuration for deployments,
"None" for running locally (Note: UI changes to disable sign in flow for
the latter case are still forthcoming)
- Enable auth policy on controllers that checks if the user is part of
the conversation they are trying to access

This PR changes the contract between the frontend and backend around how
user IDs are communicated. Users who have been signing into the frontend
with AAD will now only see their chats if the backend is also gated by
AAD authentication, which was not the case previously.

#### Frontend changes
- adds `REACT_APP_AUTH_TYPE` and changes AAD variables in `.env` to be
optional
- adds `AuthHelper.IsAuthAAD` to conditionally render different elements
throughout the app
- changes user settings menu popup to instead just show as a settings
button:

![image](https://github.com/microsoft/chat-copilot/assets/52973358/342f977d-d011-464d-b122-5eff5f8222ac)

Existing users will need to uncomment `REACT_APP_AUTH_TYPE=AzureAd` in
`webapp/.env` to continue using AAD as their authorization type.


### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Desmond Howard <[email protected]>
Jonny Toombs (jdtoombs) pushed a commit to jdtoombs/chat-copilot that referenced this pull request Apr 10, 2025
…n/webapp/playwright/test-1.50.0

build(deps): bump @playwright/test from 1.49.1 to 1.50.0 in /webapp
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

deployment Issues related to deploying Chat-Copilot documentation Improvements or additions to documentation github actions Pull requests that update GitHub Actions code webapi Pull requests that update .net code webapp Pull requests that update Typescript code

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

5 participants