Skip to content

Feature/encrypted results#67

Draft
moonjck wants to merge 4 commits into
sandialabs:mainfrom
moonjck:Feature/Encrypted-Results
Draft

Feature/encrypted results#67
moonjck wants to merge 4 commits into
sandialabs:mainfrom
moonjck:Feature/Encrypted-Results

Conversation

@moonjck

@moonjck moonjck commented Jun 10, 2026

Copy link
Copy Markdown

Feature/encrypted results

Description

Added the ability to zip/unzip encrypt/decrypt the peat_results directory with cli commands. changed config encrypt functions naming for easier understanding. added alias to original encrypt-config for legacy purposes and fixed subparser loop so it doesn't error on the alias feature.

Related Issue

Closes: #19

Checklist

Please check the following items as they're completed.
Completion of all checklist items signals to maintainers that a PR is fully ready for review.

  • [x ] This PR conforms to the process detailed in the Contributing Guide
  • [x ] I have included no proprietary/sensitive information in my code
  • [x ] I have performed a self-review of my code
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [x ] My changes generate no new warnings
  • [x ] I have tested my code
  • I have added a description of my changes to the changelog in CHANGELOG.rst
  • [x ] Apply appropriate Tags to this PR, if any (e.g. bugfix, enhancement(feature), documentation, etc.)
  • Removing "Draft" status from the PR (if applicable).

moonjck added 2 commits June 4, 2026 23:29
…ypting peat_results, added file check to remove type error if not file / archive is specified

from peat import results_crypto


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd like a test that validates an encrypted zip file cannot be opened with normal zipfile or zip on command line. also some tests for the CLI arguments, executing workflow end-to-end (there are examples of this in https://github.com/sandialabs/PEAT/blob/main/tests/test_cli_commands.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also i know you're still working on this (thanks for opening a draft PR!), so if you're already working on more tests plz ignore :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added some more tests, did you also want the documentation updated as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh yeah, documentation definitely needs to be updated! at least a blurb on what encrypted results are, how to use the feature, a few example use cases, and any limitations/caveats.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

would you like this in the operate.rst file or is there another location I might not be tracking?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, Operate makes the most sense

Comment thread pdm.lock
Comment on lines -2359 to -2375
[[package]]
name = "towncrier"
version = "25.8.0"
requires_python = ">=3.9"
summary = "Building newsfiles for your project."
dependencies = [
"click",
"importlib-metadata>=4.6; python_version < \"3.10\"",
"importlib-resources>=5; python_version < \"3.10\"",
"jinja2",
"tomli; python_version < \"3.11\"",
]
files = [
{file = "towncrier-25.8.0-py3-none-any.whl", hash = "sha256:b953d133d98f9aeae9084b56a3563fd2519dfc6ec33f61c9cd2c61ff243fb513"},
{file = "towncrier-25.8.0.tar.gz", hash = "sha256:eef16d29f831ad57abb3ae32a0565739866219f1ebfbdd297d32894eb9940eb1"},
]

@BugFriendlyGarden BugFriendlyGarden Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Did you intend to remove this or was this a bad merge conflict?

I'm new to pdm.lock files so I don't know if this was auto generated or not.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The lock file is auto-generated by PDM. Basically it's the full dependency chain. Removals are usually due to sub-dependencies updating minimum versions or removing sub-sub-dependencies, and so on. Further reading: https://pdm-project.org/latest/usage/lockfile/

… fixtures

Add documentation for  and , add example
encrypted result files, and keep pyzipper-required crypto libraries in the
PyInstaller spec excludes
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.

[Feature] Encrypted results

3 participants