Skip to content

Conversation

david-luna
Copy link
Member

@david-luna david-luna commented Aug 27, 2025

test-fips workflow does use a wolfi image to perform the tests. This image hasn't been updated in months being the follwing PR the last update #4525

Docker scans were added in #4465 but it seems it stopped from working actually they never worked.

This PR adds:

  • the latest sha of the wolfi image
  • an update in dependabot to scan in root and also workflow folders for docker image updates .
  • an update script to update the image's sha256 in test-fips.yml workflow

Checklist

@david-luna david-luna requested review from a team as code owners August 27, 2025 15:30
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@david-luna david-luna requested review from trentm and v1v August 27, 2025 15:30
@david-luna david-luna self-assigned this Aug 27, 2025
Copy link

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

trentm
trentm previously approved these changes Sep 2, 2025
v1v
v1v previously approved these changes Sep 2, 2025
Copy link
Member

@v1v v1v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, I'd suggest to use a more local friednly approach, so it's possible to reproduce the same CI buidl locally

directory: "/"
directories:
- "/"
- ".github/workflows"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the package-ecosystem: 'docker' supports github workflows:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was naive. Thanks for the info. I'll revert this then

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created a script to update the sha value in the workflow file. For now I'll run it manually.

@v1v v1v self-requested a review September 2, 2025 14:50
@david-luna david-luna dismissed stale reviews from v1v, trentm, and fr4nc1sc0-r4m0n via e006d1e September 3, 2025 06:43
@david-luna david-luna requested a review from trentm September 3, 2025 18:31
@david-luna david-luna changed the title tests: update dependabot config to check of workflows too tests: add script to update FIPS image in test-fips workflow Sep 8, 2025
const imageRef = 'docker.elastic.co/wolfi/chainguard-base-fips:latest';

// Get the latest and extract the SHA
const out = execSync(`docker image pull ${imageRef}`, { encoding: 'utf-8' });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could perhaps use this command to resolve the digest without installing:

% docker buildx imagetools  inspect docker.elastic.co/wolfi/chainguard-base-fips:latest
Name:      docker.elastic.co/wolfi/chainguard-base-fips:latest
MediaType: application/vnd.oci.image.index.v1+json
Digest:    sha256:b30d05c61d6a318e15113d8542a745acb605941a5cb8b1321228ff671fc4a3c9

Manifests:
  Name:      docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:f36b3fc08b2759b07a6a9c907f9b2b327abd393ed56bbc1569fbbdbc0d49bc1b
  MediaType: application/vnd.oci.image.manifest.v1+json
  Platform:  linux/amd64

  Name:      docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:29ba15059f84be168cdd1785583a93cf7c01c6d84f441927e691e36bd441b61e
  MediaType: application/vnd.oci.image.manifest.v1+json
  Platform:  linux/arm64

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a good idea. I merged this PR to get an updated sha and stop the failures of the. test-fips.yml workflow. But I'll do a follow up PR to change use this command and run it periodically with a cron expression.

@david-luna david-luna merged commit 037b2de into main Sep 9, 2025
22 checks passed
@david-luna david-luna deleted the luna-fips-image-fix branch September 9, 2025 09:31
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.

4 participants