-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
20 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,18 +118,18 @@ Let's dig into the code: | |
|
||
```json | ||
{ | ||
"role": "roles/projectQuerier", | ||
"role": "roles/sqlEditorUser", | ||
"members": ["user:[email protected]", "user:[email protected]"], | ||
"condition": { | ||
"expression": "(resource.database in [\"instances/test-sample-instance/databases/hr_test\"])", | ||
"title": "project querier hr_prod", | ||
"title": "SQL Editor User hr_prod", | ||
"description": "", | ||
"location": "" | ||
} | ||
} | ||
``` | ||
|
||
This grants the `projectQuerier` role only for the `hr_test` database in `test-sample-instance`. | ||
This grants the `SQL Editor User` role only for the `hr_test` database in `test-sample-instance`. | ||
|
||
1. When processing IAM policies, handle [CEL (Common Expression Language)](https://cel.dev/) format conditions carefully. In this demo, we parse these conditions using a custom `parseCelExpression` function: | ||
|
||
|
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
Binary file modified
BIN
-40.2 KB
(42%)
public/content/docs/security/database-permission/query/assign-workspace.webp
Binary file not shown.
Binary file modified
BIN
-80.8 KB
(32%)
public/content/docs/security/database-permission/query/project-members-grant.webp
Binary file not shown.
Binary file modified
BIN
-104 KB
(24%)
public/content/docs/security/database-permission/query/project-members-querier.webp
Binary file not shown.
Binary file modified
BIN
-50.5 KB
(48%)
public/content/docs/tutorials/how-to-manage-roles/bb-system-roles.webp
Binary file not shown.