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

Update grafana/grafana requirement from ~> 2.0 to ~> 3.0 in /terraform/environments/observability-platform/modules/grafana/xray-source #6080

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 15, 2024

Updates the requirements on grafana/grafana to permit the latest version.

Release notes

Sourced from grafana/grafana's releases.

v3.0.0

Recommended upgrade procedure

Bump the Terraform provider to the latest v2 version, apply, then upgrade to v3 and remove/replace all the attributes that have been removed.

Major features

Terraform Config Generation (Alpha version)

See the README here.

This is a new tool that will be developed further in future releases. It can be pointed at a Grafana instance or at a Grafana Cloud account and it will find all Grafana provider resources and generate the Terraform config for them.

Example (with the binary from this release):

./terraform-provider-grafana-generate_3.0.0_darwin_arm64 --output-dir test --grafana-auth=admin:admin --grafana-url=http://localhost:3000/

Grafana 11 Support

Some Terraform features had to be removed to enable full Grafana 11 support. All resources should now work with Grafana 11 (Cloud, on-prem Enterprise and on-prem OSS).

Breaking changes

Removed the global (provider-level) org_id setting

Reasons for its removal:

  • The attribute was already added on each resource, so it doesn't remove any functionality
  • It's irrelevant to all parts of the provider other than Grafana resources, possibly causing confusing since there's also an org concept on cloud resources
  • Even for Grafana, it does not apply to all resources. For example, users are not org-scoped. By setting it on a resource level, this is much better defined
  • When using it globally, it prevents looping on multiple orgs. Ex: Create dashboards for a list of orgs. Providers cannot be created dynamically

Removed support for old ID separators (converge on :)

This makes importing resources consistent across all parts of the provider. For example:

terraform import grafana_folder.test orgID:folderUID
terraform import grafana_dashboard.test orgID:dashboardUID

Removed deprecated resources

  • grafana_api_key: Use grafana_service_account instead
  • grafana_cloud_stack_api_key: Use grafana_cloud_stack_service_account instead
  • grafana_cloud_api_key: Use grafana_cloud_access_policy instead
  • grafana_oncall_action : Use grafana_oncall_outgoing_webhook instead

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner May 15, 2024 00:19
@dependabot dependabot bot added dependencies Pull requests that update a dependency file terraform Pull requests that update Terraform code labels May 15, 2024
@github-actions github-actions bot added the environments-repository Used to exclude PRs from this repo in our Slack PR update label May 15, 2024
Copy link
Contributor

Trivy Scan Success

Show Output ```hcl

Trivy will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source


Running Trivy in terraform/environments/observability-platform/modules/grafana/xray-source
2024-05-15T00:22:01Z INFO Need to update DB
2024-05-15T00:22:01Z INFO Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-05-15T00:22:03Z INFO Vulnerability scanning is enabled
2024-05-15T00:22:03Z INFO Misconfiguration scanning is enabled
2024-05-15T00:22:03Z INFO Need to update the built-in policies
2024-05-15T00:22:03Z INFO Downloading the built-in policies...
50.41 KiB / 50.41 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-05-15T00:22:03Z INFO Secret scanning is enabled
2024-05-15T00:22:03Z INFO If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-05-15T00:22:03Z INFO Please see also https://aquasecurity.github.io/trivy/v0.51/docs/scanner/secret/#recommendation for faster secret detection
2024-05-15T00:22:04Z INFO Number of language-specific files num=0
2024-05-15T00:22:04Z INFO Detected config files num=1
trivy_exitcode=0

</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>

```hcl

*****************************

Checkov will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source

*****************************

Running Checkov in terraform/environments/observability-platform/modules/grafana/xray-source
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39

checkov_exitcode=0

CTFLint Scan Failed

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.5.0)
tflint will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source

*****************************

Running tflint in terraform/environments/observability-platform/modules/grafana/xray-source
Excluding the following checks: terraform_unused_declarations
1 issue(s) found:

Warning: terraform "required_version" attribute is required (terraform_required_version)

  on  line 0:
   (source code not available)

Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.5.0/docs/rules/terraform_required_version.md

tflint_exitcode=2

Trivy Scan Success

Show Output
*****************************

Trivy will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source

*****************************

