Open rjudin opened 4 years ago
@brunodomenici can you please help with that?
Hi @rjudin, unfortunately I can't work on this right now. I'm not sure I got the issue, but I know that Confluent is changing lots of things on this matter and I think worth wait the official Confluent Cloud REST API version https://confluent.cloud/api/docs
Issue
api-key should have Resource Type, otherwise empty value disallow access to specified resource
cloud
- when created withoutcluster_id
orlogical_clusters
parameterskafka
- when created with specifiedcluster_id
orlogical_clusters
parametersAction
Please add resource_type assignment based on verified conditions
Example
3 types of api keys [1] were created:
cloud
- wide access to cloud resources (including env, clusters, topics, etc)NULL
- expected to grant access SA to the desired clusterkafka
- expected to grant access SA to the desired clusterVerification:
create a topic at
lkc-clus1
cluster:SUCCESS
👍FAILED
😟SUCCESS
👍[1] ccloud api-key list
[2] terraform resource confluentcloud_api_key
[3] cli-reference ccloud service-account list
ccloud api-key create --resource lkc-clus1 --service-account 123456 --description CLI-to-cluster