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

feat: ftl secret --op can now write to 1password, fixes #1537 #1551

Merged
merged 10 commits into from
May 22, 2024

Conversation

gak
Copy link
Contributor

@gak gak commented May 21, 2024

Includes a 1password tagged test.

@gak gak requested a review from alecthomas as a code owner May 21, 2024 21:09
@gak gak requested review from a team and deniseli and removed request for a team May 21, 2024 21:09
@ftl-robot ftl-robot mentioned this pull request May 21, 2024
@gak
Copy link
Contributor Author

gak commented May 21, 2024

Essentially a rewrite so the diff is very messy. Worth just looking at the whole file.

common/configuration/1password_provider.go Show resolved Hide resolved
common/configuration/1password_provider.go Outdated Show resolved Hide resolved
common/configuration/1password_provider.go Outdated Show resolved Hide resolved
common/configuration/1password_provider.go Outdated Show resolved Hide resolved
common/configuration/1password_provider.go Show resolved Hide resolved
common/configuration/1password_provider.go Show resolved Hide resolved
common/configuration/1password_provider_test.go Outdated Show resolved Hide resolved
common/configuration/1password_provider_test.go Outdated Show resolved Hide resolved
common/configuration/1password_provider_test.go Outdated Show resolved Hide resolved
@alecthomas
Copy link
Collaborator

This is awesome, thanks @gak

@gak gak merged commit 8086136 into main May 22, 2024
24 checks passed
@gak gak deleted the gak/1password-refactor-write branch May 22, 2024 20:05
func checkOpBinary() error {
_, err := exec.LookPath("op")
if err != nil {
return fmt.Errorf("1Password CLI tool \"op\" not found: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to fix this instance, but convenience fyi for the future - you can denote a string with backticks to avoid having to escape all the quotes inside it:

`my "quoted" string`

@deniseli deniseli added the approved Marks an already closed PR as approved label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Marks an already closed PR as approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants