-
Notifications
You must be signed in to change notification settings - Fork 3
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
Integration specific file reading #151
Comments
update: I figured it out, I needed to remove the comments from age.txt which age includes by default so this ticket should probably be for rops to ignore comments in age.txt files |
Yeah, you're right, almost. The documentation in https://gibbz00.github.io/rops/concepts.html#private-integration-key tries to explain how The key retrieval documentation does on the other hand contain:
And https://gibbz00.github.io/rops/concepts.html#to-supply-private-keys-using-integration-key-files-future contains:
So yes, integration specific file reading is something that is currently missing, but
...and it would be nice i I can understand that this brings confusion unless you carefully read the documentation, because it's how SOPS does it with |
I was able to work around this for my usage: https://github.com/jdx/mise/blob/728bd0211e3e90cef8f23ccb48e4fd87911dec6a/src/sops.rs#L31-L37 however I'd be happy to submit a patch for this upstream—for the end users not being able to directly use a file generated by |
Cool cool. Impressed that you were able to use the library API, even when it lacks the most basic documentation.
Contributions are always welcomed 😊 I do agree that ease of use should be a top priority. Including the workaround upstream would be done here: rops/crates/lib/src/integration/core.rs Lines 41 to 47 in 1c5180c
I'm not fully convinced, however, that this would be a good idea (yet). We'd be "Fully" implementing integration specific file reads would be the more However, nowhere am I able find what @st4d is referring to when they write: "The specification gives the Unix path ~/.config/age/* as the default location it looks for keys and aliases." Improving the error message would very helpful and appreciated. I'm unfortunately a bit caught up in work right now to do this myself :/ |
I'm exploring adopting rops for use in mise, however I can't get rops to work in this basic test:
admittedly I'm unfamiliar with these tools so I may be doing something wrong
The text was updated successfully, but these errors were encountered: