Upgrade lockbox to v1.3.0
What does this MR do and why?
Upgrades lockbox to the latest version.
How to set up and validate locally (Terraform state)
Requirements:
- GDK with object storage enabled
- Terraform CLI installed
In your GDK:
- Create an empty project in your GDK
- Clone the project locally, and add the following Terraform config in a file named
main.tf
:terraform { backend "http" { } } resource "local_file" "test" { content = timestamp() filename = "${path.module}/foo/test.txt" }
- From your project sidebar in GDK, go to Operate -> Terraform states, and click "Copy terraform init command"
- Execute the copied command from a terminal in the project directory.
- Execute
terraform plan
andterraform apply
a few times - successful operations mean the (encrypted) state file is being read and re-saved correctly.
How to set up and validate locally (Secure files)
- Create a new file, for example:
echo "Hello World" >> ~/Desktop/hello.txt
-
Go to any project in your local GDK. Go to project settings, CI/CD, Secure Files. Click expand, and then click Upload File and upload the file you just created.
-
Once that completes, pull up a rails console and run:
secure_file = Ci::SecureFile.last
secure_file.file.file.read # returns the encrypted contents of the file
Digest::SHA256.hexdigest(secure_file.file.read) == secure_file.checksum # checksums should match
secure_file.file.read # returns the decrypted contents of the file
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #423296 (closed)
Edited by Tiger Watson