-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fdc sql perms #7578
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
Merged
Merged
Fdc sql perms #7578
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d7c3776
Improve SQL permissions setup and security in migrations flow
tammam-g 521d5c6
Merge branch 'master' into fdc-sql-perms
tammam-g e002252
Fix linting issues in sql permissions changes
tammam-g 01b950b
Merge branch 'master' into fdc-sql-perms
tammam-g 1f8169d
Improve sql role grant checks
tammam-g 1d33112
minor space changes for sql "do" commands
tammam-g 74d46ff
redeuce required iam perms to perform sql setup and remove cloudsql.u…
tammam-g b5e5b16
minor, rename dataconnectDBUser to fdcP4SAUser
tammam-g 8b197e0
remove unused import
tammam-g 885460b
Move P4SA user creation and grants to setupIAMUsers
tammam-g b36a247
Use comment to clarify passed variable literal /** silent=*/
tammam-g c6ca66a
Apply suggestions: update error messages and comments for SQL permiss…
tammam-g 6506f3c
Change checkRoleIsGranted to checkSQLRoleIsGranted
tammam-g 7fe03a6
Merge branch 'master' into fdc-sql-perms
tammam-g 91ddac2
Add changelog for fdc sql permissions
tammam-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| - Improve Firebase Data Connect postgres security by granting fine grained SQL privileges to the users the need it. (#7578) | ||
| - Remove `dataconnect:sql:migrate` command hard dependency on 'roles/cloudsql.admin'. (#7578) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking: Is this something that will need to be overridden ever? It seems like all p4sas will have this domain. If it won't be overridden, you could simplify this to just a normal constant in schemaMigration.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it will be overridden, possibly if testing internally. But this is the pattern I saw other firebase products use for setting the P4SA domain so I feel sticking with how the rest of the CLI does this makes sense.