-
Notifications
You must be signed in to change notification settings - Fork 12
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
[CLI-3355] Fix some confluent kafka topic consume
errors
#2970
Conversation
🎉 All Contributor License Agreements have been signed. Ready to merge. |
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.
Can we also handle the auth.GetDataplaneToken(c.Context)
in consumeOnPrem()
and produceOnPrem()
?
Discussed with Steven, we'll track the CP specific issue in CLI-3360. |
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.
Approved.
Release Notes
Breaking Changes
New Features
Bug Fixes
confluent kafka topic consume
confluent kafka topic [produce | consume] --bootstrap
Checklist
What
GetDataplaneToken
call will fail for users consuming from a cloud cluster using--bootstrap
while logged out, so this PR adds a check that the user is logged in before attempting to get the tokenReferences
Test & Review
Tested with the following.
confluent kafka topic consume -b confluent-audit-log-events
confluent kafka topic produce string-topic --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET
confluent kafka topic produce avro-topic --value-format avro --schema 100004 --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET --schema-registry-endpoint $SR_ENDPOINT --schema-registry-api-key $SR_KEY --schema-registry-api-secret $SR_SECRET
confluent kafka topic produce json-topic --value-format jsonschema --schema 100005 --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET --schema-registry-endpoint $SR_ENDPOINT --schema-registry-api-key $SR_KEY --schema-registry-api-secret $SR_SECRET
confluent kafka topic produce protobuf-topic --value-format protobuf --schema 100007 --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET --schema-registry-endpoint $SR_ENDPOINT --schema-registry-api-key $SR_KEY --schema-registry-api-secret $SR_SECRET
confluent kafka topic consume confluent-audit-log-events -b --bootstrap $AUDIT_CLUSTER_ENDPOINT --api-key $AUDIT_KEY --api-secret $AUDIT_SECRET
confluent kafka topic consume string-topic -b --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET
confluent kafka topic consume avro-topic -b --value-format avro --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET --schema-registry-endpoint $SR_ENDPOINT --schema-registry-api-key $SR_KEY --schema-registry-api-secret $SR_SECRET
confluent kafka topic consume json-topic -b --value-format jsonschema --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET --schema-registry-endpoint $SR_ENDPOINT --schema-registry-api-key $SR_KEY --schema-registry-api-secret $SR_SECRET
confluent kafka topic consume protobuf-topic -b --value-format protobuf --bootstrap $ENDPOINT --api-key $CLUSTER_KEY --api-secret $CLUSTER_SECRET --schema-registry-endpoint $SR_ENDPOINT --schema-registry-api-key $SR_KEY --schema-registry-api-secret $SR_SECRET