Skip to content

Add support for apw to get iCloud Keychain secrets #4944

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

Activity

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

    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