storage: strip inline comments from .pub, .group and .keys files#20
Merged
arvidj merged 2 commits intoahrefs:masterfrom Mar 24, 2026
Merged
storage: strip inline comments from .pub, .group and .keys files#20arvidj merged 2 commits intoahrefs:masterfrom
arvidj merged 2 commits intoahrefs:masterfrom
Conversation
34774ea to
07c5338
Compare
Merged
thatportugueseguy
approved these changes
Mar 24, 2026
Contributor
There was a problem hiding this comment.
no need for cram tests, unit tests are enough
Contributor
Author
There was a problem hiding this comment.
removed in latest version
thatportugueseguy
pushed a commit
to thatportugueseguy/opam-repository
that referenced
this pull request
Mar 24, 2026
CHANGES: ## 0.3.4 (2026-03-24) - `passage init` does not overwrite previous config unless `--force` is passed. - Newline can be used to terminate user name input. - Add `overlap` command to find recipients with the most secret overlap, to help coordinate key refreshes. - `passage refresh` now warns when secrets are skipped due to lack of access. - Fix bug where in-line comments in .pub, .keys and .group files were not ignored ([ahrefs/passage#20](ahrefs/passage#20)). ## 0.3.3 (2026-02-13) - Update os availability in opam. Make passage available in macos again ## 0.3.2 (2026-01-20) remove `devkit` dependency remove `re2` dependency, use `re` instead mark ppx-expect as `with-test` ## 0.3.1 (2025-12-04) - Add installion state on `passage healthcheck command` - Add `x-maintenance-intent` policy - Add centos 10 to opam ci exclusions ## 0.3.0 (2025-12-02) - Refactor passage to be lib-first. Commands and utility functions are now available for usage by lib users - Update os availability in opam. Not available in macos anymore. ## 0.2.0 (2025-11-26) - Update refresh command to handle users and groups via the @<user_or_group> target syntax - Add --version flag to passage command - Fix the command description for `new` ## 0.1.8 (2025-10-21) - deep refactor of the code - more code moved to the lib, cleaner main.ml file - more abstractions, less indirection - updated the editor for reusability and robustness - removed lwt, since we don't really have true async code - use bos for command running and stdin/stdout/stderr handling - removed lwt - updated completions (bash and zsh) ## 0.1.7 (2025-09-15) - Add --comment flag to the create command - Add edit-comments command - Show recipients in "user is not recipient" error - Add add-who and rm-who commands - Add groups suggestions to recipients suggestions - Add `my` command - Add better handling of bad setup for get and ls - Improve error handling and message for missing setup - Better error message when passage isn't setup - Update Makefile - Improve README and run linting - Catch `realpath` error and raise friendlier exception - Update bash completions - Add zsh completions ## 0.1.6 (2024-11-28) - fix small bug with the input_and_validate_loop fn and empty secrets ## 0.1.5 (2024-11-26) - Add replace-comment command - Make new and edit commands usage uniform - Remove bash completions opam install. Moved to debian package. ## 0.1.4 (2024-08-26) - Add bash completions on install ## 0.1.3 (2024-07-24) - Add the public_name stanza to the passage lib ## 0.1.2 (2024-07-15) - Update test config and add opam ci exclusions ## 0.1.1 (2024-07-11) - Fix merlin dep and template parser ## 0.1.0 (2024-07-07) - Open source passage
thatportugueseguy
pushed a commit
to thatportugueseguy/opam-repository
that referenced
this pull request
Mar 24, 2026
CHANGES: ## 0.3.4 (2026-03-24) - `passage init` does not overwrite previous config unless `--force` is passed. - Newline can be used to terminate user name input. - Add `overlap` command to find recipients with the most secret overlap, to help coordinate key refreshes. - `passage refresh` now warns when secrets are skipped due to lack of access. - Fix bug where in-line comments in .pub, .keys and .group files were not ignored ([ahrefs/passage#20](ahrefs/passage#20)). ## 0.3.3 (2026-02-13) - Update os availability in opam. Make passage available in macos again ## 0.3.2 (2026-01-20) remove `devkit` dependency remove `re2` dependency, use `re` instead mark ppx-expect as `with-test` ## 0.3.1 (2025-12-04) - Add installion state on `passage healthcheck command` - Add `x-maintenance-intent` policy - Add centos 10 to opam ci exclusions ## 0.3.0 (2025-12-02) - Refactor passage to be lib-first. Commands and utility functions are now available for usage by lib users - Update os availability in opam. Not available in macos anymore. ## 0.2.0 (2025-11-26) - Update refresh command to handle users and groups via the @<user_or_group> target syntax - Add --version flag to passage command - Fix the command description for `new` ## 0.1.8 (2025-10-21) - deep refactor of the code - more code moved to the lib, cleaner main.ml file - more abstractions, less indirection - updated the editor for reusability and robustness - removed lwt, since we don't really have true async code - use bos for command running and stdin/stdout/stderr handling - removed lwt - updated completions (bash and zsh) ## 0.1.7 (2025-09-15) - Add --comment flag to the create command - Add edit-comments command - Show recipients in "user is not recipient" error - Add add-who and rm-who commands - Add groups suggestions to recipients suggestions - Add `my` command - Add better handling of bad setup for get and ls - Improve error handling and message for missing setup - Better error message when passage isn't setup - Update Makefile - Improve README and run linting - Catch `realpath` error and raise friendlier exception - Update bash completions - Add zsh completions ## 0.1.6 (2024-11-28) - fix small bug with the input_and_validate_loop fn and empty secrets ## 0.1.5 (2024-11-26) - Add replace-comment command - Make new and edit commands usage uniform - Remove bash completions opam install. Moved to debian package. ## 0.1.4 (2024-08-26) - Add bash completions on install ## 0.1.3 (2024-07-24) - Add the public_name stanza to the passage lib ## 0.1.2 (2024-07-15) - Update test config and add opam ci exclusions ## 0.1.1 (2024-07-11) - Fix merlin dep and template parser ## 0.1.0 (2024-07-07) - Open source passage
arvidj
pushed a commit
to arvidj/opam-repository
that referenced
this pull request
Apr 2, 2026
CHANGES: ## 0.3.5 (2026-04-02) - Fix missing --version number. ## 0.3.4 (2026-03-24) - `passage init` does not overwrite previous config unless `--force` is passed. - Newline can be used to terminate user name input. - Add `overlap` command to find recipients with the most secret overlap, to help coordinate key refreshes. - `passage refresh` now warns when secrets are skipped due to lack of access. - Fix bug where in-line comments in .pub, .keys and .group files were not ignored ([ahrefs/passage#20](ahrefs/passage#20)). ## 0.3.3 (2026-02-13) - Update os availability in opam. Make passage available in macos again ## 0.3.2 (2026-01-20) remove `devkit` dependency remove `re2` dependency, use `re` instead mark ppx-expect as `with-test` ## 0.3.1 (2025-12-04) - Add installion state on `passage healthcheck command` - Add `x-maintenance-intent` policy - Add centos 10 to opam ci exclusions ## 0.3.0 (2025-12-02) - Refactor passage to be lib-first. Commands and utility functions are now available for usage by lib users - Update os availability in opam. Not available in macos anymore. ## 0.2.0 (2025-11-26) - Update refresh command to handle users and groups via the @<user_or_group> target syntax - Add --version flag to passage command - Fix the command description for `new` ## 0.1.8 (2025-10-21) - deep refactor of the code - more code moved to the lib, cleaner main.ml file - more abstractions, less indirection - updated the editor for reusability and robustness - removed lwt, since we don't really have true async code - use bos for command running and stdin/stdout/stderr handling - removed lwt - updated completions (bash and zsh) ## 0.1.7 (2025-09-15) - Add --comment flag to the create command - Add edit-comments command - Show recipients in "user is not recipient" error - Add add-who and rm-who commands - Add groups suggestions to recipients suggestions - Add `my` command - Add better handling of bad setup for get and ls - Improve error handling and message for missing setup - Better error message when passage isn't setup - Update Makefile - Improve README and run linting - Catch `realpath` error and raise friendlier exception - Update bash completions - Add zsh completions ## 0.1.6 (2024-11-28) - fix small bug with the input_and_validate_loop fn and empty secrets ## 0.1.5 (2024-11-26) - Add replace-comment command - Make new and edit commands usage uniform - Remove bash completions opam install. Moved to debian package. ## 0.1.4 (2024-08-26) - Add bash completions on install ## 0.1.3 (2024-07-24) - Add the public_name stanza to the passage lib ## 0.1.2 (2024-07-15) - Update test config and add opam ci exclusions ## 0.1.1 (2024-07-11) - Fix merlin dep and template parser ## 0.1.0 (2024-07-07) - Open source passage
arvidj
added a commit
to arvidj/passage
that referenced
this pull request
Apr 2, 2026
…efs#20) * storage: strip inline comments from .pub, .group and .keys files * fixup! remove cram test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Update
Storage.config_liness.t. it strips inlines comments.Why
Before the de-devkit-ization in #11, passage used the
Action.config_linesfunction to read .pub, .keys and .group files. This function removes inline comments (i.e.content #commentis read ascontent), which I missed in my rewrite.See also: ahrefs/devkit#56