-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
feat: split database information #24067
Conversation
2520043
to
fe7ccec
Compare
Codecov Report
@@ Coverage Diff @@
## master #24067 +/- ##
========================================
Coverage 68.18% 68.18%
========================================
Files 1941 1952 +11
Lines 75287 75390 +103
Branches 8177 8206 +29
========================================
+ Hits 51332 51405 +73
- Misses 21860 21878 +18
- Partials 2095 2107 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 13 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
"token_uri": "https://oauth2.googleapis.com/token", | ||
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", | ||
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/google-spreadsheets-demo-servi%40black-sanctum-314419.iam.gserviceaccount.com", | ||
}, |
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.
is this a real google account?
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.
It is, with the private key omitted.
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.
Thanks for doing this!
Do you think non Admin users still need access to /api/v1/database/<id>
?
Yeah, SQL Lab broke when I removed the access. |
@betodealmeida I added a label for breaking-change on this PR since it removes some properties from the API response. LMK if you think otherwise, though. |
SUMMARY
Move potentially sensitive database information (SQLAlchemy URI, eg) to a separate endpoint that can be only accessed by the admin (
can_write
onDatabase
).BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TESTING INSTRUCTIONS
Added new test, updated old one.
ADDITIONAL INFORMATION