-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-33260 Allow a BM DFS service+dafilesrv to be secured #19422
base: candidate-9.10.x
Are you sure you want to change the base?
HPCC-33260 Allow a BM DFS service+dafilesrv to be secured #19422
Conversation
6eeda69
to
181a4aa
Compare
1) Ensure BM DFS meta is remapped to point to the BM dafilesrv and correct secure port. 2) Allow dafilesrv to be configured with a CA/certs/trusted peers, so that it can be configured to only accepts connections from trusted clients. Signed-off-by: Jake Smith <[email protected]>
181a4aa
to
c3a3002
Compare
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.
Looks good. I think one leak though
IPropertyTree *cert = getComponentConfigSP()->getPropTree("cert"); | ||
if (cert) | ||
{ | ||
Owned<ISyncedPropertyTree> certSyncedWrapper = createSyncedPropertyTree(cert); |
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.
minor: cert will be leaked - line 151 should be an owned instance or call queryPropTree
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.
whoops, should be owned, to avoid theoretical config change and invalidation of it before being used.
Will change.
fs/dafilesrv/dafilesrv.cpp
Outdated
@@ -590,6 +590,15 @@ int main(int argc, const char* argv[]) | |||
if (componentExpert) | |||
synchronizePTree(expert, componentExpert, false, true); | |||
|
|||
// merge in bare-metal dafilesrv component cert settings into newConfig | |||
IPropertyTree *componentCert = nullptr; |
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.
trivial: could combine with the next line (I wouldn't have commented if not only comment).
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.
should be combined. Will change.
Add check for "cert" configuration to avoid legacy environment.conf check. Review changes Signed-off-by: Jake Smith <[email protected]>
@ghalliday - please review 2nd commit. It includes the review changes, but also a change that I had in my docker testing branch that I missed/not been merged. |
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.
Please merge once mark has reviewed and code is squashed.
Type of change:
Checklist:
Smoketest:
Testing: