Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perpetual diff when creating an empty platform_permission #199

Open
6 tasks done
critchtionary opened this issue Jan 29, 2025 · 0 comments
Open
6 tasks done

Perpetual diff when creating an empty platform_permission #199

critchtionary opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@critchtionary
Copy link
Contributor

Describe the bug
When creating a platform_permission resource that grants no access to anything, the permission is created correctly but subsequent plan commands show the permission as out of sync.

Resource:

resource "platform_permission" "empty" {
  name = "empty"

  artifact = {
    targets = []
  }
}

Initial apply output:

  # platform_permission.empty will be created
  + resource "platform_permission" "empty" {
      + artifact = {
          + targets = []
        }
      + name     = "empty"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Subsequent plan output:

  # platform_permission.empty will be updated in-place
  ~ resource "platform_permission" "empty" {
      + artifact = {
          + targets = []
        }
        name     = "empty"
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Requirements for and issue

  • A description of the bug
  • A fully functioning terraform snippet that can be copy & pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.
  • Your version of Artifactory - 7.98.10
  • Is your Artifactory Cloud or Self-Hosted - Self-hosted
  • Your version of Terraform CLI - OpenTofu 1.8.8
  • Your version of Terraform provider - 2.2.1

Expected behavior
plan should show no changes.

Additional context
The use case we have for wanting an empty permission is to remove everything configured on the Anything permission that is automatically created with new Artifactory installs.

@critchtionary critchtionary added the bug Something isn't working label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants