-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: supporting namespaced auth tokens (#2352)
* feat(wip): beginnings of supporting namespaced auth tokens * feat(wip): start work on ui for adding namespaced token * chore: enable interceptor * chore: set namespace key on token form submit * chore: snakecase namespace key * chore: add IT for namespaced token creation * chore: add ui IT for namespaced token * chore: add todo * chore: add scoped method for namespace requests * chore: fix it * chore: fix test * chore: try to fix ui test * chore: comment out auth for local config * chore: fix token * chore: token table * chore: add more tests * chore: make interceptor panic if no auth * chore: try to add / fix ITs * chore: try to fix api test * chore: clean up config/local.yml * chore: fix creating namespaced token in IT * chore: skip interceptors for non-auth required servers * chore: more IT woes * chore: omg ITs * chore: gah! * fix(auth): support batch requests with namespaced tokens * test(auth): ensure namespaced token cant access meta * chore: move auth middleware to subpackages * chore: refactor to opt in to namespace auth * chore: wire through auth opts * chore: rename methods/interface * chore: fix test * chore: try to fix ITs * chore: hopefully fix scoped servers * fix: db root on mac after refactor * chore: typo * chore: try to fix docker issue on mac * chore: fix middleware * chore: fix default db path * chore: run short tests for macos * chore: use go test if no gotest * chore: wat are you talking about computers!? * chore: wat are you talking about computers!? * chore: fix mage test * chore: fix validation test * chore: namespaced token shouldnt be able to do anything with token endpoints * Update server.go Co-authored-by: George <me@georgemac.com> * chore: fix typo * chore: comments for auth test * chore: try to fix auth middleware * chore: tests * Revert "chore: tests" This reverts commit 54f793a. * Revert "chore: try to fix auth middleware" This reverts commit 70c1759. * chore: disallow namespace requests for auth server * chore: i am at my wits end * fix(tests/integration): ensure default namespace token appropriately * fix(tests/integration): only create namespace in api tests * fix(auth): support create namespace with namespaced scoped token * chore: add some minor unit test coverage * test(auth/middleware): ensure namespaced batch cases behave expectedly * chore: more tests --------- Co-authored-by: George MacRorie <me@georgemac.com>
- Loading branch information
1 parent
381b90f
commit d6b83dd
Showing
51 changed files
with
1,425 additions
and
604 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
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
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.