Commit Graph

692 Commits

Author SHA1 Message Date
Simone Banchieri 79109c5fe3
added vaultKVUsePrefix on hashicorp vault secret (#929)
* added vaultKVUsePrefix on hashicorp vault secret

* consolidate if, use ParseBool

* added handling of empty string + test

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-06-22 10:16:22 -07:00
Phil Kedy 8e6b36ecdf
Importing the retry and config packages from kit instead of internal (#940)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-22 09:38:55 -07:00
Dmitry Shmulevich 1ac87d93c5
Add more tests for MongoDB state store component (#948) 2021-06-16 13:51:35 -07:00
Dmitry Shmulevich 1580e4ab04
Add 'server' field to MongoDB metadata to support DNS seedlist connection format. (#947)
*  for non-empty `server` field, the connection URI is set to 'mongodb+srv://<server>/'

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-16 11:32:22 -07:00
Dmitry Shmulevich d1b898b020
Update gocql dependency (#942) 2021-06-16 11:09:52 -07:00
Simon Leet d6e94d9415
Add devcontainer for contributors (#936)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-06-14 11:09:32 -07:00
Simon Leet bcbb31ab60
Update issue templates with security reporting info (#917)
- Add security reporting link as comment to all issue templates
- Add config.yml with security reporting and other contact info
- Fix name collision in feature_request and discussion templates

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-14 10:43:14 -07:00
Christian Kaps 3689020fb5
Update Zeebe to version 1.0 (#876)
* Update Zeebe to version 1.0

* Fix lint error regarding import

* Don't panic on error

* Log error as string

* Pass reason msg to process engine on fail job command

* Pass job specific variables as headers to a worker

* Fix formatting issue

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-11 16:34:01 -07:00
Phil Kedy 9cd7de95a1
Use a channel to signal that the retry go routine and hopefully remove the race condition that makes this a flaky test. (#937) 2021-06-11 16:18:00 -07:00
Taction 14870cb7bc
Add backoff for rabbitmq PubSub component (#862)
* Add backoff for rabbitmq

* fix lint

* fix lint

* remove backOffEnable config

* Delete backoff enable metadata

* Add a default config setting max retry to 0

* fix lint

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-06-10 00:19:46 -07:00
iamazy a59dcc44eb
Fix typo (#927)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-06-09 23:58:15 -07:00
Taction 7512c77a28
Rabbitmq pubsub component stop has not be well handled (#860)
* fix pubsub rabbitmq stop

* fix lint

* Add read lock while reading stopped

* fix lint

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-09 23:23:06 -07:00
Phil Kedy a28587ed98
Resolving gofumpt issues (#932) 2021-06-09 15:18:50 -07:00
Taction 464d53d94b
Move the common Redis code to internal (#859)
* Move pubsub redis client to internal

* Add failover for common redis. Refactor state redis.

* refactor binding redis

* fix lint

* Refactor to setting partten

* fix db and lint

* fix lint

* for backward compatibility

* Using a type alias to handle decoding duration values of -1 for Redis.

* Linter fixes

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-06-06 23:24:36 -07:00
Long Dai d499387a44
Fix Kafka binding implements Close() for cleanup (#906)
Signed-off-by: Long Dai <long0dai@foxmail.com>

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-06-04 15:47:18 -07:00
Long Dai 01ca433ad9
mqtt: implement Close (#905)
* mqtt: implement Close

Signed-off-by: Long Dai <long0dai@foxmail.com>

* feedback

Signed-off-by: Long Dai <long0dai@foxmail.com>

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-06-04 15:38:04 -07:00
Abdulaziz Elsheikh 92846ab691
nr_consul_typo fixed malformed yaml (#907)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-06-04 12:27:36 -07:00
Long Dai 95cc3f9b81
fix a typo (#910)
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-06-04 12:08:40 -07:00
Long Dai 4ee732e0bd
ci: enable gofumt linter (#887)
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-05-27 22:21:24 -07:00
문찬용 b387fcdff3
add Ping operation to`store` interface. (#757)
* add `Ping` operation.

* add `Ping` implementation of GA components

* add context to an argument for Ping

* add `Ping` implementation of blobstorage

* fix error string for passing lint

* Update blobstorage.go

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-25 23:48:46 -07:00
cinience efd198026f
Add bindings dingtalk webhook (#817)
* Add bindings dingtalk-webhook

* Fix lint

* Fixing logger dependency

* Updated tests

* Tweaks to use the "settings pattern"

* Make webhooks global again

* Update sync.map to built-in map and RWMutex

* Fixing linter errors

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-05-14 09:11:16 -07:00
Jony4 2892d6abfa
add BulkGetResponse comments (#845)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-13 23:10:09 -07:00
Taction 334728a51f
Fix race in pulsar pubsub component (#868)
* Fix race in pulsar pubsub component

* fix lint

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-13 22:50:17 -07:00
cinience 60ad18f505
Add pubsub rocketmq (#816)
* Add pubsub rocketmq

* Fix lint

* Update parseMetadata

* Update logger import

* Tweaks to use the "settings pattern"

* Support backOffConfig

* Fix err log

* Update go.mod

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-05-13 22:31:41 -07:00
cinience de417e429d
Add bindings rocketmq (#815)
* Add bindings rocketmq

* Fix lint

* Update parseMetadata

* Update logger import

* Tweaks to use "the settings pattern"

* Add back off policy configuration

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-13 15:41:49 -07:00
cinience 5e547d7efd
Add bindings nacos (#814)
* Add bindings nacos

* Fix lint

* Fixed CR #814

* Update logger import

* Update go.sum

* Remove signal handler

* Tweaks to move metadata to the "Settings pattern"

* Fixing typo

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-13 12:53:54 -07:00
Ian Luo 55ee03a5a0
Sentinel middleware support (#829)
* a prototype for sentinel middleware

* adapt sentinel's logger to dapr and optimize configs

* fix lint issue

* fix lint issues

* go mod tidy

* revise accoring to the review comments

* go mod tidy

* enhance unit tests

* fix lint issue

* fix go.sum

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-13 12:11:24 -07:00
Donovan Brown 448bf2b261
Added vaultToken support (#796) 2021-05-13 10:33:03 -07:00
Charlie Stanley e8628adafa
Merge pull request #866 from dapr/fix-slow-windows-startup
Update Aerospike to v4.5.0
2021-05-11 09:48:29 -07:00
Charlie Stanley 52accbfd28
Merge branch 'master' into fix-slow-windows-startup 2021-05-10 11:57:33 -07:00
Charlie Stanley b4e5569c24 Update Aerospike to v4.5.0 2021-05-10 18:40:33 +00:00
Artur Souza 3cc0472a41
Add function to generate CloudEvent for raw subscribed events. (#864)
* Add function to generate CloudEvent for raw subscribed events.

* address code comments.
2021-05-10 10:39:26 -07:00
Phil Kedy 1b30e75e60
Configurable retry (#854)
* no message

* Switching over usages of retry to the new package and making use of the DecodeConfig function

* Added decoding configuration using settings with a specific prefix

* Linter fixes

* Fixing linter error

* time.Sleep is the enemy

* Fix typo in comment

* Moving config to a pointer parameter so that the component can pass in the config with default values that make sense for that component.

* Renamed config struct

* Fix comment

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-06 09:43:57 -07:00
Charlie Stanley f69b9f5c34
Update redis metadata comments to reflect the new maxRetry default from v8 (#856)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-05 10:36:49 -07:00
meijin 8ea1f1bb44
fix calc ipv6num use ipv4 slice (#838)
Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
2021-05-04 18:25:19 -07:00
Charlie Stanley c314444b53
Merge pull request #804 from Taction/upgrade_redis_client_to_v8
Upgrade redis client to v8 and use context in redis pubsub component to cancel request
2021-05-04 11:39:56 -07:00
Taction a173e65ae7
Merge branch 'master' into upgrade_redis_client_to_v8 2021-05-04 23:19:54 +08:00
Charlie Stanley 053ca0b859
Do not block indefinitely on XGroupRead for redis subscriber (#855) 2021-05-03 17:44:20 -07:00
Taction 8aa279124b
Merge branch 'master' into upgrade_redis_client_to_v8 2021-04-30 11:18:50 +08:00
fox 62dbc782cb
add option to customize cluster domain of kubernetes nameresolution (#793)
* add option to customize cluster domain of kubernetes nameresolution

* add clusterDomain config to k8s name resolution

* Adding normalization of kubernetes nr config when read from YAML

* Adding copyright headers to new files

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-29 11:01:14 -07:00
zhangchao c4a62282e2 fix go mod 2021-04-29 13:30:43 +08:00
zhangchao 651d754496 Merge branch 'master' into upgrade_redis_client_to_v8
* master:
  add handle timeout to cancel req for it would be redelivered (#832)
  Add optional metadata param maxLen for redis stream PubSub component (#835)
  Implement bindings for the Zeebe workflow engine (#806)
  Automerge in contrib. (#849)

# Conflicts:
#	go.mod
#	go.sum
#	pubsub/redis/redis.go
2021-04-29 11:49:26 +08:00
Taction 61a47e8f56
add handle timeout to cancel req for it would be redelivered (#832)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-04-28 19:23:36 -07:00
Taction f376450d7c
Add optional metadata param maxLen for redis stream PubSub component (#835)
* Add optional metadata param maxLen for redis stream PubSub component

* fix fmt

* fix error info

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-04-28 18:20:48 -07:00
Christian Kaps 83803f575d
Implement bindings for the Zeebe workflow engine (#806)
* Implement bindings for the Zeebe workflow engine

* Fix PR suggestion regarding error handling

* Refactor cancel_instance test to not use a mocking library

* Refactor all tests to not use a mocking library

* Use error vars

* Fix linting error regarding ineffective error assignment

* Check for mandatory jobType

* Remove double method call

* Fix suggestion regarding mock client instantiation

* Check if either bpmnProcessId or workflowKey is given for workflow instantiation

* Changed logger module to dapr/kit. Misc tweaks.

* Fix go.mod

* Fixing some lint errors

* Ignoring linter false positive

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-28 17:23:11 -07:00
Artur Souza b180a43044
Automerge in contrib. (#849) 2021-04-28 16:12:21 -07:00
Artur Souza 3823e43f1a
Merge branch 'master' into upgrade_redis_client_to_v8 2021-04-28 12:49:48 -07:00
Donovan Brown 4a1cfea325
Fixed bug where default vaultaddr is never used. (#791)
* Fixed bug where default vaultaddr is never used.

* Fixing vault tests on Windows.

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-28 12:23:17 -07:00
Phil Kedy bce1b91aa9
Merge branch 'master' into upgrade_redis_client_to_v8 2021-04-28 13:07:42 -04:00
Christian Kaps b404517388
Use `go mod tidy` before make (#799)
* Use `go mod tidy` before make 

I have the issue with go 1.16 that I cannot build dapr because of a lot of errors with the message:

```
missing go.sum entry for module providing package ...
```

Maybe it's because of this issue: https://github.com/golang/go/issues/44129

Executing `go mod tidy` fixed it for me.

* Update mod tidy check equal to the one used in dapr/dapr

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-04-26 23:08:52 -07:00