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

Add file importer for cachix plugin #373

Merged
merged 4 commits into from Sep 22, 2023
Merged

Add file importer for cachix plugin #373

merged 4 commits into from Sep 22, 2023

Conversation

dethancosta
Copy link
Contributor

@dethancosta dethancosta commented Aug 25, 2023

Overview

Adds a file importer for the Cachix plugin. The file is stored at ~/.config/cachix/cachix.dhall and is generated from a terminal command. To avoid bringing in a third-party dependency, the file contents are processed as a string, rather than using a dhall parser.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

Related Issue(s)

How To Test

When running op plugin init cachix, you should now see the option to import credentials using the specified file.

Changelog

The Cachix plugin now checks for the ~/.config/cachix/cachix.dhall file and attempts to import an auth token using the specified file.

Copy link
Contributor

@AndyTitu AndyTitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm. Thanks for your contribution!

Copy link
Member

@SimonBarendse SimonBarendse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security review approved.

I just have a small suggestion to make the implementation robust for potential future extensions by Cachix.

Appreciate the contribution, @dethancosta! ❤️

plugins/cachix/auth_token.go Outdated Show resolved Hide resolved
Copy link
Member

@SimonBarendse SimonBarendse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was quick, thank you! 🙌

@SimonBarendse SimonBarendse merged commit 0406104 into 1Password:main Sep 22, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add file importer for Cachix plugin
3 participants