Commit Graph

87 Commits

Author SHA1 Message Date
Bernd Verst 15fa6d186f
[Security] Remove orphaned unmaintained Temporal component (#3252)
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-11-28 18:36:33 -08:00
Bernd Verst 3398bf407a
Add Azure App Config to Conf Test infra (#3085)
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-08-15 18:05:05 -07:00
Bernd Verst a73dd1b172
Fix keyvault permissions for Crypto Conf test (#3076)
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-08-15 17:05:30 -07:00
Shivam Kumar 7a5397f05a
bulk subscribe support in azure eventhubs (#3011) 2023-08-14 23:36:28 -07:00
Alessandro (Ale) Segala a4012953ea
Add Azure AD support to Postgres configuration store and bindings (#2971)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2023-07-12 15:03:18 -07:00
Alessandro (Ale) Segala 58228efd01
Add Azure AD support to Postgres state store component (#2970)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-07-06 23:38:11 -07:00
Alessandro (Ale) Segala 3cd727a562
Crypto building block: core parts (#2690)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-03-23 00:51:27 +00:00
Ryan Lettieri 7e9b5a8b46
Creation of request and interface method for Workflow raise event (#2667)
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
Co-authored-by: Ryan Lettieri <ryanLettieri@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2023-03-17 21:15:47 +00:00
Alessandro (Ale) Segala 050ee73d61
Remove now-unused metadata properties (#2637)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-03-06 21:52:58 +00:00
ItalyPaleAle a583271b3f Updated to Go 1.20
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-02-22 21:19:41 +00:00
ItalyPaleAle 28ce086761 Updated pinned dapr/dapr in cert tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-02-17 21:29:39 +00:00
ItalyPaleAle d4e4355b03 Removed mod replacement
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-02-17 01:16:30 +00:00
ItalyPaleAle f9cf54ca6f Merge branch 'master' of https://github.com/dapr/components-contrib into release-1.10
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-02-16 23:23:23 +00:00
Josh van Leeuwen d098e38d6a
Propagate context from caller to appropriate places in the code (#2474)
* Propagates contexts to callers where appropriate.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Updates units tests with new func signature

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix linting errors

Signed-off-by: joshvanl <me@joshvanl.dev>

* Add atomic gate to alicloud rocketmq close channel.

Signed-off-by: joshvanl <me@joshvanl.dev>

* bindings/aws/kinesis use a separate ctx variable name

Signed-off-by: joshvanl <me@joshvanl.dev>

* binding/kafka: use atomic to prevent closing the channel twice

Signed-off-by: joshvanl <me@joshvanl.dev>

* bindings/mqtt3: use atomic bool to prevent close channel being closed multiple times

Signed-off-by: joshvanl <me@joshvanl.dev>

* bindings/mqtt3: use Background context for handle operations:w

Signed-off-by: joshvanl <me@joshvanl.dev>

* state/cocroachdb: add context to Ping()

Signed-off-by: joshvanl <me@joshvanl.dev>

* bindings/postgres: add comment explaining use of context.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds comment header to health/pinger.go

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/aws/snssqs: add waitgroup to wait for all go routines to finish
and block on Close(). Shuts down the subscription if there are no topic
handlers.

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/mqtt3: add atomic bool to prevent multiple channel closes. Add
wait group to block close on all goroutines to finish.

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/rabbitmq: fixes race conditions, uses atomic to prevent multiple
closes, add wait group to block close on all goroutines

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/redis: revert ctx passed when it could be cancelled. Add wait
group wait when closing.

Signed-off-by: joshvanl <me@joshvanl.dev>

* state/postges: pass context in init, and wait group on close.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update all `Ping()` to `PingContext()` where possible.

Signed-off-by: joshvanl <me@joshvanl.dev>

* state/in-memory: add atomic bool to prevent closing channel multiple
times. Add wait group to block on close()

Signed-off-by: joshvanl <me@joshvanl.dev>

* state/mysql: don't use same ctx variable name

Signed-off-by: joshvanl <me@joshvanl.dev>

* Pass correct loop context to redis go routines

Signed-off-by: joshvanl <me@joshvanl.dev>

* Rename context when creating timeouts in state

Signed-off-by: joshvanl <me@joshvanl.dev>

* Remove state.Features() from requiring a context

Signed-off-by: joshvanl <me@joshvanl.dev>

* Revert wasm request handle Close func to be without context to
implement io.Closer interface. Add 5 second timeout. Add io.Closer
assertion in test.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Remove superfluous go lint vet directive

Signed-off-by: joshvanl <me@joshvanl.dev>

* Change Configuration Init function to take context

Signed-off-by: joshvanl <me@joshvanl.dev>

* Updates input binding interface to include a `Close() error` function. `Close`
blocks until all resources have been released and go routines have returned.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Change `Close() error` in input binding struct to `io.Closer` interface.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update go.mod files to point to dapr/dapr PR https://github.com/dapr/dapr/pull/5831

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/redis: watch closeCh to shutdown worker instead of init context.

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/aws/snssqs + bindings/kubemq: ensure closeCh is caught so Close
correctly returns

Signed-off-by: joshvanl <me@joshvanl.dev>

* Close kubemq binding client on close. Ensure kafka consumer channel
cannot be closed more than once.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Tweaks

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fixed cert tests

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* binding/mqtt3: add inline Background context instead of passing to
handleMessage

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/mqtt3: remove context from createSubscriberClientOptions

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/mqtt3: Remove `ResetConnection` func

Signed-off-by: joshvanl <me@joshvanl.dev>

* pubsub/kafka: Don't resubscribe if Subscribe is cancelled.

Signed-off-by: joshvanl <me@joshvanl.dev>

* binding/mqtt3: don't use context to control establishing connection

Signed-off-by: joshvanl <me@joshvanl.dev>

* bindings/mqtt3: Fix linting errors

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2023-02-16 14:18:35 -08:00
ItalyPaleAle d43786283f Fix small bug in PowerShell script for Azure setup
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-02-02 00:23:18 +00:00
ItalyPaleAle d7b6177b56 Event Grid binding: validate the Authorization header in incoming requests
- Changed component to require a bearer token in the Authorization header in all incoming requests
- Validate the bearer token as a JWT signed by Azure AD
- Updated the infra setup script to configure the Azure AD app correctly
- Event Grid binding now accepts any path (which can also include a random token) and not just `/api/events`

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-31 13:58:57 -08:00
ItalyPaleAle 8365df0f07 Fix flaky RabbitMQ certification tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-26 22:09:35 +00:00
ItalyPaleAle cc06a37d37 Enable fallback route in IoT hub to fix tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-21 19:46:09 +00:00
ItalyPaleAle 63621baaef And yet some more
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-20 03:46:25 +00:00
ItalyPaleAle 8c63bd84cb More fixes to script
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-20 01:05:56 +00:00
ItalyPaleAle bf1447fc10 Fixed setup-azure-conf-test due to changes in Azure CLI
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-20 00:58:39 +00:00
Deepanshu Agarwal bb7a2ec60e drop dapr runtime fork replace
Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
2023-01-12 16:38:29 +05:30
Deepanshu Agarwal b2d8e6013b
Add bulkSubscribe request params to SubscribeRequest (#2405)
* Add bulkSubscribe configuration params

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Replace dapr/dapr package to run cert tests

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Change bulkSubscribe param types

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Update latest dapr/dapr fork

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Update correct dapr/dapr version

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* change BulkSubscribeRequest to Config

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Update dapr/dapr version for cert

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Update with latest dapr fork

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
2023-01-10 09:30:25 -08:00
Mukundan Sundararajan bc63181106 drop replace for dapr runtime in cert tests
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-21 20:57:44 +05:30
Mukundan Sundararajan fac573de8e fix dependency for dapr/dapr based on PR
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-20 23:13:31 +05:30
Mukundan Sundararajan cff6d7b6b1 Merge remote-tracking branch 'upstream/master' into optimize-bulkpubres-struct 2022-12-20 23:04:19 +05:30
seachen 5dda098868 feature: add context to lock&pubsub API
Signed-off-by: seachen <seachen@tencent.com>
2022-12-19 09:11:53 +08:00
Mukundan Sundararajan 0f63ac30b5
Merge branch 'master' into optimize-bulkpubres-struct 2022-12-16 08:02:32 +05:30
Mukundan Sundararajan 5a2be14231 fix cert test dependency to dapr/dapr PR dependency
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-15 23:05:11 +05:30
seachen 6052c9a8be feature: add context to lock&pubsub API
Signed-off-by: seachen <seachen@tencent.com>
2022-12-14 22:26:50 +08:00
seachen d4594c9acd feature: add context to lock&pubsub API
Signed-off-by: seachen <seachen@tencent.com>
2022-12-14 20:57:07 +08:00
seachen 49ee0616be feature: add context to lock&pubsub API
Signed-off-by: seachen <seachen@tencent.com>
2022-12-14 20:48:13 +08:00
Mukundan Sundararajan 412bf8f2a9 fix cert test dependency to dapr/dapr PR dependency
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-14 11:42:32 +05:30
Mukundan Sundararajan 71a543aed7 fix cert test dependency to dapr/dapr PR dependency
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-14 11:01:51 +05:30
Alessandro (Ale) Segala 9412f7afed
Merge branch 'master' into set-default-ttl-cosmosdb 2022-12-13 11:14:41 -08:00
1046102779 0b0a7298f6 feature: add context to state API
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-08 16:24:53 +08:00
1046102779 2dd7433a59 feature: add context to state API
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-08 15:56:51 +08:00
Mukundan Sundararajan 4e6963d51d only enable ttl
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-08 12:09:33 +05:30
Mukundan Sundararajan 7e37468953 set default ttl field for cosmosdb to enable ttl support.
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-07 15:21:43 +05:30
Tiago Alves Macambira 9d6f1e0ded Additional tests for Hashicorp Vaul Secret Store certification.
* This PR adds additional tests to complete vault certification.
  A detailed test plann is added to its README.
* Fixes a vault behaviour regarding its multiple key-values per
  secret behaviour when its `valueType` flag is set to `text`.

This is a follow up to dapr/components-contrib#2140.

Closes #1926.

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
2022-11-25 19:19:02 -08:00
Ryan Lettieri d86310b3e9 Removing worker binary from temporal workflow and updating error messages
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-22 02:16:51 -06:00
Ryan Lettieri 1ce46ee938 Running mod tidy on temporal test files
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-12 12:28:39 -06:00
Ryan Lettieri 2aa43ae033 Fixing temporal conformance test
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-12 12:14:50 -06:00
Ryan Lettieri 648e60d8dc Fixing worker for temporal
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-12 11:36:32 -06:00
Ryan Lettieri 181519615a Fixing all the include errors in workflows building block review and merging in master
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-12 10:45:35 -06:00
Ryan Lettieri bcd54e0d72 Updates to workflows to be compatible with pluggable components changes
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-12 10:05:14 -06:00
Ryan Lettieri 9ba415b893 Initial creation of workflows building block
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-12 09:58:35 -06:00
Ryan Lettieri 21cbd928e8 Merged in changes from master into workflows
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-10-10 09:44:27 -06:00
Tiago Alves Macambira 4b09c92ca5
Certification tests for HashiCorp Vault Secret Store. (#2140)
* Certification tests for HashiCorp Vault Secret Store.

Closes #1926

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Remove check for Feature/Capabilities as it is not exposed correctly under dapr 1.8.

We can re-enable those tests and verifications when this is fixed on dapr/dapr.

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Add network instability to test plan and execution.

Signed-off-by: Tiago Alves Macambira <macambira@gmail.com>

* Fix typo

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Ensure Vault exposes feature FeatureMultipleKeyValuesPerSecret.

We now depend on a pinned version of dapr/dapr, one that includes
dapr/dapr#5208. By doing so we could enable feature/capabilities
introspection using the metadata API.

Signed-off-by: Tiago Alves Macambira <macambira@gmail.com>

* Fix mod tidy

Signed-off-by: Tiago Alves Macambira <macambira@gmail.com>

* Remove mention to memcache

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
Signed-off-by: Tiago Alves Macambira <macambira@gmail.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-29 12:20:20 -07:00
Ryan Lettieri 3bb359ee4b Reverting changes to worker go.mod file for compatibility issues
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-12 16:17:42 -06:00