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

Dapr Crypto API won't finish encrypt action with large payloads (~1MB+) #8244

Open
rochabr opened this issue Oct 26, 2024 · 0 comments · May be fixed by dapr/dotnet-sdk#1425
Open

Dapr Crypto API won't finish encrypt action with large payloads (~1MB+) #8244

rochabr opened this issue Oct 26, 2024 · 0 comments · May be fixed by dapr/dotnet-sdk#1425
Labels
kind/bug Something isn't working
Milestone

Comments

@rochabr
Copy link

rochabr commented Oct 26, 2024

In what area(s)?

/area runtime

What version of Dapr?

1.14.4

Expected Behavior

Dapr Crypto API should be able to encrypt large files and return in a timely fashion or at least document payload size limitations.

Actual Behavior

The encrypt request never returns a response for a payload of ~1MB+ with the request below (tested with the Go and dotnet SDKs):

var client = new DaprClientBuilder().Build();

const string componentName = "my-crypto-component";
const string keyName = "my-key"; 

const string plainText = "LARGE PAYLOAD";

//Encode the string to a UTF-8 byte array and encrypt it
var plainTextBytes = Encoding.UTF8.GetBytes(plainText);
var encryptedBytesResult = await client.EncryptAsync(componentName, plainTextBytes, keyName, new EncryptionOptions(KeyWrapAlgorithm.Rsa));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants