Rename delimeter -> delimiter in env_vars and external_secrets#9409
Open
BennyWaitWhat wants to merge 1 commit intowarpdotdev:masterfrom
Open
Rename delimeter -> delimiter in env_vars and external_secrets#9409BennyWaitWhat wants to merge 1 commit intowarpdotdev:masterfrom
delimeter -> delimiter in env_vars and external_secrets#9409BennyWaitWhat wants to merge 1 commit intowarpdotdev:masterfrom
Conversation
Fixes a misspelled identifier across two modules: - `app/src/env_vars/mod.rs`: `delimeter` parameter and uses (5x) and one comment. - `app/src/external_secrets/mod.rs`: `WARP_SECRET_DELIMETER` constant name (3x). The string literal value `"/warp-secret-delimeter/"` in external_secrets is intentionally preserved - it is the runtime separator passed to lpass via `--format` and parsed back from its output, so changing the value would break secret enumeration. Only the constant identifier is renamed. All call sites of `export_variables(...)` use positional arguments, so the parameter rename has no effect on callers.
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I approved this pull request. No matching stakeholder was found for the changed files, so no human reviewers were requested. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
Renames the misspelled delimeter identifier to delimiter in environment variable serialization and external secrets while preserving the LastPass delimiter string literal.
Concerns
- No blocking correctness or security concerns found in the changed lines.
Verdict
Found: 0 critical, 0 important, 0 suggestions
Approve
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
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.
Description
Renames a misspelled identifier (
delimeter->delimiter) across two modules. Pure rename: 2 files, +9/-9 lines, no behavioral change.app/src/env_vars/mod.rs- 6 changes:pub fn export_variables(&self, delimeter: &str, ...)->delimiter(parameter name)serialize_variables_internal(..., delimeter: &str, ...)parameterapp/src/external_secrets/mod.rs- 3 changes:static ref WARP_SECRET_DELIMETER->WARP_SECRET_DELIMITER(the constant identifier)What is intentionally preserved
The string literal value
"/warp-secret-delimeter/"on line 22 is kept as-is. It is the runtime separator embedded in thelpass --format=%an{}%aicommand and split back out of lpass's output (line.split(*WARP_SECRET_DELIMITER)). Changing the value would mean output emitted with one delimiter is parsed with another, breaking LastPass secret enumeration. Only the Rust identifier name is corrected; the on-the-wire token is unchanged.Caller analysis
All three external call sites of
export_variables(indrive/index.rs,drive/export.rs,terminal/input.rs) use positional arguments. Rust does not have named arguments, so the parameter rename is invisible to callers and breaks nothing.Related
The comment
// Used as a delimeter to separate metadataon line 20 ofexternal_secrets/mod.rsis deliberately left for PR #9404 (the round-3 typo bundle), which already includes that fix. Different lines, no conflict.Testing
Pure identifier rename; no logic touched. The string-literal preservation note above is the only correctness-relevant detail.
Agent Mode