Associate terraform state changes with pipeline/job/MR/commit whenever possible
Release notes
Problem to solve
As a Lead Engineer, I would like to see what action changed the terraform state, so that I can debug the Terraform state or provide compliance reports.
Intended users
User experience goal
The GitLab Managed Terraform state views show data about the source of a change. This might include the CI job and pipeline that applied the changes, the MR and git commit that started the pipeline.
Proposal
Some ideas from @mattkasa and @tigerwnz:
- we probably don't want to deviate from the upstream http Terraform backend
- we can add some decorating
curl
calls in our wrapper script, but it's a rather fragile solution - we could code the pipeline id in the CI auth token, and get the needed data from that
Tasks
- provide the backend
- provide the designs
- create the frontend
Further details
Permissions and Security
Documentation
Availability & Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Is this a cross-stage feature?
Links / references
Design: Terraform State listing Design Epic
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.