Running Trivy in terraform/environments/observability-platform/modules/grafana/xray-source
2024-05-15T00:22:01Z	INFO	Need to update DB
2024-05-15T00:22:01Z	INFO	Downloading DB...	repository="ghcr.io/aquasecurity/trivy-db:2"
2024-05-15T00:22:03Z	INFO	Vulnerability scanning is enabled
2024-05-15T00:22:03Z	INFO	Misconfiguration scanning is enabled
2024-05-15T00:22:03Z	INFO	Need to update the built-in policies
2024-05-15T00:22:03Z	INFO	Downloading the built-in policies...
50.41 KiB / 50.41 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-05-15T00:22:03Z	INFO	Secret scanning is enabled
2024-05-15T00:22:03Z	INFO	If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-05-15T00:22:03Z	INFO	Please see also https://aquasecurity.github.io/trivy/v0.51/docs/scanner/secret/#recommendation for faster secret detection
2024-05-15T00:22:04Z	INFO	Number of language-specific files	num=0
2024-05-15T00:22:04Z	INFO	Detected config files	num=1
trivy_exitcode=0

Updates the requirements on [grafana/grafana](https://github.com/grafana/terraform-provider-grafana) to permit the latest version.
- [Release notes](https://github.com/grafana/terraform-provider-grafana/releases)
- [Changelog](https://github.com/grafana/terraform-provider-grafana/blob/main/CHANGELOG.md)
- [Commits](grafana/terraform-provider-grafana@v2.0.0...v3.0.0)

---
updated-dependencies:
- dependency-name: grafana/grafana
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/terraform/terraform/environments/observability-platform/modules/grafana/xray-source/grafana/grafana-tw-3.0 branch from b98389b to 8e56f08 Compare May 22, 2024 08:13
Copy link
Contributor

Trivy Scan Success

Show Output ```hcl

Trivy will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source


Running Trivy in terraform/environments/observability-platform/modules/grafana/xray-source
2024-05-22T08:15:49Z INFO Need to update DB
2024-05-22T08:15:49Z INFO Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-05-22T08:15:52Z INFO Vulnerability scanning is enabled
2024-05-22T08:15:52Z INFO Misconfiguration scanning is enabled
2024-05-22T08:15:52Z INFO Need to update the built-in policies
2024-05-22T08:15:52Z INFO Downloading the built-in policies...
50.41 KiB / 50.41 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-05-22T08:15:52Z INFO Secret scanning is enabled
2024-05-22T08:15:52Z INFO If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-05-22T08:15:52Z INFO Please see also https://aquasecurity.github.io/trivy/v0.51/docs/scanner/secret/#recommendation for faster secret detection
2024-05-22T08:15:53Z INFO Number of language-specific files num=0
2024-05-22T08:15:53Z INFO Detected config files num=1
trivy_exitcode=0

</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>

```hcl

*****************************

Checkov will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source

*****************************

Running Checkov in terraform/environments/observability-platform/modules/grafana/xray-source
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39

checkov_exitcode=0

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.5.0)
tflint will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source

*****************************

Running tflint in terraform/environments/observability-platform/modules/grafana/xray-source
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0

Trivy Scan Success

Show Output
*****************************

Trivy will check the following folders:
terraform/environments/observability-platform/modules/grafana/xray-source

*****************************

Running Trivy in terraform/environments/observability-platform/modules/grafana/xray-source
2024-05-22T08:15:49Z	INFO	Need to update DB
2024-05-22T08:15:49Z	INFO	Downloading DB...	repository="ghcr.io/aquasecurity/trivy-db:2"
2024-05-22T08:15:52Z	INFO	Vulnerability scanning is enabled
2024-05-22T08:15:52Z	INFO	Misconfiguration scanning is enabled
2024-05-22T08:15:52Z	INFO	Need to update the built-in policies
2024-05-22T08:15:52Z	INFO	Downloading the built-in policies...
50.41 KiB / 50.41 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-05-22T08:15:52Z	INFO	Secret scanning is enabled
2024-05-22T08:15:52Z	INFO	If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-05-22T08:15:52Z	INFO	Please see also https://aquasecurity.github.io/trivy/v0.51/docs/scanner/secret/#recommendation for faster secret detection
2024-05-22T08:15:53Z	INFO	Number of language-specific files	num=0
2024-05-22T08:15:53Z	INFO	Detected config files	num=1
trivy_exitcode=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file environments-repository Used to exclude PRs from this repo in our Slack PR update terraform Pull requests that update Terraform code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants