Skip to content

Minor improvement in Pinot config classes#13422

Merged
ebyhr merged 2 commits intotrinodb:masterfrom
ebyhr:ebi/pinot-config
Aug 1, 2022
Merged

Minor improvement in Pinot config classes#13422
ebyhr merged 2 commits intotrinodb:masterfrom
ebyhr:ebi/pinot-config

Conversation

@ebyhr
Copy link
Member

@ebyhr ebyhr commented Jul 29, 2022

Description

Minor improvement in Pinot config classes

Documentation

(x) No documentation is needed.

Release notes

(x) Release notes entries required with the following suggested text:

# Pinot
* Redact the value of `pinot.grpc.tls.keystore-password` and `pinot.grpc.tls.truststore-password` in the server log. ({issue}`13422`)

@cla-bot cla-bot bot added the cla-signed label Jul 29, 2022
@ebyhr ebyhr requested review from Praveen2112 and hashhar July 29, 2022 22:04
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Some question.

Comment on lines 197 to 208
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config seems to allow specifying a keystore and truststore type but without any paths to the actual keystore and trust-store. i.e. should we assume if any one of the keystore/truststore property is specified then at-least the keystore/truststore type and path must be present? password is always optional.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can pass the keystore/truststore type even as Optional variable like we do in Kafka connector. Plus TlsUtils#extractTlsConfig would use a default values if the specific config properties are missing. @hashhar WDYT ?

@ebyhr ebyhr force-pushed the ebi/pinot-config branch 2 times, most recently from 9d42405 to 4ec5ee5 Compare August 1, 2022 07:18
* Use File type in keystorePath and truststorePath
* Add missing annotations
* Return Optional which the property is nullable
@ebyhr ebyhr force-pushed the ebi/pinot-config branch from 4ec5ee5 to de36fe6 Compare August 1, 2022 11:33
@ebyhr
Copy link
Member Author

ebyhr commented Aug 1, 2022

@hashhar Updated.

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ebyhr ebyhr merged commit 8076203 into trinodb:master Aug 1, 2022
@ebyhr ebyhr deleted the ebi/pinot-config branch August 1, 2022 21:56
@ebyhr ebyhr mentioned this pull request Aug 1, 2022
@github-actions github-actions bot added this to the 392 milestone Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants