confluentinc / cli

CLI for Confluent Cloud and Confluent Platform
https://docs.confluent.io/confluent-cli/current/overview.html
Other
56 stars 10 forks source link

decryptbytes: procdecryptdata: The parameter is incorrect when consuming using api keys in the command #2412

Open natalia-ramos-bzy opened 1 year ago

natalia-ramos-bzy commented 1 year ago

There's an error when consuming a topic using api keys in the command

confluent kafka topic consume <topicName> --from-beginning --schema-registry-api-key <srApiKey> --schema-registry-api-secret <srApiSecret> --api-key <kafkaApiKey> --api-secret <kafkaApiSecret> --environment <env> --cluster <cluster>
Error: failed to create consumer: decryptbytes: procdecryptdata: The parameter is incorrect.
confluent - Confluent CLI

Version:     v3.40.0
Git Ref:     299e722ef
Build Date:  2023-11-02T23:32:56Z
Go Version:  go1.21.0 X:boringcrypto (windows/amd64)
Development: false
MuweiHe commented 12 months ago

Hi, we received a similar issue where it was fixed by creating a new pair of api-key. You may want to try that and see if it can resolve the issue for now. I'll continue investigate. The issue is probably in the process of encrypting/decrypting credentials using windows dpapi.

MuweiHe commented 12 months ago

There's very limited info we could get on this issue. I will do a release this week to add more traces/logs in this command, and can you provide me the output / traces you see using the newer version so I can debug further? Will comment here when the new version is out

MuweiHe commented 11 months ago

hi @natalia-ramos-bzy are you still seeing this issue? You may want to update to latest cli release, and run the same command with --unsafe-trace. Please provide me without the logs output and that will help us investigate. Thanks! Please send a message to cli-team@confluent.io including your logs

natalia-ramos-bzy commented 11 months ago

Hi @MuweiHe I'm using v3.42.0 and I'm still having this issue. However I was unable to send the traces in an email: image