-
Notifications
You must be signed in to change notification settings - Fork 186
Strengthen TRE API authentication and clean up codebase #4989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
marrobi
wants to merge
33
commits into
microsoft:main
Choose a base branch
from
marrobi:copilot/redesign-tre-api-auth
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,728
−548
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
a5aff8f
Initial plan
Copilot 5ade874
Strengthen TRE API authentication: new auth layer, remove AccessServi…
Copilot 79befc1
Fix is_tre_admin() comparison and remove duplicate RBAC pre-built checks
Copilot 013966a
Complete route migration to new auth package; remove old auth singletons
Copilot 447f2c4
Remove duplicate dependency overrides in test fixtures
Copilot 52a2c76
Fix duplicate import in test_workspace_users.py
Copilot 962dfec
Fix linting issues: unused import, extra blank line, unhandled signat…
Copilot 72fa930
Add security tests for auth layer; fix missing-oid KeyError in TokenV…
Copilot 7a29daf
Fix fragile algorithms arg assertion in test_decode_is_called_with_rs…
Copilot 701fc66
Address PR review comments: owner-only patch, Field defaults, AsyncMo…
marrobi 5aea73b
Merge remote-tracking branch 'upstream/main' into copilot/redesign-tr…
marrobi 37cc731
Remove unused imports in token validator tests
marrobi cb62531
Clean up dead auth code from review
marrobi 5fa9cd4
Harden auth model immutability and resolve E231 lint
marrobi c9e7fcf
Address new PR review comments
marrobi ed62d1b
Bump api version to 0.26.0 for auth refactor
marrobi a2ade55
Address new review comments: harden workspace fallback + 401 on missi…
marrobi 298bc0b
Restore pre-PR TREAdmin authorization semantics on workspace endpoints
marrobi 67bc00b
Address review comments: require exp claim + asyncio.run in tests
marrobi c1abd5a
Merge branch 'main' into copilot/redesign-tre-api-auth
rudolphjacksonm ff0e892
Potential fix for pull request finding
marrobi c327b11
no_auth_token references fake_credentials
marrobi c79c651
Fix no_auth_token fixture indentation: move body inside function scope
Copilot 4b63744
Add KeyError
marrobi 4fcfb97
Remove redundant route-level auth dependencies where APIRouter alread…
07e77ce
Address Copilot review feedback for #4797: preserve APIRouter level a…
9c681cc
Revert "Address Copilot review feedback for #4797: preserve APIRouter…
5b8a4ad
Revert "Remove redundant route-level auth dependencies where APIRoute…
1049dac
Merge branch 'main' into copilot/redesign-tre-api-auth
JC-wk c6df049
Add Event Grid retry, split Graph/EG errors in airlock, bump version …
Copilot fde350f
Default AuthenticatedUser email to empty string to fix airlock Event …
Copilot 764f69a
Update CHANGELOG with recent bug fixes
marrobi 1063435
Consolidate PR CHANGELOG into a single concise entry
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| [flake8] | ||
| ignore = E501, W503 | ||
| # E231 is ignored because pycodestyle on Python 3.12+ mis-tokenises f-string | ||
| # contents (commas/colons inside URL, OData and JSON string literals) as code. | ||
| ignore = E501, W503, E231 | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| [flake8] | ||
| ignore = E501,W503 | ||
| # E231 is ignored because pycodestyle on Python 3.12+ mis-tokenises f-string | ||
| # contents (commas/colons inside URL, OData and JSON string literals) as code. | ||
| ignore = E501,W503,E231 | ||
|
marrobi marked this conversation as resolved.
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __version__ = "0.25.29" | ||
| __version__ = "0.26.2" |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.