Skip to content

Conversation

@mattisonchao
Copy link
Member

Motivation

Support custom metadata in the token.

@mattisonchao mattisonchao self-assigned this Sep 24, 2025
@mattisonchao mattisonchao requested a review from a team as a code owner September 24, 2025 02:06
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 custom metadata in API key tokens. The change allows users to include custom key-value pairs in the API key configuration that will be embedded in the generated token.

  • Adds customized_metadata field to both API key resource and data source schemas
  • Updates dependency versions in go.mod
  • Provides example usage in the terraform configuration

Reviewed Changes

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

Show a summary per file
File Description
go.mod Updates various dependency versions to support the new functionality
examples/apikey/main.tf Demonstrates usage of the new customized_metadata field
cloud/resource_apikey.go Implements create and read operations for custom metadata
cloud/provider.go Adds description for the new customized_metadata field
cloud/data_source_apikey.go Adds custom metadata support to the data source

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mattisonchao mattisonchao merged commit 0abae22 into main Sep 24, 2025
1 check passed
@mattisonchao mattisonchao deleted the feat.apikey.metadata branch September 24, 2025 05:11
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.

3 participants