Repository navigation
Saimon/pim 9561 external database - #380
Open
saimonation wants to merge 6 commits into
Open
saimonation wants to merge 6 commits into
saimonation wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit c0f8207. Configure here.
| return RemoteDatabase(host, port, name, 'Cert', ssl_mode, | ||
| X509Certificate.load_certificate(ssl_ca_cert) if ssl_ca_cert else None, | ||
| auth_cert=X509Certificate.load_certificate(auth_cert), | ||
| auth_key=PrivateKey.load_private_key(auth_key)) |
There was a problem hiding this comment.
Certificates omitted from setup payload
High Severity
RemoteDatabase.credentials and RemoteDatabase.certificate store X509Certificate and PrivateKey objects on sslCaCert, authCert, and authKey. The XML serializer only emits primitives and Object instances, so those fields are dropped from the setup request. Certificate authentication and custom CA verification never reach the Portal.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit c0f8207. Configure here.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Note
Medium Risk
Changes portal bootstrap/setup wiring and sends database credentials and TLS material to the server, though behavior stays backward-compatible when no remote DB is specified.
Overview
Adds optional external database configuration when initializing a CTERA Portal master or application server, while keeping embedded as the default when
databaseis omitted.Introduces
RemoteDatabase(withcredentialsandcertificatehelpers) andSSLModeincterasdk.core.types, and threads the config throughSetup.init_master,Setup.init_application_server, and_init_server_paramsso setup XML setsdatabaseModeandexternalDatabaseConfig. Setup logging now records the chosen database mode.User docs and the 2.20.52 changelog document the new flows; unit tests expect
databaseMode: embeddedfor the existing paths.Reviewed by Cursor Bugbot for commit 8fc8aa7. Bugbot is set up for automated code reviews on this repo. Configure here.