-
Notifications
You must be signed in to change notification settings - Fork 552
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
k8s: broker_tls is enabled only if internal listener has tls #8057
Merged
Conversation
This file contains 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
RafalKorepta
previously approved these changes
Jan 5, 2023
BenPope
reviewed
Jan 5, 2023
@@ -251,6 +252,9 @@ func (cc *ClusterCertificates) prepareAPI( | |||
return tlsDisabledAPICertificates(), nil | |||
} | |||
result := tlsEnabledAPICertificates(cc.pandaCluster.Namespace) | |||
if internalTLSListener != nil { | |||
result.internalTlsEnabled = true |
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.
I don't know the code very well, but perhaps:
Suggested change
result.internalTlsEnabled = true | |
tls = internalTLSListener.GetTLS() | |
if tls != nil { | |
result.internalTlsEnabled = tls.Enabled | |
} |
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.
func getInternalTLSListener(listeners []APIListener) APIListener {
tlsListeners := getTLSListeners(listeners)
for _, l := range tlsListeners {
if ext := l.GetExternal(); ext == nil || !ext.Enabled {
return l
}
}
return nil
}
func getTLSListeners(listeners []APIListener) []APIListener {
res := []APIListener{}
for i, el := range listeners {
tlsConfig := el.GetTLS()
if tlsConfig != nil && tlsConfig.Enabled {
res = append(res, listeners[i])
}
}
return res
}
it's already handled here
6 tasks
joejulian
force-pushed
the
av/fix-broker-tls
branch
from
January 5, 2023 22:01
28cb1de
to
dfa0bd5
Compare
alenkacz
added a commit
to alenkacz/redpanda
that referenced
this pull request
Jan 6, 2023
This regression has been fixed in redpanda-data#8057.
6 tasks
RafalKorepta
approved these changes
Jan 6, 2023
alenkacz
added a commit
to alenkacz/redpanda
that referenced
this pull request
Jan 6, 2023
This regression has been fixed in redpanda-data#8057.
/backport v22.3.x |
alenkacz
added a commit
to alenkacz/redpanda
that referenced
this pull request
Jan 6, 2023
This regression has been fixed in redpanda-data#8057.
vbotbuildovich
pushed a commit
to vbotbuildovich/redpanda
that referenced
this pull request
Mar 1, 2023
This regression has been fixed in redpanda-data#8057. (cherry picked from commit 7af6a9a)
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 2, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 2, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 2, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 3, 2023
This regression has been fixed in redpanda-data#8057.
RafalKorepta
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 6, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 10, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 10, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 10, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Mar 24, 2023
This regression has been fixed in redpanda-data#8057.
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Apr 12, 2023
This regression has been fixed in redpanda-data#8057. (cherry picked from commit 7af6a9a)
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Apr 12, 2023
This regression has been fixed in redpanda-data#8057. (cherry picked from commit 7af6a9a)
joejulian
pushed a commit
to joejulian/redpanda
that referenced
this pull request
Apr 13, 2023
This regression has been fixed in redpanda-data#8057. (cherry picked from commit 7af6a9a)
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.
currently we set broker_tls to enabled even if internal listener does not have tls.
Backports Required
UX Changes
None
Release Notes
Bug Fixes