Skip to content

feat: add IAM role credentials for artifact storage - #1475

Open
longhuynh852-work wants to merge 9 commits into
go-vela:mainfrom
longhuynh852-work:feat/iam_role_artifact_storage
Open

feat: add IAM role credentials for artifact storage#1475
longhuynh852-work wants to merge 9 commits into
go-vela:mainfrom
longhuynh852-work:feat/iam_role_artifact_storage

Conversation

@longhuynh852-work

Copy link
Copy Markdown

Desc: Vela introduced artifact storage feature to upload artifacts to S3 bucket via MinIo. We are looking to add capability to opt from using the static credentials to access the S3 bucket, rather used short-lived credentials via IAM Role.

Changes:

-added flag for UseIAM to enable IAM role credentials in storage.go and flags.go
-added if statement to use IAM role as credentials if UseIAM flag enabled in minio.go (to avoid any changes to current flow)
-avoid validation error if access/secret key not provided when UseIAM flag enabled in opts.go
-added test cases for both

@longhuynh852-work
longhuynh852-work requested a review from a team as a code owner July 6, 2026 15:14
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.06%. Comparing base (1f1a252) to head (8b76897).

❌ Your project check has failed because the head coverage (58.06%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1475      +/-   ##
==========================================
+ Coverage   58.00%   58.06%   +0.06%     
==========================================
  Files         663      663              
  Lines       25760    25767       +7     
==========================================
+ Hits        14941    14962      +21     
+ Misses      10106    10092      -14     
  Partials      713      713              
Files with missing lines Coverage Δ
cmd/vela-server/storage.go 100.00% <100.00%> (+100.00%) ⬆️
storage/flags.go 100.00% <ø> (ø)
storage/minio/minio.go 92.59% <100.00%> (+0.92%) ⬆️
storage/minio/opts.go 100.00% <100.00%> (ø)
storage/setup.go 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@longhuynh852-work longhuynh852-work changed the title Feat/iam role artifact storage feat: add IAM role credentials for artifact storage Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant