Skip to content

--new-pass-file and --old-pass-file do not strip \n characters #5

@danielcb

Description

@danielcb

Hi, thanks for this tool. If passwords are read from files \n characters are not stripped (which --vault-password-file seems to do, so after rekeying everything with the same file, it does not match.

A splitlines()[0] fixes this (line 373, vault2vault.py):

return VaultSecret(infile.read().splitlines()[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions