-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#16940 from SimonRichardson/remove-user-find-e…
…ntity juju#16940 We know directly if the auth tag is a user, we don't need to jump through hoops to find out if it's a tag from state. Instead, we'll directly speak to the user service. This removes the need for find entity (one down, many to go!). The code was re-arranged to make it a bit easier to grok. I believe we should probably yank all the auth out into one location. That might be a task for another day. There is a lot of confusion between authentication (authn) and authorization (authz) with the find entity. There seems to be optimisation of attempting to authz early on in the authn stack, which causes problems of forcing cross-cutting concerns that's proving hard to untangle. For example, the modelUserEntityFinder is deeply confused. ~~More work is require, probably requiring juju#16935 to land first, as the user domain state package has bugs.~~ <!-- Why this change is needed and what it does. --> ## Checklist <!-- If an item is not applicable, use `~strikethrough~`. --> - [ ] Code style: imports ordered, good names, simple structure, etc - [ ] Comments saying why design decisions were made - [ ] Go unit tests, with comments saying what you're testing - [ ] [Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing - [ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages ## QA steps <!-- Describe steps to verify that the change works. --> ## Documentation changes <!-- How it affects user workflow (CLI or API). --> ## Links <!-- Link to all relevant specification, documentation, bug, issue or JIRA card. --> **Launchpad bug:** https://bugs.launchpad.net/juju/+bug/ **Jira card:** JUJU-
- Loading branch information
Showing
62 changed files
with
2,275 additions
and
1,108 deletions.
There are no files selected for viewing
This file contains 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 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.