-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add Flag for Custom Authenticators in Cassandra Storage #5628
Conversation
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5628 +/- ##
==========================================
+ Coverage 96.34% 96.36% +0.01%
==========================================
Files 327 327
Lines 16016 16026 +10
==========================================
+ Hits 15431 15443 +12
+ Misses 407 405 -2
Partials 178 178
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
@yurishkuro where can i add cli flags ? can you specify the file location where we define flags for cassendra ? |
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
@yurishkuro where is this |
please write PR title according to the contributing guidelines |
done |
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
pkg/cassandra/config/config.go
Outdated
Basic BasicAuthenticator `yaml:"basic" mapstructure:",squash"` | ||
// TODO: add more auth types | ||
Basic BasicAuthenticator `yaml:"basic" mapstructure:",squash"` | ||
AllowedAuthenticators []string `yaml:"allowed_authenticators" mapstructure:"allowed_authenticators"` |
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.
AllowedAuthenticators should be inside BasicAuthenticator struct. And lets add a comment to it
// The comma-separated list of allowed password authenticators for Cassandra.
// If none are specified, there is a default "approved" list that is used
// https://github.com/gocql/gocql/blob/34fdeebefcbf183ed7f916f931aa0586fdaa1b40/conn.go#L27
// If a non-empty list is provided, only specified authenticators are allowed.
// See also https://github.com/jaegertracing/jaeger/issues/5627#issuecomment-2174454633
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
@@ -62,6 +62,9 @@ func (*CassandraStorageIntegration) initializeCassandraFactory(t *testing.T, fla | |||
|
|||
func (s *CassandraStorageIntegration) initializeCassandra(t *testing.T) { | |||
f := s.initializeCassandraFactory(t, []string{ | |||
"--cassandra.basic.allowed-authenticators=", | |||
"--cassandra.password=password", | |||
"--cassandra.username=username", |
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.
why does this work? Are these the default values for username/password in Cassandra image
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.
Ah, I think it's because we have no auth configured on the server, so the extra auth client might send is just getting ignored.
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test