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

Client Encryption: Fixes issue with clients using incorrect/stale Encryption Policy or Encryption Keys from the cache. #2403

Merged
merged 48 commits into from
May 6, 2021
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
9f14c48
Remove caching of AeadAes256CbcHmac256EncryptionAlgorithm object
kr-santosh Mar 11, 2021
f5c8441
Merge branch 'master' into users/sakulk/removealgocaching
kr-santosh Mar 11, 2021
7fa67b6
Update DotNetPreviewSDKAPI.json
kr-santosh Mar 11, 2021
9755436
Merge branch 'master' into users/sakulk/removealgocaching
kr-santosh Mar 22, 2021
bc81034
Merge branch 'master' into users/sakulk/removealgocaching
kr-santosh Mar 25, 2021
5fea326
Merge branch 'master' into users/sakulk/removealgocaching
kr-santosh Mar 29, 2021
e695aa8
Updates to latest Cryptography package.Test updates.
kr-santosh Mar 29, 2021
86ed4b5
Minor Refactoring.
kr-santosh Mar 29, 2021
5a02a6c
Fixes as per review comments.
kr-santosh Mar 29, 2021
c038300
Changes as per review comments.
kr-santosh Apr 9, 2021
f780a77
Merge branch 'master' into users/sakulk/removealgocaching
kr-santosh Apr 9, 2021
02a394c
Update MdeCustomEncryptionTests.cs
kr-santosh Apr 9, 2021
10f97eb
Updated contracts.
kr-santosh Apr 9, 2021
9310436
Update MdeEncryptionTests.cs
kr-santosh Apr 9, 2021
0ebd6f4
Merge branch 'master' into users/sakulk/removealgocaching
kr-santosh Apr 14, 2021
67a13bb
Fixes Encryption Cosmos Client Encryption Policy and Keys cache.
kr-santosh Apr 20, 2021
0985bae
Update EncryptionContainer.cs
kr-santosh Apr 20, 2021
fe75344
Update EncryptionContainer.cs
kr-santosh Apr 20, 2021
a5360b7
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh Apr 20, 2021
03c3fdb
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh Apr 20, 2021
1841a51
Update EncryptionCosmosClient.cs
kr-santosh Apr 20, 2021
8456a91
Fixes.
kr-santosh Apr 27, 2021
cf2392d
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh Apr 27, 2021
51fbdb0
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh Apr 27, 2021
2f08396
Fixes.
kr-santosh Apr 27, 2021
e3c2e2d
Fixes as per review comments and Refactoring.
kr-santosh Apr 28, 2021
69b361a
Refactoring
kr-santosh Apr 28, 2021
1862729
Update EncryptionContainer.cs
kr-santosh Apr 28, 2021
fa8897a
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh Apr 28, 2021
5a5dfec
Update EncryptionSettingForProperty.cs
kr-santosh Apr 28, 2021
b8900d8
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh Apr 29, 2021
77930c5
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh Apr 29, 2021
1a0b2d6
Fixes as per review comments.
kr-santosh Apr 30, 2021
13b356d
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh Apr 30, 2021
05591d2
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh Apr 30, 2021
d55161e
Update EncryptionContainer.cs
kr-santosh Apr 30, 2021
a0e3037
Fixes as per review comments.
kr-santosh Apr 30, 2021
01ea0be
Update EncryptionContainer.cs
kr-santosh Apr 30, 2021
32261f7
Fixes as per review comments.
kr-santosh Apr 30, 2021
dcb30f5
Fixes as per review comments.
kr-santosh May 1, 2021
fabd4fc
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh May 4, 2021
202ceb5
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh May 4, 2021
55c7e7a
Changes as per review comments.
kr-santosh May 6, 2021
77374f3
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh May 6, 2021
8911cfd
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh May 6, 2021
2fcb5e7
Fixes as per review comments.
kr-santosh May 6, 2021
2e33d55
Merge branch 'master' of https://github.com/Azure/azure-cosmos-dotnet-v3
kr-santosh May 6, 2021
b1faa22
Merge branch 'master' into users/sakulk/fixclientcache
kr-santosh May 6, 2021
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
3 changes: 2 additions & 1 deletion Microsoft.Azure.Cosmos.Encryption/src/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ namespace Microsoft.Azure.Cosmos.Encryption
{
internal static class Constants
{
public const int CachedEncryptionSettingsDefaultTTLInMinutes = 60;
public const string DocumentsResourcePropertyName = "Documents";
public const string SubStatusHeader = "x-ms-substatus";
public const string IncorrectContainerRidSubStatus = "1024";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -927,22 +927,6 @@ public override Task<ResponseMessage> PatchItemStreamAsync(
throw new NotImplementedException();
}

public override Task<ResponseMessage> ReadManyItemsStreamAsync(
IReadOnlyList<(string id, PartitionKey partitionKey)> items,
ReadManyRequestOptions readManyRequestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}

public override Task<FeedResponse<T>> ReadManyItemsAsync<T>(
IReadOnlyList<(string id, PartitionKey partitionKey)> items,
ReadManyRequestOptions readManyRequestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}

public override ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilder<T>(
string processorName,
ChangeFeedHandler<T> onChangesDelegate)
Expand Down Expand Up @@ -970,5 +954,21 @@ public override ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilderWithManu
{
throw new NotImplementedException();
}

public override Task<ResponseMessage> ReadManyItemsStreamAsync(
IReadOnlyList<(string id, PartitionKey partitionKey)> items,
ReadManyRequestOptions readManyRequestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}

public override Task<FeedResponse<T>> ReadManyItemsAsync<T>(
IReadOnlyList<(string id, PartitionKey partitionKey)> items,
ReadManyRequestOptions readManyRequestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
}
}
Loading