sidekick_vault 0.4.0 copy "sidekick_vault: ^0.4.0" to clipboard
sidekick_vault: ^0.4.0 copied to clipboard

outdated

Reads project secrets stored encrypted on the local filesystem

0.4.0 #

  • Throw on CI when no passphrase is provided via stdin

  • Adds VaultCommand, allowing adding and reading secrets via a sidekick cli

    // Add command to your CLI
    ..addCommand(VaultCommand(vault: vault)) 
    

    Add file to vault #

    <cli-name> vault encrypt path/to/secret.csv
    
    <cli-name> vault encrypt --passpharse="****" --vault-location="secret.txt.gpg" path/to/secret.txt
    

    The passpharse is optional. It will be retrieved from the environment variables or asked via stdin.

    The file will be saved at vault-location (optional) inside the vault directory. The filename (secret.txt) will be used as fallback.

    Decrypt file in vault #

    <cli-name> vault encrypt secret.csv.gpg
    
    <cli-name> vault decrypt --passpharse="****" --output="write/to/decrypted.txt" secret.txt.gpg';
    

    The passpharse is optional. It will be retrieved from the environment variables or asked via stdin.

    output is optional. The decrypted file will be saved in the vault next to the encrypted one (without .gpg ending).

0.3.0 #

  • Requires Dart 2.14
  • New EncryptedVaultString defines a value in vault before accessing it. Use text to access the content and prompt for the password
  • Use the Vault.encryptedString(String fileName) extension to create a EncryptedVaultString

0.2.0 #

  • Document and add example

0.1.0 #

  • First release
5
likes
0
pub points
49%
popularity

Publisher

verified publisherphntm.xyz

Reads project secrets stored encrypted on the local filesystem

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dcli, sidekick_core

More

Packages that depend on sidekick_vault