Conversation
Add a file-based secrets manager that persists secrets to a JSONL file with in-memory caching and auto-save on program exit via atexit. Supports atomic writes using temp file + rename pattern. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Add support for JsonWebKey2020 verification method type to AuthlibKey, allowing use of JWK-formatted keys in DID documents. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Export FileBasedSecretsManager and InMemorySecretsManager from the crypto backend package for easier access. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Add an example demonstrating use of FileBasedSecretsManager with the authlib crypto backend. Shows key generation, did:jwk creation, pack/unpack round-trip, and re-loading secrets from file. Also adds pytest collector to run example scripts as tests. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Rename wrapper parameter to enc_message in CryptoService methods for clarity. Also fix typo in SecretsManager docstring. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Move example scripts to examples/ directory and add packaging example. Remove root-level example.py in favor of organized examples. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Add step to run example scripts as tests in CI to prevent examples from growing stale. Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #7. This is a simple secrets manager that uses a .jsonl file and expects callbacks for serializing and deserializing the keys for storing and loading
SecretKeyinstances from that file.This PR also creates a new directory for examples instead of having just a single example.py file. The examples are now run by CI to help prevent them from growing stale.
A few various other fixes and updates.