Improved Secret Service diagnostics on Linux (#868)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-07-19 11:33:56 +02:00
1 parent 4cc9d1f9a8
commit 3bcd45d676
15 files changed
+363 -23

No files matched your search

@@ -6,4 +6,5 @@ namespace AIStudio.Tools.Rust;
/// <param name="Success">True, when the secret was successfully deleted or not found.</param>
/// <param name="Issue">The issue, when the secret could not be deleted.</param>
/// <param name="WasEntryFound">True, when the entry was found and deleted.</param>
public readonly record struct DeleteSecretResponse(bool Success, string Issue, bool WasEntryFound);
/// <param name="IssueCode">The structured issue reported by the native credential store.</param>
public readonly record struct DeleteSecretResponse(bool Success, string Issue, bool WasEntryFound, SecretStoreIssueCode IssueCode = SecretStoreIssueCode.NONE);
@@ -6,4 +6,5 @@ namespace AIStudio.Tools.Rust;
/// <param name="Success">True, when the secret was successfully retrieved.</param>
/// <param name="Secret">The secret, e.g., API key.</param>
/// <param name="Issue">The issue, when the secret could not be retrieved.</param>
public readonly record struct RequestedSecret(bool Success, EncryptedText Secret, string Issue);
/// <param name="IssueCode">The structured issue reported by the native credential store.</param>
public readonly record struct RequestedSecret(bool Success, EncryptedText Secret, string Issue, SecretStoreIssueCode IssueCode = SecretStoreIssueCode.NONE);
@@ -0,0 +1,15 @@
namespace AIStudio.Tools.Rust;
/// <summary>
/// A structured issue reported by the native credential store.
/// </summary>
public enum SecretStoreIssueCode
{
NONE,
SECRET_NOT_FOUND,
NO_DEFAULT_COLLECTION,
COLLECTION_LOCKED,
PROMPT_DISMISSED,
SERVICE_UNAVAILABLE,
UNKNOWN,
}
@@ -5,4 +5,5 @@ namespace AIStudio.Tools.Rust;
/// </summary>
/// <param name="Success">True, when the secret was successfully stored.</param>
/// <param name="Issue">The issue, when the secret could not be stored.</param>
public readonly record struct StoreSecretResponse(bool Success, string Issue);
/// <param name="IssueCode">The structured issue reported by the native credential store.</param>
public readonly record struct StoreSecretResponse(bool Success, string Issue, SecretStoreIssueCode IssueCode = SecretStoreIssueCode.NONE);