Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MG-1955 - Update Bootstrap service access control #2199

Merged
merged 52 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
bd2fb8f
Implement domains access control
JeffMboya Apr 25, 2024
cd19915
refactor: add authorization to view method
JeffMboya May 24, 2024
0c828cc
refactor: add authorization to update method
JeffMboya May 25, 2024
7f3b4bc
refactor: add domainType authorization to update, view, & list methods
JeffMboya May 25, 2024
fb55a92
refactor: use configID in list and view methods
JeffMboya May 26, 2024
24f9602
refactor: replace TokenKind with UsersKind
JeffMboya May 27, 2024
cdfe83d
fix: failing cases in TestView
JeffMboya May 27, 2024
924fba2
fix: failing cases in TestView
JeffMboya May 28, 2024
c914c86
refactor: add authorization checks for UpdateCert, UpdateConnections,…
JeffMboya May 28, 2024
8ed8122
refactor: add authorization checks for UpdateCert, UpdateConnections,…
JeffMboya May 28, 2024
f2fd12d
refactor: update RetrieveAll method signature to include thingID para…
JeffMboya May 31, 2024
4f2f929
refactor: replace if with switch
JeffMboya Jun 2, 2024
57a3a9e
refactor: update RetrieveAll method signature to include thingID para…
JeffMboya Jun 3, 2024
937a621
refactor: update RetrieveAll method signature to include thingID para…
JeffMboya Jun 3, 2024
0997319
refactor: update RetrieveAll method signature to include thingID para…
JeffMboya Jun 3, 2024
92cf757
refactor: update RetrieveAll method signature to include thingID para…
JeffMboya Jun 5, 2024
15202be
refactor: Added early return in List if thingIDs is empty
JeffMboya Jun 6, 2024
b7ab243
refactor: Update List method to include empty string for domain ID pa…
JeffMboya Jun 6, 2024
5b13baa
refactor: Update List method to include empty string for domain ID pa…
JeffMboya Jun 6, 2024
71e291e
refactor: Update List method to include empty string for domain ID pa…
JeffMboya Jun 7, 2024
f3156d5
refactor: Update List method to include empty string for domain ID pa…
JeffMboya Jun 7, 2024
7afd3f3
refactor: Update List method to include empty string for domain ID pa…
JeffMboya Jun 7, 2024
42d9e03
refactor: Filter allowed thing IDs directly in filterAllowedThingIDs …
JeffMboya Jun 11, 2024
cd1ded7
refactor: Update tests
JeffMboya Jun 14, 2024
ac167ae
refactor: Update ConnectThingHandler to handle thing connection to ch…
JeffMboya Jun 16, 2024
6ec998f
fix: failing tests
JeffMboya Jun 16, 2024
b2ffbb8
fix: failing tests
JeffMboya Jun 17, 2024
6ea8fa6
fix: failing tests
JeffMboya Jun 17, 2024
b529c2c
refactor: add content string
JeffMboya Jun 17, 2024
07c2324
fix: failing test
JeffMboya Jun 17, 2024
188582a
fix: failing test
JeffMboya Jun 18, 2024
5d0c571
refactor: remove call to channelsByThing method
JeffMboya Jun 21, 2024
ee62d3e
fix: failing tests
JeffMboya Jun 21, 2024
bee3eda
fix: failing tests
JeffMboya Jun 21, 2024
d470a0f
fix: replace owner with domainID; remove ErrNotFound on disconnect Thing
JeffMboya Jun 24, 2024
32dd3f6
refactor: update column names in PostgreSQL queries
JeffMboya Jun 24, 2024
3cfa4db
Refactor PostgreSQL configurations and error handling
JeffMboya Jun 24, 2024
54fcb59
refactor: commit transactions outside defer method
JeffMboya Jun 24, 2024
7375f14
fix: failing tests
JeffMboya Jun 24, 2024
f32b97a
fix: failing tests
JeffMboya Jun 24, 2024
aedcac1
Refactor PostgreSQL queries to handle non-admin users
JeffMboya Jun 27, 2024
9b65334
refactor: remove unused columns from PostgreSQL tables
JeffMboya Jun 27, 2024
c3f04c2
refactor: remove unused columns from PostgreSQL tables
JeffMboya Jun 27, 2024
41da6b4
refactor: fix failing tests
JeffMboya Jul 1, 2024
217cd71
refactor: Update connections table and queries to use domain_id
JeffMboya Jul 2, 2024
1a7a908
refactor: add DomainID to connectionChannels function
JeffMboya Jul 2, 2024
3ed76f1
refactor: rename retrieveAll
JeffMboya Jul 4, 2024
1f8850b
refactor: Fix query construction to handle cases with no filters
JeffMboya Jul 4, 2024
d652159
refactor: Update domain field name in Client struct
JeffMboya Jul 5, 2024
372f63e
refactor: Update bootstrap service to use existing channels
JeffMboya Jul 5, 2024
040d3d2
refactor: Update bootstrap service to use existing channels
JeffMboya Jul 5, 2024
c921709
refactor: revert changes to add
JeffMboya Jul 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions api/openapi/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ paths:
description: Missing or invalid config.
"401":
description: Missing or invalid access token provided.
"403":
description: Failed to perform authorization over the entity.
"404":
description: Config does not exist.
"422":
Expand All @@ -126,6 +128,8 @@ paths:
description: Failed due to malformed JSON.
"401":
description: Missing or invalid access token provided.
"403":
description: Failed to perform authorization over the entity.
"404":
description: Config does not exist.
"415":
Expand All @@ -151,6 +155,8 @@ paths:
description: Failed due to malformed config ID.
"401":
description: Missing or invalid access token provided.
"403":
description: Failed to perform authorization over the entity.
"422":
description: Database can't process request.
"500":
Expand All @@ -176,6 +182,8 @@ paths:
description: Failed due to malformed JSON.
"401":
description: Missing or invalid access token provided.
"403":
description: Failed to perform authorization over the entity.
"404":
description: Config does not exist.
"415":
Expand Down Expand Up @@ -204,6 +212,8 @@ paths:
description: Failed due to malformed JSON.
"401":
description: Missing or invalid access token provided.
"403":
description: Failed to perform authorization over the entity.
"404":
description: Config does not exist.
"415":
Expand Down
Loading
Loading