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: schedule job that removes expired keys #1187

Merged
merged 25 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
51ae860
feat: add variable expiryCheckTimeIntervalMins to at_client_preferences
srieteja Dec 18, 2023
00f285e
feat: schedule job to delete expired keys
srieteja Dec 18, 2023
181dc7e
Merge branch 'trunk' into delete_expired_keys
srieteja Dec 20, 2023
dd09654
Merge branch 'trunk' into delete_expired_keys
gkc Jan 2, 2024
1be1e15
Merge branch 'trunk' into delete_expired_keys
srieteja Jan 4, 2024
51a389e
Merge branch 'trunk' into delete_expired_keys
srieteja Jan 8, 2024
d5eff02
test: added unit test
srieteja Jan 9, 2024
3c3b5d6
Merge branch 'trunk' into delete_expired_keys
srieteja Jan 9, 2024
49fba00
Merge remote-tracking branch 'origin/delete_expired_keys' into delete…
srieteja Jan 9, 2024
87576b4
Merge branch 'trunk' into delete_expired_keys
srieteja Jan 19, 2024
2acc6fa
test: fix unit test
srieteja Jan 19, 2024
68291d3
Merge branch 'trunk' into delete_expired_keys
srieteja Jan 24, 2024
a1dda56
Merge branch 'trunk' into delete_expired_keys
srieteja Feb 14, 2024
cf72f5f
Merge branch 'trunk' into delete_expired_keys
srieteja Feb 15, 2024
3f383dc
Merge branch 'trunk' into delete_expired_keys
srieteja Feb 15, 2024
bd45ea9
Update pubspec.yaml
srieteja Feb 22, 2024
9e7bedf
Merge branch 'trunk' into delete_expired_keys
srieteja Feb 22, 2024
9501ee8
Merge remote-tracking branch 'origin/delete_expired_keys' into delete…
srieteja Feb 22, 2024
5133449
build: update pubspec/client_config version and changelog
srieteja Feb 22, 2024
2684204
Merge branch 'trunk' into delete_expired_keys
gkc Feb 23, 2024
bf650be
fix: change in AtClientPreference: expiryCheckTimeIntervalMins(type i…
srieteja Feb 23, 2024
fd5bf63
Merge remote-tracking branch 'origin/delete_expired_keys' into delete…
srieteja Feb 23, 2024
1fbb64f
reformat: run dart formatter
srieteja Feb 23, 2024
a8e8ffc
Merge branch 'trunk' into delete_expired_keys
gkc Feb 26, 2024
e226cb0
Merge branch 'trunk' into delete_expired_keys
srieteja Mar 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/at_client/lib/src/manager/storage_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class StorageManager {
.getSecondaryKeyStoreManager()!;
await hiveKeyStore.initialize();
keyStoreManager.keyStore = hiveKeyStore;
manager.scheduleKeyExpireTask(preferences!.expiryCheckTimeIntervalMins);
isStorageInitialized = true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class AtClientPreference {

Duration monitorHeartbeatInterval = Duration(seconds: 10);

/// Time interval for the scheduled task that removes expired keys from local keyStore
int expiryCheckTimeIntervalMins = 10;
srieteja marked this conversation as resolved.
Show resolved Hide resolved

///[OptionalParameter] when set to true logs TLS Keys to file.
bool decryptPackets = false;

Expand Down