Skip to content
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

TLS Port for Minion #12943

Merged
merged 3 commits into from
Apr 17, 2024
Merged

TLS Port for Minion #12943

merged 3 commits into from
Apr 17, 2024

Conversation

suddendust
Copy link
Contributor

This PR adds a TLS port to minion, just like other components. With this, we can communicate with minion using https. In addition to this, we should add this config to minions:

pinot.minion.adminapi.access.protocols=internal
pinot.minion.adminapi.access.protocols.internal.protocol=https
pinot.minion.adminapi.access.protocols.internal.port=9500

And export port 9500 in the headless svc.

@codecov-commenter
Copy link

codecov-commenter commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 62.22%. Comparing base (59551e4) to head (fd66fae).
Report is 317 commits behind head on master.

Files Patch % Lines
...ava/org/apache/pinot/minion/BaseMinionStarter.java 0.00% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12943      +/-   ##
============================================
+ Coverage     61.75%   62.22%   +0.47%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2502      +66     
  Lines        133233   136466    +3233     
  Branches      20636    21120     +484     
============================================
+ Hits          82274    84912    +2638     
- Misses        44911    45279     +368     
- Partials       6048     6275     +227     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.17% <0.00%> (+0.46%) ⬆️
java-21 62.08% <0.00%> (+0.46%) ⬆️
skip-bytebuffers-false 62.21% <0.00%> (+0.46%) ⬆️
skip-bytebuffers-true 62.04% <0.00%> (+34.31%) ⬆️
temurin 62.22% <0.00%> (+0.47%) ⬆️
unittests 62.21% <0.00%> (+0.47%) ⬆️
unittests1 46.69% <ø> (-0.20%) ⬇️
unittests2 28.01% <0.00%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -116,6 +117,7 @@ public void init(PinotConfiguration config)
_instanceId = CommonConstants.Helix.PREFIX_OF_MINION_INSTANCE + _hostname + "_" + _port;
}
_listenerConfigs = ListenerConfigUtil.buildMinionConfigs(_config);
_tlsPort = ListenerConfigUtil.findLastTlsPort(_listenerConfigs, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be -1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is 0 for other participant types, shall we change for them as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, you mean all other components generating tls port for admin apis if not specified?

I checked broker is using -1.

@xiangfu0 xiangfu0 merged commit 2f3db6e into apache:master Apr 17, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants