Skip to content

Draft: chore: Add ARM64 support for Linux in test environment [[ON HOLD]]

What does this MR do and why?

Adds linux-arm64 (aarch64) architecture support to the OpenBao rake task to fix test execution in GDK-in-a-box containers running on ARM64 processors.

This MR maps the 'aarch64' CPU architecture to 'arm64' and includes the SHA256 checksum for the linux-arm64 OpenBao binary. This fixes the OpenBao installation failure that was preventing RSpec tests from running in ARM64-based GDK environments.

The issue was discovered when running tests in GDK-in-a-box containers on ARM64 processors, where the OpenBao binary download would fail with a 404 error because the ARM64 architecture wasn't recognized.

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

Not applicable for this backend change.

How to set up and validate locally

  1. Ensure you're on an ARM64 Linux system (or use an ARM64 container)
  2. Run the OpenBao rake task to verify it downloads the correct binary:
    bundle exec rake gitlab:secrets_management:openbao:download_or_clone[/tmp/test_openbao]
  3. Verify the binary was downloaded and has the correct checksum
  4. Run any RSpec test that requires OpenBao setup:
    bundle exec rspec spec/lib/gitlab/auth/oidc/step_up_auth_before_request_phase_spec.rb

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

MR Checklist (@gerardo-navarro)
Edited by Gerardo Navarro

Merge request reports

Loading