cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open natalia-ramos-bzy opened this issue 2 years ago • 4 comments

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

natalia-ramos-bzy avatar Nov 10 '23 09:11 natalia-ramos-bzy

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 avatar Nov 13 '23 23:11 MuweiHe

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 avatar Nov 13 '23 23:11 MuweiHe

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 [email protected] including your logs

MuweiHe avatar Nov 30 '23 18:11 MuweiHe

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

natalia-ramos-bzy avatar Dec 01 '23 10:12 natalia-ramos-bzy