Skip to content

feat(ENG-14033): add api key rule resource - #240

Open
daniellskelton wants to merge 4 commits into
masterfrom
ENG-14033-api-key-rules-support
Open

daniellskelton wants to merge 4 commits into
masterfrom
ENG-14033-api-key-rules-support

Conversation

@daniellskelton

@daniellskelton daniellskelton commented Sep 9, 2026

Copy link
Copy Markdown

Description

  • Adds a cloudsmith_api_key_rule resource, rules set a maximum permitted age for API keys belonging to an organization, per account type.

  • Bumps cloudsmith-api-go to v0.0.64 for the generated bindings.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Tests
  • Other (please describe)

Testing

  • Manually verified against a local instance with dev_overrides: create, read, update, delete and import, plus a clean no-op plan after import.

  • Added acceptance tests

Copilot AI lite review requested due to automatic review settings September 9, 2026 11:24
@daniellskelton
daniellskelton requested review from a team as code owners September 9, 2026 11:24
@daniellskelton
daniellskelton marked this pull request as draft September 9, 2026 11:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support for managing Cloudsmith organization API key expiry rules via Terraform by introducing a new cloudsmith_api_key_rule resource and documenting its usage, alongside updating the generated API bindings dependency.

Changes:

  • Added cloudsmith_api_key_rule Terraform resource (CRUD + import) backed by the Orgs API key rules endpoints.
  • Registered the new resource in the provider and added user-facing documentation.
  • Bumped github.com/cloudsmith-io/cloudsmith-api-go to v0.0.64.

Reviewed changes

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

Show a summary per file
File Description
go.mod Bumps cloudsmith-api-go to v0.0.64.
go.sum Updates checksums for the cloudsmith-api-go version bump.
docs/resources/api_key_rule.md Adds documentation and examples for cloudsmith_api_key_rule.
cloudsmith/resource_api_key_rule.go Implements the new resource schema and CRUD/import behavior.
cloudsmith/provider.go Registers cloudsmith_api_key_rule in the provider resources map.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cloudsmith/provider.go
Comment thread cloudsmith/resource_api_key_rule.go
Comment thread cloudsmith/resource_api_key_rule.go
@daniellskelton
daniellskelton marked this pull request as ready for review September 9, 2026 14:29
Comment thread cloudsmith/resource_api_key_rule.go Outdated
Comment thread docs/resources/api_key_rule.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants