Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong .chezmoi.config.age.identity #3593

Closed
ErrrorMaxx opened this issue Feb 23, 2024 · 1 comment
Closed

Wrong .chezmoi.config.age.identity #3593

ErrrorMaxx opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@ErrrorMaxx
Copy link

Describe the bug

Wanted to setup .chezmoiignore to ignore encypted files when configured decrypting key is not available yet. But .chezmoi.config.age.identity contains not my configured path, but a {}

To reproduce

In .chezmoi.yaml.tmpl:

encryption: "age"
age:
  identity: ~/.config/chezmoi/key.sec
  recipient: "..."
$ cz execute-template '{{ .chezmoi.config.age.identity }}'
map[]

Expected behavior

Expected to get ~/.config/chezmoi/key.sec or like that

Output of command with the --verbose flag

$ chezmoi --verbose data
{
  "chezmoi": {
    ...
    "config": {
      ...
      "age": {
        "args": null,
        "command": "/data/data/com.termux/files/usr/bin/rage",
        "identities": null,
        "identity": {},
        "passphrase": false,
        "recipient": "...",
        "recipients": null,
        "recipientsFile": {},
        "recipientsFiles": null,
        "suffix": ".age",
        "symmetric": false,
        "useBuiltin": false
      },
      ...

Output of chezmoi doctor

$ chezmoi doctor
RESULT    CHECK                       MESSAGE
warning   version                     v2.46.1
ok        latest-version              v2.46.1
ok        os-arch                     android/arm64
ok        uname                       Linux localhost 4.19.191+ #1 SMP PREEMPT Wed Nov 29 21:44:22 CST 2023 aarch64 Android
ok        go-version                  go1.21.6 (gc)
ok        executable                  /data/data/com.termux/files/usr/bin/chezmoi
ok        config-file                 ~/.config/chezmoi/chezmoi.yaml, last modified 2024-02-23T21:19:17Z
warning   source-dir                  ~/.local/share/chezmoi is a git working tree (dirty)
ok        suspicious-entries          no suspicious entries
warning   working-tree                ~/.local/share/chezmoi is a git working tree (dirty)
ok        dest-dir                    ~ is a directory
warning   umask                       077
ok        cd-command                  found /data/data/com.termux/files/usr/bin/zsh
ok        cd-args                     /data/data/com.termux/files/usr/bin/zsh
info      diff-command                not set
ok        edit-command                found /data/data/com.termux/files/usr/bin/micro
ok        edit-args                   /data/data/com.termux/files/usr/bin/micro
ok        git-command                 found /data/data/com.termux/files/usr/bin/git, version 2.43.2
warning   merge-command               vimdiff not found in $PATH
ok        shell-command               found /data/data/com.termux/files/usr/bin/zsh
ok        shell-args                  /data/data/com.termux/files/usr/bin/zsh
ok        age-command                 found /data/data/com.termux/files/usr/bin/rage, version 0.10.0
ok        gpg-command                 found /data/data/com.termux/files/usr/bin/gpg, version 2.4.4
info      pinentry-command            not set
info      1password-command           op not found in $PATH
info      bitwarden-command           bw not found in $PATH
info      bitwarden-secrets-command   bws not found in $PATH
info      dashlane-command            dcli not found in $PATH
info      doppler-command             doppler not found in $PATH
info      gopass-command              gopass not found in $PATH
info      keepassxc-command           keepassxc-cli not found in $PATH
info      keepassxc-db                not set
info      keeper-command              keeper not found in $PATH
info      lastpass-command            lpass not found in $PATH
info      pass-command                pass not found in $PATH
info      passhole-command            ph not found in $PATH
info      rbw-command                 rbw not found in $PATH
info      vault-command               vault not found in $PATH
info      vlt-command                 vlt not found in $PATH
info      secret-command              not set
@twpayne
Copy link
Owner

twpayne commented Feb 24, 2024

This is the same bug as #3582. Let's move tracking to that one.

@twpayne twpayne closed this as completed Feb 24, 2024
@twpayne twpayne added the duplicate This issue or pull request already exists label Feb 24, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants