Skip to content

Conversation

@taohaowang
Copy link

@taohaowang taohaowang commented Jan 29, 2026

Release Notes

Breaking Changes
NA

New Features
Global API Key Create Support In Cli

Bug Fixes
NA

Checklist

  • I have successfully built and used a custom CLI binary, without linter issues from this PR.
  • I have clearly specified in the What section below whether this PR applies to Confluent Cloud, Confluent Platform, or both.
  • I have verified this PR in Confluent Cloud pre-prod or production environment, if applicable.
  • I have verified this PR in Confluent Platform on-premises environment, if applicable.
  • I have attached manual CLI verification results or screenshots in the Test & Review section below.
  • I have added appropriate CLI integration or unit tests for any new or updated commands and functionality.
  • I confirm that this PR introduces no breaking changes or backward compatibility issues.
  • I have indicated the potential customer impact if something goes wrong in the Blast Radius section below.
  • I have put checkmarks below confirming that the feature associated with this PR is enabled in:
    • Confluent Cloud prod
    • Confluent Cloud stag
    • Confluent Platform
    • Check this box if the feature is enabled for certain organizations only

What

Confluent Cloud
Support UAK - Global API key creation

Blast Radius

Low blast radius - only impact UAK - global API key (which is a new feature)
This feature is not yet enabled in prod.

References

https://confluentinc.atlassian.net/browse/IDENTITY-5922

Test & Review

./dist/confluent_darwin_arm64_v8.0/confluent api-key create --resource global
It may take a couple of minutes for the API key to be ready.
Save the API key and secret. The secret is not retrievable later.
+------------+------------------------------------------------------------------+
| API Key    | YEKD6II4MMX4MGKH                                                 |
| API Secret | <redacted> |
+------------+------------------------------------------------------------------+

Copilot AI review requested due to automatic review settings January 29, 2026 19:25
@taohaowang taohaowang requested a review from a team as a code owner January 29, 2026 19:25
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for creating Global API keys in the Confluent CLI, extending the existing API key management functionality to support a new resource type alongside Cloud, Flink, and Tableflow API keys.

Changes:

  • Added "global" as a new resource type constant and integrated it throughout the API key lifecycle (create, list, lookup)
  • Updated command documentation and help text to reference Global API keys
  • Added test coverage for the new Global API key resource type

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/resource/resource.go Added Global constant and updated LookupType function to recognize "global" as a valid resource type
internal/api-key/command_test.go Added test case for Global API key resource type resolution
internal/api-key/command_list.go Updated list and getResourceId functions to handle Global resource type
internal/api-key/command_create.go Added example for Global API key creation and case handling in create function
internal/api-key/command.go Updated help text, autocomplete suggestions, and resource type resolution to include Global API keys

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqube-confluent
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants