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

Add flat-lock.json with checksum #21

Open
BSteffaniak opened this issue Jun 5, 2023 · 0 comments
Open

Add flat-lock.json with checksum #21

BSteffaniak opened this issue Jun 5, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BSteffaniak
Copy link
Member

BSteffaniak commented Jun 5, 2023

To ensure that no packages have changed since they have been installed, airship install should create/update a flat-lock.json with each of the package's contents checksum. If the package's checksum differs from the checksum in the lock file, then error out of the install with a security error about the package's contents changing since the last installation.

  • Should this handle backing up the existing installation?
    • Perhaps new installs are installed to a temp file name and then moved to the destination once checksum passes.

Manual checksum tar --exclude-vcs --exclude-from=.gitignore -cf - . | md5sum

Check the git SHA git rev-parse --verify HEAD

@BSteffaniak BSteffaniak added the enhancement New feature or request label Jun 5, 2023
@BSteffaniak BSteffaniak self-assigned this Jun 5, 2023
@BSteffaniak BSteffaniak changed the title Add flat-lock.json with md5sum Add flat-lock.json with checksum Jun 5, 2023
BSteffaniak added a commit that referenced this issue Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant