Skip to content

Commit

Permalink
Merge pull request jfrog#826 from jfrog/migrate-certificate-resource
Browse files Browse the repository at this point in the history
Migrate artifactory_certificate resource to terraform-plugin-framework
  • Loading branch information
alexhung authored Oct 13, 2023
2 parents e0a11f8 + 539d7f2 commit ae1a3fd
Show file tree
Hide file tree
Showing 6 changed files with 456 additions and 217 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 9.6.0 (Oct 13, 2023). Tested on Artifactory 7.68.14 with Terraform CLI v1.6.1

IMPROVEMENTS:

* resource/artifactory_certificate is migrated to Plugin Framework. PR: [#826](https://github.com/jfrog/terraform-provider-artifactory/pull/826)

## 9.5.1 (Oct 12, 2023). Tested on Artifactory 7.68.14 with Terraform CLI v1.6.1

SECURITY:
Expand Down
3 changes: 2 additions & 1 deletion docs/resources/certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ resource "artifactory_remote_maven_repository" "my-remote" {
The following arguments are supported:

* `alias` - (Required) Name of certificate.
* `content` - (Required) PEM-encoded client certificate and private key.
* `content` - (Optional) PEM-encoded client certificate and private key. Cannot be set with `file` attribute simultaneously.
* `file` - (Optional) Path to the PEM file. Cannot be set with `content` attribute simultaneously.

## Attribute Reference

Expand Down
1 change: 1 addition & 0 deletions pkg/artifactory/provider/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func (p *ArtifactoryProvider) Resources(ctx context.Context) []func() resource.R
security.NewPermissionTargetResource,
security.NewGlobalEnvironmentResource,
security.NewDistributionPublicKeyResource,
security.NewCertificateResource,
configuration.NewLdapSettingResource,
configuration.NewLdapGroupSettingResource,
configuration.NewBackupResource,
Expand Down
1 change: 0 additions & 1 deletion pkg/artifactory/provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func resourcesMap() map[string]*schema.Resource {
"artifactory_local_repository_single_replication": replication.ResourceArtifactoryLocalRepositorySingleReplication(),
"artifactory_local_repository_multi_replication": replication.ResourceArtifactoryLocalRepositoryMultiReplication(),
"artifactory_remote_repository_replication": replication.ResourceArtifactoryRemoteRepositoryReplication(),
"artifactory_certificate": security.ResourceArtifactoryCertificate(),
"artifactory_api_key": security.ResourceArtifactoryApiKey(),
"artifactory_access_token": security.ResourceArtifactoryAccessToken(),
"artifactory_general_security": configuration.ResourceArtifactoryGeneralSecurity(),
Expand Down
Loading

0 comments on commit ae1a3fd

Please sign in to comment.