Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to validate the kubeseal tarball with Ansible #1424

Closed
fmunteanu opened this issue Jan 6, 2024 · 4 comments
Closed

Correct way to validate the kubeseal tarball with Ansible #1424

fmunteanu opened this issue Jan 6, 2024 · 4 comments
Labels

Comments

@fmunteanu
Copy link

fmunteanu commented Jan 6, 2024

Which component:
kubeseal

Describe the bug
I'm trying to validate with Ansible the kubeseal signature, what is the correct format to use? None of the checksum types provided by Ansible match the contents of your .sig file.

- name: Extract tarball
  ansible.builtin.get_url:
    url: https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.24.5/kubeseal-0.24.5-linux-arm64.tar.gz
    checksum: sha256:https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.24.5/kubeseal-0.24.5-linux-arm64.tar.gz.sig
    dest: /tmp
    owner: root
    group: root
    mode: '0644'

I checked for md5sum, sha1sum, sha224sum, sha256sum, sha384sum and sha512sum. The signature file has the string:

MEQCIBov/K3V06TADW+iboEdqaqYIulkkloGhqn/zuBzWj7QAiAoV4iov5zvZcpNAWxr5QRKSE1zU/h4hVsMOjNfKAb3fQ==
@fmunteanu fmunteanu added the triage Issues/PRs that need to be reviewed label Jan 6, 2024
@alemorcuq
Copy link
Collaborator

Hi, @fmunteanu.

The .sig file contains the signature by Cosign. You can find the checksums for the different tarballs in the sealed-secrets_VERSION_checksums.txt file for each release. For example, the checksums for version 0.24.5 can be found here.

Regards,
Alejandro

@agarcia-oss agarcia-oss removed the triage Issues/PRs that need to be reviewed label Jan 12, 2024
@fmunteanu
Copy link
Author

fmunteanu commented Jan 12, 2024

@alemorcuq would it be possible to separate each checksum into dedicated files, like other GitHub releases do?

Example:
https://github.com/cilium/hubble/releases/download/v0.12.3/hubble-linux-arm.tar.gz.sha256sum

The above format will also allow us to easily identify the required checksum validation.

Copy link
Contributor

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@alemorcuq
Copy link
Collaborator

I'm not familiar with the Ansible way, you can easily check the checksum with sha256sum:

$ sha256sum -c sealed-secrets_0.25.0_checksums.txt --ignore-missing
kubeseal-0.25.0-linux-amd64.tar.gz: OK

Just make sure the checksums file and the tarball are in the same directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants