Skip to content

🚀 Implement sliding TTL for kernel keyring private key cache#29

Merged
HanXHX merged 1 commit intomasterfrom
key_ttl_cache
Apr 24, 2026
Merged

🚀 Implement sliding TTL for kernel keyring private key cache#29
HanXHX merged 1 commit intomasterfrom
key_ttl_cache

Conversation

@HanXHX
Copy link
Copy Markdown
Contributor

@HanXHX HanXHX commented Apr 24, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 08:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Linux kernel keyring-based private key cache to use a sliding TTL by refreshing the cache expiration whenever the decrypted AGE identity is accessed.

Changes:

  • Refresh kernel keyring TTL on every resolveUserIdentity call (not only after passphrase decrypt).
  • Update README documentation to describe sliding TTL semantics.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cmd/transfer.go Refreshes keyring cache TTL on each identity resolution to implement sliding expiration.
README.md Documents the new sliding TTL behavior for Linux private key caching.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/transfer.go
@HanXHX HanXHX merged commit d8e2da5 into master Apr 24, 2026
4 checks passed
@HanXHX HanXHX deleted the key_ttl_cache branch April 24, 2026 10:04
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.

2 participants