-
Notifications
You must be signed in to change notification settings - Fork 334
[WPB-28193] Disentangle oauth scopes (write access should not imply read access). #5542
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
fisx
wants to merge
28
commits into
develop
Choose a base branch
from
WPB-28193-disentangle-oauth-scopes-_write-access-should-not-imply-read-access_
base: develop
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.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
8d1377d
Changelog.
fisx a752ca4
Better OpenApi rendering of oauth scopes.
fisx 2bca04e
Refactor: split up `data OAuthScope` into base and tier.
fisx 8347ea6
Unit tests for matching swagger with nginz config: support `oauth_sco…
fisx 32872a5
Update nginz chart with new `oauth_scopes` attribute.
fisx 1d9f573
fixup tests.
fisx c48d166
fixup values.yaml
fisx dc1ee3f
Fix wire-api unit test to test new behavior.
fisx a736aa9
Update existing integration tests to new scope syntax.
fisx 1087c04
Fix: requesting tokens with non-existent scope fail.
fisx 5cd96fb
Fixup dc1ee3ff9
fisx f38d3c8
Fix actual access control in libzauth, update charts.
fisx c6de490
Update docs (local part, wire-docs repo bump coming up).
fisx db19b96
Mess with values.yaml (not sure how and why?)
fisx 06735e0
Revert ealier refactoring of OAuthScope back into simple sum type.
fisx d4fabae
Fix cql instance(s) to accomodate old tokens.
fisx ac17e16
TODOs.
fisx 578e490
Integration tests.
fisx b7623c8
Make scopes parser reject empty scopes list.
fisx 2c5e133
Clean up various copies of routes for nginx.conf.
fisx 580a3a0
Advanced rust magic for more types, more inlining.
fisx aa33c72
Fix old brig integration tests.
fisx 2e37bfd
Release notes.
fisx 8891962
Refactor: move code only needed in tests out of prod.
fisx 4cf26ef
Postpone un-urgent TODOs to later PR.
fisx 22daa57
Polish oauthscopes test.
fisx 7d3d6de
Add valid oauth scope to parse error message.
fisx bcbe889
Polish haddocks; remove outdated TODO.
fisx 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
18 changes: 18 additions & 0 deletions
18
changelog.d/0-release-notes/WPB-28193-nginx-conf-syntax-changed
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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| **[Only relevant if you have overwritten `oauth_scope` directives in | ||
| your nginx config]** The nginz route configuration syntax changed: | ||
| `oauth_scope` (a bare scope base, e.g. `conversations_code`) is | ||
| deprecated in favor of `oauth_scopes` (whole scopes, | ||
| e.g. `["read:conversations_code", "write-only:conversations_code"]`). | ||
|
|
||
| If you override nginz routes in your own values, migrate each | ||
| `oauth_scope` entry to the equivalent `oauth_scopes` list; | ||
| `oauth_scopes` wins where a route has both. If you use the bundled | ||
| chart, there is nothing to do, it is already updated. | ||
|
|
||
| The old directive and old oauth tokens remain valid with new | ||
| wire-server, but we will remove the deprecated functionality in some | ||
| future release. | ||
|
|
||
| See docs/src/developer/reference/config-options.md, | ||
| https://docs.wire.com/latest/developer/reference/oauth.html for more | ||
| context. |
1 change: 1 addition & 0 deletions
1
...pi-changes/WPB-28193-disentangle-oauth-scopes-_write-access-should-not-imply-read-access_
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Disentangle oauth scopes (write access should not imply read access). |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no
ReadConversationNameconstructor, so we shouldn't list it here or we'll get a unit test failure when matching nginz.conv and swagger.json.