sighphyre
21560f2dac
chore: More minor cleanups of code
2022-01-11 09:23:35 +01:00
sighphyre
deaf614dde
chore: Small code cleanups
2022-01-11 09:23:35 +01:00
sighphyre
b56ed05db1
chore: Minor code cleanups
2022-01-11 09:23:35 +01:00
Fredrik Oseberg
26db43b248
fix: alter migration
2022-01-11 09:23:34 +01:00
Fredrik Oseberg
1e466282e5
fix: add guard for deleting role if the role is in use
2022-01-11 09:23:34 +01:00
Fredrik Oseberg
dda9cba786
fix: add test for changing user role
2022-01-11 09:23:34 +01:00
Fredrik Oseberg
cfa35d2c43
fix: add test for adding a project member with a custom role
2022-01-11 09:23:34 +01:00
Fredrik Oseberg
86df42b887
fix: add test for connecting roles and deleting project
2022-01-11 09:23:33 +01:00
Fredrik Oseberg
645621a0df
fix: remove unused permissions
2022-01-11 09:23:33 +01:00
sighphyre
f032445d3d
fix: Improve responses from role resolution - getting a non existant role will throw a NotFound error
2022-01-11 09:23:33 +01:00
sighphyre
40bdab773c
fix: Add in very barebones down migration for rbac so that tests work
2022-01-11 09:23:33 +01:00
sighphyre
4e3f7e5330
feat: Validation now works when updating a role
2022-01-11 09:23:32 +01:00
Fredrik Oseberg
84f4a9083f
fix: update tests
2022-01-11 09:23:32 +01:00
Fredrik Oseberg
fb109d79a6
fix: update root role test
2022-01-11 09:23:32 +01:00
Fredrik Oseberg
563345695d
fix: create new user
2022-01-11 09:23:32 +01:00
Fredrik Oseberg
4409111be0
fix: update user permission mapping
2022-01-11 09:23:31 +01:00
Fredrik Oseberg
d2907d1887
fix: update test name
2022-01-11 09:23:31 +01:00
Fredrik Oseberg
19f78314d1
fix: add permissions to editor
2022-01-11 09:23:31 +01:00
sighphyre
5ca23b80e7
fix: patch a few broken tests
2022-01-11 09:23:31 +01:00
Fredrik Oseberg
5261de98a2
fix: migration for project roles
2022-01-11 09:23:30 +01:00
sighphyre
c547b8a2b9
feat: Patch db migration to handle old stucture
2022-01-11 09:23:30 +01:00
sighphyre
42a5105736
feat: Add in validation for roles
2022-01-11 09:23:30 +01:00
sighphyre
30de5f4b39
chore: Refactor role/access stores into more logical domains
2022-01-11 09:23:30 +01:00
sighphyre
f97f8b03bc
chore: A few small cleanups - remove logging and restore default on dev server config
2022-01-11 09:23:29 +01:00
sighphyre
afb5a6139b
fix: Get a bunch of tests working and delete a few that make no sense anymore
2022-01-11 09:23:29 +01:00
sighphyre
b953324428
feat: Add in support for updating roles
2022-01-11 09:23:29 +01:00
sighphyre
f8550790c5
feat: Return permissions on get role endpoint
2022-01-11 09:23:29 +01:00
sighphyre
8babe8cadf
fix: Removed ability to set role type through api during creation - it's now always custom
2022-01-11 09:23:28 +01:00
sighphyre
cd782be6dc
fix: Add back to get permissions working for editor role
2022-01-11 09:23:28 +01:00
sighphyre
0634758784
fix: Make permissions actually work with new environments
2022-01-11 09:23:28 +01:00
sighphyre
ba40099b41
fix: Patch migration to also populate permission names
2022-01-11 09:23:28 +01:00
sighphyre
d387ac0cbd
fix: Make project roles resolve correctly against new environments permissions structure
2022-01-11 09:23:27 +01:00
sighphyre
9d4f542f85
feat: Add ability to provide permissions when creating a role and rename environmentName to name in the list permissions datastructure
2022-01-11 09:23:27 +01:00
sighphyre
cb02ae9c92
feat: Add api endpoints for roles and permissions list
2022-01-11 09:23:27 +01:00
Fredrik Oseberg
817f960765
fix: add fake store
2022-01-11 09:23:27 +01:00
sighphyre
2eb0b6a11e
chore: Implement scaffolding for new rbac
2022-01-11 09:23:26 +01:00
Fredrik Oseberg
0129f23e97
feat: add tests
2022-01-11 09:23:26 +01:00
Fredrik Oseberg
d8ab79f71c
fix: connect environment with access service
2022-01-11 09:23:26 +01:00
Fredrik Oseberg
73d270d11f
fix: add migration for roles
2022-01-11 09:23:26 +01:00
Ivar Conradi Østhus
2ec427190e
wip: environment for permissions
2022-01-11 09:23:25 +01:00
Ivar Conradi Østhus
b1a2f110c6
chore: reduce test time-complexity
2022-01-06 21:26:53 +01:00
Ivar Conradi Østhus
73685c771a
fix: allow static assets from cdn.getunleash.io
2022-01-06 21:08:16 +01:00
Ivar Conradi Østhus
559275129d
Fix/bcryptjs ( #1239 )
...
fixes : #1108
2022-01-06 20:43:57 +01:00
Ivar Conradi Østhus
26b7da8b5c
feat: add support for cdnPrefix for static assets ( #1191 )
2022-01-06 10:31:00 +01:00
Ivar Conradi Østhus
2b59a4219a
fix: Should not remove variants when updating feature toggle metadata ( #1234 )
2022-01-06 10:23:52 +01:00
Ivar Conradi Østhus
66d4aa61de
fix: correct format for API tokens
2022-01-05 10:40:22 +01:00
Juraj Malenica
e757c00840
feat: Add init api tokens option ( #1181 )
...
Adds support for initializing a fresh Unleash instance with predefined API tokens.
Co-authored-by: sighphyre <liquidwicked64@gmail.com>
Co-authored-by: Juraj Malenica <juraj.malenica@mindsmiths.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2022-01-05 10:00:59 +01:00
Ivar Conradi Østhus
c051eb9149
fix: expose ApiUser out of Unleash
2022-01-04 20:01:18 +01:00
sighphyre
5a82d9be87
fix: Update updateUser code to reject empty emails ( #1210 )
...
* fix: Update updateUser code to reject empty emails
This fixes an issue where the updateUser call would allow null email
addresses, then update the email to null and then raise an exception,
leaving the db in a state where no user could be resolved.
* fix: remove username/email requirement in user.ts
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2022-01-03 20:14:56 +01:00
Ivar Conradi Østhus
8d8d48026d
fix: adjust feature-variant-updated event
2021-12-17 04:30:39 +01:00