Christopher Kolstad
53354224fc
chore: Bump biome and configure husky ( #6589 )
...
Upgrades biome to 1.6.1, and updates husky pre-commit hook.
Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00
Gastón Fournier
80bc4e05a2
chore: add types to pat middleware ( #5951 )
...
Add proper types
2024-01-18 14:36:42 +01:00
Christopher Kolstad
af3944bd75
fix: log missing user at warn level ( #3735 )
...
When using PATs if the user that the PAT is for has been removed, we
currently log the missing user at ERROR level. Since this is not
something our SREs can fix, this PR downgrades the NotFoundError to
WARN, instead of ERROR.
2023-05-10 13:31:42 +02:00
Nuno Góis
7d73d772df
feat: add the account abstraction logic ( #2918 )
...
https://linear.app/unleash/issue/2-579/improve-user-like-behaviour-for-service-accounts-accounts-concept
Builds on top of https://github.com/Unleash/unleash/pull/2917 by moving
the responsibility of handling both account types from `users` to
`accounts`.
Ideally:
- `users` - Should only handle users;
- `service-accounts` - Should only handle service accounts;
- `accounts` - Should handle any type of account;
This should hopefully also provide a good building block in case we
later decide to refactor this further down the `accounts` path.
2023-01-18 16:08:07 +00:00
Nuno Góis
7ce38ffe89
feat: update seen_at pat column ( #2516 )
...
https://linear.app/unleash/issue/2-451/update-last-seen-column-for-pats
2022-11-30 08:10:31 +02:00
Nuno Góis
07821174a5
refactor: remove PAT experimental flag ( #2299 )
2022-10-31 09:38:30 +00:00
sjaanus
d79ace57ec
Personal access token middleware ( #2069 )
...
* Middleware first version
* Middleware tests
* Add tests
* Finish middleware tests
* Add type for request
* Add flagresolver
* Fix snapshot
* Update flags and tests
* Put it back as default
* Update snapshot
2022-09-28 16:53:56 +03:00