jopache / Settings

Hierarchical Settings Application
Apache License 2.0
3 stars 1 forks source link

Add Settings - Authorization to Backend #6

Open jopache opened 7 years ago

jopache commented 7 years ago

Will need to create the following table structure: Blocked: #4 (authentication backend)

  1. Permissions -- Id -- EnvironmentId -- ApplicationId -- UserId -- Role (1 = ReadSettings, 10 = WriteSettings, 20 = CreateChildApplication, 30 = CreateChildEnvironment) spaced out by 10 allows me to add things like decryptsettings in the future (NOTE: Think about these queries... this hierarchical data could get quite complex)

Will then need to tap in read/write endpoints to authorize against a new authorization service.

For now this will assume that a user has access to all applications/environments as there is some additional complexity to deal with there. Will do this by creating a test user as part of seed script with all access to root of both.