Skip to content

Add support for apw to get iCloud Keychain secrets #4944

@Baelson

Description

@Baelson

Is your feature request related to a problem? Please describe.

On macOS, chezmoi can currently get passwords from the login keyring and not from the iCloud keyring (as noted in #1137)

Describe the solution you'd like

https://github.com/bendews/apw enables read-only CLI access iCloud keyring. It would be great if it was integrated into chezmoi so we can pull API Keys and other text based secrets into our keyring and replace them with chezmoi templates which get the secrets at chezmoi apply time.

Enable the following scenarios:

  • Test chezmoi integration with : chezmoi secret keyring get --service=icloud_keyring --user=chezmoi_icloud
  • Get password from template file:
  • {{- if .personal -}}
    {{- icloud "chezmoi_icloud" -}}
    {{- end -}}

Describe alternatives you've considered

Use supported age/gpg encryption of the files with secrets.

Additional context

Video demo from apw repo

apw.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestin dependencyIn a dependency, not in chezmoipatiencePatience required, there is no date for this being fixed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions