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 · 2 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 · 2 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));
@dapr-bot
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

@dapr-bot dapr-bot added the stale Issues and PRs without response label Jan 24, 2025
@rochabr
Copy link
Author

rochabr commented Jan 24, 2025

Keep alive

@dapr-bot dapr-bot removed the stale Issues and PRs without response label Jan 24, 2025
@mikeee mikeee modified the milestones: v1.15, v1.16 Jan 31, 2025
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.

4 participants