Podman and/or Docker implementation #60
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TLDR: Added and tested podman and docker functionality.
This pull request introduces comprehensive containerization support for
safe-hash, enabling secure execution via Podman and Docker. It adds a multi-stageDockerfile, container build and run scripts, documentation, and updates to the README to guide users on using containers for improved isolation and security. The changes also clarify the trust model when running in containers and provide best practices for secure usage.Containerization and Security Enhancements
Dockerfileto build and packagesafe-hashwith security best practices, including a minimal runtime, non-root user, and read-only filesystem..dockerignoreto exclude build, test, editor, and OS-specific files from container images, reducing image size and attack surface.User Experience and Documentation
scripts/podman-build.shfor building the container image, andscripts/safe-hash-rsfor runningsafe-hashin a secure Podman container with options for interactive mode and volume mounts. [1] [2]docs/PODMAN.mdwith detailed instructions, security features, troubleshooting, and integration examples for using Podman and Docker withsafe-hash.README.mdto document container usage, security features, quick start commands, and trust assumptions when running in containers. [1] [2] [3]These changes provide a secure, isolated environment for running
safe-hash, making it safer to verify Safe Wallet transactions and messages on potentially compromised systems.