confluentinc / confluentinc/confluent-kubernetes-examples
kafka rest API request failed: Unauthorized (0)
- Dominant language
- Shell
- Stars
- 72
- Forks
- 201
- Avg merge
- 10h 2m
- Merged PRs (30d)
- 2
Description
I followed all the steps provided for the example "production-secure-deploy" but restproxy is not starting up and i am getting Unauthorized error
4m15s Warning FailedToDiscover kafkarestclass/default waiting for at-least one kafka pod availability
5s Warning FailedToDiscover kafkarestclass/default kafka cluster [kafka] in not in running state
2m43s Warning Warning kafkarestclass/default https://kafka.confluent.svc.cluster.local:8090/kafka/v3 dial tcp 10.64.1.53:8090: connect: connection refused
100s Warning Warning kafkarestclass/default https://kafka.confluent.svc.cluster.local:8090/kafka/v3 dial tcp 10.64.2.60:8090: connect: connection refused
110s Warning Warning kafkarestclass/default https://kafka.confluent.svc.cluster.local:8090/kafka/v3 dial tcp 10.64.0.59:8090: connect: connection refused
15s Warning Warning kafkarestclass/default kafka rest API request failed: Unauthorized (0)
I did create the rest-credential from the file bearer.txt as defined in the document
kubectl create secret generic rest-credential --from-file=bearer.txt=$TUTORIAL_HOME/bearer.txt --from-file=basic.txt=$TUTORIAL_HOME/bearer.txt --namespace confluent

What could be the reason for this Unauthorized error
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the production-secure-deploy example and reviewing the Kafka REST API discovery warnings, especially the connection-refused and Unauthorized messages. Check the rest-credential secret creation using bearer.txt and compare it with the REST proxy configuration; done means the REST proxy starts and Kafka REST API discovery succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kafka, kubernetes
- Domain
- api, authentication, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100