Skip to content

[DOCS] Homedir path in SALT.RENDERERS.GPG (ENCRYPTING DATA) are missing in few examples - bash/awk/perl  #65682

Closed as not planned

Description

@astor2015

Description
In order to encrypt data homedir path must be set to /etc/salt/gpgkeys
echo -n 'supersecret' | gpg --trust-model always -ear - gpg: [stdin]: encryption failed: No public key should be the error if there is no gpg keys in user home dir.

Suggested Fix

To add missing homedir path "--homedir /etc/salt/gpgkeys" to all commands below:

echo -n 'supersecret' | gpg --homedir /etc/salt/gpgkeys --trust-model always -ear

awk

ciphertext=echo -n "supersecret" | gpg **--homedir /etc/salt/gpgkeys** --armor --batch --trust-model always --encrypt -r [email protected] | awk '{printf "%s\\n",$0} END {print ""}'

Perl

ciphertext=echo -n "supersecret" | gpg **--homedir /etc/salt/gpgkeys** --armor --batch --trust-model always --encrypt -r [email protected] | perl -pe 's/\n/\\n/g'

Type of documentation
Salt documentation

Location or format of documentation
Insert page URL if applicable.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    documentation
    on Dec 10, 2023
  2. welcome commented on Dec 10, 2023

    @welcome

    Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
    Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

    There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
    If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

  3. added this to the Sulphur v3006.27 milestone on Jun 25, 2026
  4. dwoz commented on Oct 28, 2026

    @dwoz
    Contributor

    Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions