* Updated itests.yml to use latest 1.15 runtime and CLI versions over 1.14 versions
* Updated CLI argument name as `dapr-http-max-request-size` was changed in a recent update included in the CLI
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Tweaked the jobs mapping handler to accept an optional timeout parameter instead of a cancellation token. This applies the timeout, if specified, to each invocation instead of as a global timeout.
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
fix: Point-in-time not getting scheduled, job payload not being property set on job invocation
When setting a single point-in-time job, the SDK was incorrectly assigning it as a schedule which would promptly fail cron validation. Rather, this now properly sets it to `dueTime` instead. Further, when a Job is invoked, only the payload it was registered with is provided in the callback, not all the elements of a Get Job response, so this was modified to return the `ReadOnlyMemory<byte>` originally provided in the payload back to the caller.
Reviewed by: @philliphoff
Refs: #1455#1457
* Fixed bad console output showing encrypted bytes
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Simplified example so it doesn't require an Azure Key Vault instance and just uses a local set of keys
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated README to include instructions for generating the private key
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added private RSA key to project for users that lack OpenSSL on their system - updated README to include warning calling out that this key shouldn't be used for anything but demonstration and testing purposes.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed obsolete type
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added missing using
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Adding interface for IWorkflowContext for replayability concerns
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unused IConfiguration
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added ReplaySafeLogger type
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Building out functionality to expose ReplayLogger in workflow context
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added license information to file
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unnecessary file
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated copyright header for different project, made some tweaks for nullability errors
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added virtual methods that use the already-available ILoggerFactory to create the ReplaySafeLogger on the WorkflowContext
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unnecessary registration
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated example to demonstrate using ReplaySafeLogger in the orchestration context
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Tweaks on visibility and abstraction so that the methods are available in the context made visible to workflow developers
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed obsolete type registrations
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Simplified argument null check
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed since-removed code leftover from merge
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added documentation demonstrating how to access the replay-safe logger
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unnecessary and separate ReplaySafeLogger in favor of method to create it off the TaskOrchestrationContext (innerContext)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added methods in status API supports for direct storage and reading of byte arrays #906
Signed-off-by: Divya Perumal <divzi.perumal@gmail.com>
Signed-off-by: Divya Perumal <diperuma@microsoft.com>
* Updated prototype
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added Dapr.AI project and unit test project to contain the conversational building block (and potentially future other projects)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Changed default values
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unnecessary method
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added a few unit tests
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added example project
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added missing copyright headers
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Changed type name -> DaprLlmInput to DaprConversationInput
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Returning read only list
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Update to use IReadOnlyDictionary
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added method to abstract class
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Striving for consistency in how properties are specified on the record
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Refactored enum extensions out to Dapr.Common since it will be used in AI project
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added JSON converter for System.Text.Json to handle enum serialization based on the enum member attributes
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added unit tests to prove out generic enum JSON converter using EnumMember attributes
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added JSON converter to new enum for Dapr Conversation role
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Set up role to map to the string used in grpc call to sidecar
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* No need for the JSON converter after all
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added missing package version to fix build error
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed duplicate using statement breaking build
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed missing [Fact] annotation
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated proto types to reflect type name changes in https://github.com/dapr/dapr/pull/8250
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added support for service lifetime
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Building out documentation for Dapr AI
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Simplified registration
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Tweaked package version
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Using IConfiguration to source DaprClient values if provided in service provider
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed Models.* directories, flattened into Conversation namespace
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Swapped out to use IReadOnlyDictionary
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added suggested optimization
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed bad using statement
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updates to use uniform method for standing up new Dapr clients
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed duplicate project reference
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed build error
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixing build errors
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed bad references
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed several build errors
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixing more build errors
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to fix several build errors
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed bad refernce
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixing more build errors
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Role is required when submitting conversation input
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed impossible path since the role cannot be nullable
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed impossible path from logic now that role cannot be null
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Handled generic actor interface
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added more actor examples
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated actor namespace in example project
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
---------
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
Co-authored-by: Whit Waldo <whit.waldo@innovian.net>
* Building out Dapr.Messaging and test project for streaming pubsub subscriptions
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added copyright notices
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Minor stylistic updates
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added generic client builder to support publish/subscribe client builder
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Tweaked XML comment
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added several unit tests for the generic client builder
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to include latest review changes:
- Added lock so that while we guarantee the method is called only once, it should be thread-safe now
- Marked PublishSubscribeReceiver as internal so its members aren't part of the public API
- Updated TopicMessage to use IReadOnlyDictionary
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Switched to interlock exchange instead of lock to slightly simplify code
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added sample project
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Minor changes to unit test
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Deleted protos folder
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Using lowercase protos dir name
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added registration extension methods
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated example to use DI registration
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added default cancellation token
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Passing stream into method instead of creating it twice
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Samples - Add k8s deployment yaml to DemoActor sample (#1308)
* up
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed build
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added scripts for image build
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added readme Build and push Docker image
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added demo-actor.yaml
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed typo
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated guide, fixed invocation throw curl
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Removed dockerfile, updated readme, removed ps1 and sh scripts
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated base image
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Update demo-actor.yaml
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added overload for DaprClient DI registration (#1289)
* Added overload for DaprClient DI registration allowing the consumer to easily use values from injected services (e.g. IConfiguration).
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added supporting unit test
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Merge `release-1.13` back into `master` (#1285)
* Update protos and related use for Dapr 1.13. (#1236)
* Update protos and related use.
Signed-off-by: Phillip Hoff <phillip@orst.edu>
* Update Dapr runtime version.
Signed-off-by: Phillip Hoff <phillip@orst.edu>
* Init properties.
Signed-off-by: Phillip Hoff <phillip@orst.edu>
---------
Signed-off-by: Phillip Hoff <phillip@orst.edu>
* Update artifact action versions. (#1240)
Signed-off-by: Phillip Hoff <phillip@orst.edu>
* Make recursive true as default (#1243)
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
* Fix for secret key transformation in multi-value scenarios (#1274)
* Add repro test.
Signed-off-by: Phillip Hoff <phillip@orst.edu>
* Fix for secret key transformation in multi-value scenarios.
Signed-off-by: Phillip Hoff <phillip@orst.edu>
---------
Signed-off-by: Phillip Hoff <phillip@orst.edu>
* Update Dapr version numbers used during testing.
Signed-off-by: Phillip Hoff <phillip@orst.edu>
---------
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
---------
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
Co-authored-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Aligned nuget version
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* UP
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* UP
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Debug profile added
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated implementation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Emitted DAPR001 Diagnostic warning
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added DAPR002 diagnostic
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Cleaun
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* UP
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added summaries
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added base interface to ActorClient
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added ctor
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added nullable directive
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added null check for actorproxy ctor parameter
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Moved DiagnoticException in a dedicate cs file
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Moved generator costants to dedicated class
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added ActorReference creation from the ActorBase class informations (#1277)
* Handled creation of ActorReference from Actor base class
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated null check
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added unit test for GetActorReference from null actore and actor proxy
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added test for ActorReference created inside Actor implementation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated description
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed test method naming
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added unit test for exception generated in case the type is not convertible to an ActorReference
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
---------
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added overload to support SDK supplying query string on invoked URL (#1310)
* Refactored extensions and their tests into separate directories
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added overload to method invocation to allow query string parameters to be passed in via the SDK instead of being uncermoniously added to the end of the produced HttpRequestMessage URI
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added unit tests to support implementation
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Marking HttpExtensions as internal to prevent external usage and updating to work against Uri instead of HttpRequestMessage.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated unit tests to match new extension purpose
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Resolved an ambiguous method invocation wherein it was taking the query string and passing it as the payload for a request. Removed the offending method and reworked the remaining configurations so there's no API impact.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed actorProxy argument null check
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Moved ActorClientDesciptor into separta cs file
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Moved textual templates to dedicated class
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated comments, property names
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added argument null check to SyntaxFactoryHelpers
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added comments
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Removed obsolete testing packages https://github.com/dotnet/roslyn-sdk/blob/main/src/Microsoft.CodeAnalysis.Testing/README.md#obsolete-packages
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Adapted existing unit test to new source generated code
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Up
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added tests for SyntaxFactoryHelpers
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated generation of ArgumentNullException
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated nullability
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed internal methods tests
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added test to IEnumerableExtensions
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Unittested GetSyntaxKinds from Accessibility
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* UP
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated assignment implementation of ctor body
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Improved unit test
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added implementation of method generation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed ArgumentNullException invocation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added test for NameOfExpression
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed ActorProxy method invocation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Simplified proxy argument definition
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Explicit generic arguments of the proxy call during generation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Handled cancellation token with default value
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed typo
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Configured eol used in NormalizeWhitespace function
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Normalized expected source
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Moved to constat the ActorProxyTypeName
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fix typo
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Created ActorProxyInvokeMethodAsync SyntaxFactoryHelper
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Removed custom concat implementation
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* fix (#1329)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* link to non-dapr endpoint howto (#1335)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Merge 1.14 release branch back into `master`. (#1337)
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed merge errors
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Updated some summaries
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Added some missing summaries
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Fixed typo
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Improved some summary text
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Improved summaries
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Handled review requests
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
* Changed SyntaxFactoryHelpers accessor to internal
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
---------
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Co-authored-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
Co-authored-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
Migrating whole solution to Central Package Management - several package version upgrades to address security advisories and otherwise.
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added method to DaprClient and GRPC implementation to call cryptography proto endpoints
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* First pass at implementing all exposed Cryptography methods on Go interface
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added examples for Cryptography block
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added missing copyright statements
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to properly support Crypto API this time
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added copyright statements
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed deprecated examples as the subtle APIs are presently disabled
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated example to reflect new API shape
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated example and readme
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added overloads for encrypting/decrypting streams instead of just fixed byte arrays. Added example demonstrating the same encrypting a file via a FileStream and decrypting from a MemoryStream.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added some unit tests to pair with the implementation
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added null check for the stream argument
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Changed case of the arguments as they should read "plaintext" and not "plainText"
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Reduced number of encryption implementations by just wrapping byte array into memory stream
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Constrainted returned member types per review suggestion
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated methods to use ReadOnlyMemory<byte> instead of byte[] - updated implementations to use low-allocation spans where possible (though ToArray is necessary to wrap with MemoryStream).
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to use encryption/decryption options instead of lots of method overload variations. Simplified gRPC implementation to use fewer methods. Applied argument name updates applied previously (plainText -> plaintext).
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated tests
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unused reference
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated examples to reflect new method shapes. Downgraded package to .net 6 instead of .net 8 per review suggestion.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to reflect non-aliased values per review suggestion
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Update to ensure that both send/receive streams run at the same time instead of sequentially.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to support streamed results in addition to fixed byte arrays. Refactored implementation to minimize duplicative code.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated example to fix compile issue
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed encrypt/decrypt methods that accepted streams and returned ReadOnlyMemory<byte>. Marked implementations that use this on the gRPC class as private instead.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added missing Obsolete attributes on Encrypt/Decrypt methods. Added overloads on decrypt methods that do not require a DecryptionOptions to be passed in.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated encrypt/decrypt options so the streaming block size no longer uses a uint. Added validation in its place to ensure the value provided is never less than or equal to 0.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated how validation works in the options to accommodate lack of the shorter variation in .NET 6
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated names of encrypt/decrypt streaming methods so everything uses just EncryptAsync or DecryptAsync
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Fixed regression that would have prevented data from being sent entirely to the sidecar. Also simplified operation per suggestion in review.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated examples to reflect changed API
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated so IAsyncEnumerable methods (encrypt and decrypt) return IAsyncEnumerable<ReadOnlyMemory<byte>> instead of IAsyncEnumerable<byte[]>.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated example to reflect change from IAsyncEnumerable<byte> to IAsyncEnumerable<ReadOnlyMemory<byte>>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Avoiding allocation by using MemoryMarshal instead of .ToArray() to create MemoryStream from ReadOnlyMemory<byte>.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Performance updates to minimize unnecessary byte array copies and eliminate unnecessary allocations.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Removed unnecessary return from SendPlaintextStreamAsync and SendCiphertextStreamAsync methods
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated exception text to be more specific as to what's wrong with the input value.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Minor tweak to prefer using using a Memory
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Deduplicated some of the Decrypt methods, simplifying the implementation
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Eliminated duplicate encryption method, simplifying implementation
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated to eliminate an unnecessary `await` and `async foreach`.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Updated stream example to reflect the changes to the API shape
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Added notes about operations with stream-based data
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
---------
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
* Remove .NET Core 3.1 support and standardize on .NET 6
Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
* Remove support for .NET 5 as well
Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
---------
Signed-off-by: Yash Nisar <yashnisar@microsoft.com>