code
stringlengths
0
56.1M
repo_name
stringclasses
515 values
path
stringlengths
2
147
language
stringclasses
447 values
license
stringclasses
7 values
size
int64
0
56.8M
# Dapr 0.10.0 It's been six weeks, and We're happy to announce the release of Dapr v0.10.0! With Dapr approaching v1.0, our releases increasingly focus on operational concerns like stability, reliability, and upgradability in production environments. As always, community and user requests and feedback are top of mind along with bug fixes. We would like to extend our thanks to all new and existing contributors who helped make this release happen. **Highlights** * Support for multiple Pub/Sub components ([Publisher](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/#step-3-publish-a-topic), [Subscriber](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/#step-2-subscribe-to-topics) * [Support for Windows Containers]((https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-hybrid-clusters/) * [New Bulk Get API for State](https://docs.dapr.io/reference/api/state_api/#get-bulk-state) * [New Transactions API for State](https://docs.dapr.io/reference/api/state_api/#state-transactions) * Highly available control plane on Kubernetes * [Production deployment and upgrade guidelines for Kubernetes](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-production/) * Improved [Go](https://github.com/dapr/go-sdk) and [Python](https://github.com/dapr/python-sdk) SDKs * [Improved Dashboard with new features](https://github.com/dapr/dashboard) * New CLI commands (view root cert expiry, export TLS certs, init on k8s with a custom namespace) * New components: [InfluxDB binding](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/influxdb/), [Non-interactive OAuth2 middleware](https://docs.dapr.io/operations/security/oauth/#define-a-client-credentials-grant-component), [Azure Blob Storage state store](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/blobstorage/) If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/) and the [Developing applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-0.10.0) section on upgrading Dapr to version 0.10.0. ## New in this release ### Dapr Runtime **Refactored** Kubernetes operator with Kubebuilder, allowing for multi-replica reconciliation (Thanks @yittg) **Added** Windows containers support **Added** support for multiple pub/sub components **Added** Bulk Get API **Changed** command line arguments **Added** stdout log exporter (Thanks @brendandburns) **Fixed** actors stability bug under high RPS **Added** Windows e2e tests **Removed** outdated third-party vendor docs (Thanks @yittg) **Fixed** actor reminder firing twice bug **Added** topic field to Pub/Sub cloud events spec (Thanks @allymparker) **Upgraded** to use Go 1.15 **Removed** glog dependency and redundant flags **Fixed** race condition in actor timers **Updated** dashboard permissions Helm chart **Fixed** test default values for `TARGET_OS` and `TARGET_ARCH` **Added** CPU/Memory utilization for performance tests **Added** ability to turn off telemetry for performance tests **Fixed** sidecar not resolving secrets after first time installation **Removed** state retry options **Fixed** actor reminders overwrite bug **Added** Grafana dashboards as part of release assets **Fixed** `grpc_client_method` and `grpc_client_status` metrics tags always empty bug (Thanks @kirk91) **Added** log entry on sidecar when API auth token is enabled **Added** versioning scheme to component definition **Updated** pub/sub to CloudEvents 1.0 spec **Added** High availability option to Helm Chart **Fixed** operator k8s service update bug (Thanks @yittg) **Added** traceparent header in gRPC call ### Dapr CLI **Added** support for multi pub/sub in `publish` command **Added** command to export existing TLS certificates in a Kubernetes cluster **Added** command to check on TLS root cert expiry date **Changed** `dapr init -k` to allow for custom namespaces, HA mode and TLS enabled/disabled **Changed** command line arguments to be consistent with `daprd` **Fixed** version flag not uniform in standalone/Kubernetes modes **Updated** helm message for `uninstall --all` command **Added** webhook to trigger homebrew release **Changed** init and uninstall behavior for self hosted mode ### Components **Added** oauth2 client authorization middleware (Thanks @h2floh) **Added** Azure Blob Storage state store (Thanks @ksivamuthu) **Added** InflubxDB output binding (Thanks @gbaeke) **Added** TLS support for MQTT pub/sub (Thanks @kumaya) **Fixed** SQL Server data serialization issue with gRPC **Fixed** RabbitMQ pub/sub consumer exclusivity bug **Updated** output bindings operations list **Added** Metadata field to transactional state request **Fixed** SQL Server connection leak issue **Updated** Kubernetes events input binding with new payloads ### Java SDK **Added** multi pub/sub support **Updated** k8s annotations, CLI options and daprd arguments **Updated** API to support HTTP extensions **Removed** retry options from state **Fixed** gRPC manager not shutting down ### .NET SDK **Added** multi pub/sub support **Updated** actor usage docs (Thanks @tomkerkhove) **Updated** proto package with Any type (Thanks @akkie) **Fixed** null reference exception when no model binder provided (Thanks @altinoren) **Added** Bulk Get API **Updated** k8s annotations, CLI options and daprd arguments **Removed** retry options from state **Added** api token injection ### Go SDK **Added** multi pub/sub support **Removed** retry options from state **Updated** k8s annotations, CLI options and daprd arguments **Added** server side callback wrapper **Added** Bulk Get API **Added** state transactions API ### Python SDK **Added** multi pub/sub support **Updated** k8s annotations, CLI options and daprd arguments **Added** wrapper methods for state store APIs (Thanks @chinzhiweiblank) **Added** wrapper layers for gRPC **Added** server side wrapper for app callback **Added** actor service via fastapi **Added** wrapper methods for secrets API **Added** wrapper methods for pub/sub API **Added** wrapper methods for bindings API **Added** support for api token auth ### Rust SDK **Added** multi pub/sub support **Updated** k8s annotations, CLI options and daprd arguments ### JavaScript SDK **Added** multi pub/sub support **Updated** k8s annotations, CLI options and daprd arguments ### Docs **Added** Kubernetes production deployment and upgrade guidelines **Updated** multi pub/sub parts **Updated** k8s annotations, CLI and daprd arguments **Fixed** broken KEDA link (Thanks @tomkerkhove) **Updated** with new IntelliJ instructions for multiple dapr runs **Updated** API reference with state transactions API **Updated** API reference with state bulk get API **Updated** Kubernetes events input binding **Updated** troubleshoot section for configuring multiple replicas to the Kubernetes sidecar injector **Updated** state API reference to remove retry options **Updated** links to reference to new quickstarts repo ## Upgrading to Dapr 0.10.0 If you're upgrading from an older version of Dapr to 0.10.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if they have installed binary in default path /usr/local/bin/ or have docker command needing sudo.: ```bash dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ```bash dapr init ``` Wait for the update to finish, and you're good to go! Make sure you have the right runtime version (0.10.0) with: ```bash dapr --version ``` ### Kubernetes #### Upgrading from 0.9.0 If you previously installed Dapr using Helm, starting with this releases you can now upgrade Dapr to a new version. If you installed Dapr using the CLI, go [here](#starting-fresh). *Note: For this release only, you will not be carrying your old certs over due to a [breaking change](https://golang.org/doc/go1.15#commonname) in Go 1.15. To see the full documentation regarding upgrading Dapr, see [here](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-production/#upgrading-dapr-with-helm).* ##### 1. Get the latest CLI Get the latest version of the Dapr CLI as outlined above, and put it in your path. You can also use the helper scripts outlined [here](https://docs.dapr.io/getting-started/install-dapr/#install-the-dapr-cli) to get the latest version. ##### 2. Upgrade First, update your Helm repos: ``` helm repo update ``` Run the following command to upgrade Dapr: ``` helm upgrade dapr dapr/dapr --version 0.10.0 --namespace dapr-system --reset-values ``` Wait until all the pods are in Running state: ``` kubectl get pods -w -n dapr-system ``` Verify the control plane is updated and healthy: ``` dapr status -k ``` Next, issue a rolling update to your Dapr enabled deployments. When the pods restart, the new sidecar version will be picked up. ``` kubectl rollout restart deploy/<DEPLOYMENT-NAME> ``` All done! #### Starting fresh If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: *Note: Make sure you're uninstalling with your existing CLI* ```bash dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ```bash helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` Update the Dapr repo: ```bash helm repo update ``` If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, you can use the CLI: ``` dapr init --kubernetes ``` #### Post installation Verify the control plane pods are running and are healthy: ``` dapr status -k dapr-sentry dapr-system True Running 0.10.0 1d 2020-08-18 10:15.21 dapr-operator dapr-system True Running 0.10.0 1d 2020-08-18 10:15.21 dapr-sidecar-injector dapr-system True Running 0.10.0 1d 2020-08-18 10:15.21 dapr-placement dapr-system True Running 0.10.0 1d 2020-08-18 10:15.21 ``` After Dapr 0.10.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes ### Multi Pub/Sub With the v0.10.0 release, we have added the support for multiple pub/sub components. That means that you can now publish and subscribe to topics arriving from different components. To this end, several changes have been made to both the publisher and consumer sides. #### Publisher An additional parameter has been added to tell Dapr which pub/sub component you're targeting. Old API: ``` POST http://localhost:<daprPort>/v1.0/publish/<topic> ``` New API: ``` POST http://localhost:<daprPort>/v1.0/publish/<pubsubname>/<topic> ``` #### Subscriber > Note: The following example is in JavaScript but applicable to all languages An additional `pubsubName` field has been added to the subscription payload to tell Dapr which pub/sub component this subscription is for. Old subscription: ```javascript app.get('/dapr/subscribe', (req, res) => { res.json([ { topic: "newOrder", route: "orders", } ]); }) ``` New subscription: ```javascript app.get('/dapr/subscribe', (req, res) => { res.json([ { topic: "newOrder", route: "orders", pubsubName: "messagebus" } ]); }) ``` Changes have been made to the different SDKs, so make sure to get the latest version of the SDK you're using. Specifically, the subscription structures have added a `pubsubName` field and the publish methods take the `pubsubName` argument. #### CLI The `publish` command on the Dapr CLI now takes a required param `--pubsub` to specify the pubsub component: ``` dapr publish --pubsub pubsub --topic myevent --data '{ "name": "yoda" }' ``` ### State retries The retry options for state operations have been removed. If you've never used retries, this is not a breaking change. The updated API references can be found [here](https://docs.dapr.io/reference/api/state_api/). ### Java SDK The Service Invocation method now accepts an HTTPExtension argument. Old method call: ```java client.invokeService(serviceAppId, method, message); ``` New method call: ```java client.invokeService(serviceAppId, method, message, HttpExtension.NONE); ``` ### CLI install path The command `dapr init` will now install the runtime binary `daprd` into `$HOME/.dapr/bin` for Mac/Linux and `%USERPROFILE%\.dapr\` for Windows. In addition, the `--install-path` argument has been removed from the `dapr init` and `dapr uninstall` commands.
mikeee/dapr
docs/release_notes/v0.10.0.md
Markdown
mit
13,933
# Dapr 0.11.0 We're happy to announce the release of Dapr v0.11.0! Our Dapr releases are increasingly focused on addressing operational concerns like: security, stability, and reliability. Additionally, given the growing number of Dapr deployments, we have further refined out the upgrade process to enable durable production environments. Direct user feedback is the primary input into our release planning process. As with every release, we look forward to hearing from you on any friction you may have experienced using Dapr. We would like to extend our thanks to all the new and existing contributors who helped make this release happen. **Highlights** * [Declarative pub/sub topic subscription](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/#declarative-subscriptions) support * [Access control policies and SPIFFE based identities for Service Invocation](https://docs.dapr.io/developing-applications/building-blocks/service-invocation/service-invocation-overview/#service-access-security) * [Scoping for secrets](https://docs.dapr.io/developing-applications/building-blocks/secrets/secrets-scopes/) used in applications * Support for [environment variables as secret store](https://docs.dapr.io/operations/components/setup-secret-store/supported-secret-stores/envvar-secret-store/) for development and updated [Secrets store](https://github.com/dapr/quickstarts/tree/master/secretstore#run-locally) quickstart to use local secret store * [Cross namespace support for service invocation](https://docs.dapr.io/developing-applications/building-blocks/service-invocation/howto-invoke-discover-services/#namespaces) * New components: [RethinkDB binding](https://docs.dapr.io/operations/components/setup-state-store/supported-state-stores/setup-rethinkdb/), [Open Policy Agent middleware](https://docs.dapr.io/developing-applications/middleware/middleware-opa-policies/), [Bi-directional PostgreSQL binding](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/postgres/) * Starting with this release, Dapr Helm chart repo has moved to [dapr.github.io/helm-charts](https://dapr.github.io/helm-charts/). In case of in-place cluster upgrade, the steps for adding the new repository to Helm are [outlined below](#2-upgrade-existing-cluster). If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-0.11.0) section on upgrading Dapr to version 0.11.0. ## New in this release ### Dapr Runtime - **Refactored** code style, remove unnecessary code, use defer for unlock operation (Thanks @skyao) - **Refactored** to use github.com/pkg/errors instead of fmt.errorf (Thanks @jigargandhi and @ShaileshSurya) - **Added** code to increase Dapr logging verbosity from app -> sidecar - **Added** optional metadata field to the State APIs - **Removed** non transactional state APIs from actors - **Added** error field to Bulk Get API - **Fixed** empty fields in Bulk Get API JSON response - **Changed** perf test payload size - **Added** service invocation REST API Swagger docs (Thanks @dancadana) - **Fixed** actor returns 200 on GET if key is not present - **Added** requests authentication from api-server in sidecar injector - **Fixed** 'host removed' log prints multiple times per second - **Fixed** response handling from pub/sub message delivery on gRPC - **Added** E2E tests for actor state scenario - **Updated** E2E test components to fetch values from secrets (Thanks @yittg) - **Added** support for cross namespace service discovery in service invocation - **Added** decision record for parity between GetState and SaveState API - **Fixed** return 400 on actor not found - **Updated** speed of Windows CI E2E tests - **Refactored** component processing during runtime init (Thanks @yittg) - **Fixed** actor E2E tests intermittent failure - **Added** log for a loaded component in runtime - **Changed** NATS server to NATS streaming for pub/sub (Thanks @abserari) - **Added** declarative mechanism to create topic subscription - **Fixed** sidecar injector logging admission response (in previous release, under certain condition when running in Kubernetes, this could have included potentially private information). - **Fixed** opaque error message on missing "dapr.io/id" - **Added** label to control plane pods in Helm chart - **Fixed** dapr-operator has cluster-admin permissions in Kubernetes (Thanks @gunniwho) - **Fixed** intermittent E2E test failures for pub/sub - **Fixed** serialization issues with transaction upsert gRPC API - **Fixed** Dapr dashboard does not have a Windows image. Force it to Linux in Helm chart. - **Added** strong SPIFFE based IDs to sentry workload certificates - **Added** load test for actors - **Added** code coverage GitHub action - **Added** decision record regarding adding content type to state - **Added** scoping for secrets - **Fixed** dapr-placement seems to fail randomly - **Fixed** publishing to component w/o topic returns 200 - **Fixed** multi pub/sub 'PubSubName' abstraction broken - **Added** access control lists for Service Invocation - **Fixed** config file to disable mTLS in e2e tests (Thanks @skyao) - **Fixed** Dapr does not install on ARM64 cluster ### Dapr CLI - **Updated** to go lang version 1.15 - **Fixed** logs make it sound like everything is fully running when not - **Fixed** Dapr status command does not show control plane correctly in HA mode - **Fixed** publish command when dashboard is running - **Updated** CLI waits for dapr sidecar before running apps without port - **Added** code coverage GitHub action - **Fixed** dapr dashboard -p flag is not working - **Changed** Helm chart repo from ACR to GitHub repo - **Added** ARM64 binary support ### Dashboard - **Added** support for ARM architecture - **Fixed** passing port configuration from command line ### Components - **Refactored** local secret store based on file - **Added** support for environment variables as secret store - **Updated** MQTT publish for multi pub/sub (Thanks @kumaya) - **Fixed** CosmosDB component metadata support in ExecuteStateTransactionRequest - **Added** pub/sub response type - **Added** Qos to rabbitMQ binding (Thanks @abserari) - **Added** OPA HTTP middleware (Thanks @RichiCoder1) - **Added** Redis failover feature to Redis state store Components (Thanks @abserari) - **Added** code coverage GitHub action - **Added** option for base64 decoding in Azure Blob Storage output binding component (Thanks @mtaghavi2005) - **Added** get operation for Azure Blob Storage output binding - **Fixed** broken consistency values for CosmosDB state component - **Fixed** NATS streaming has a NATS logger but not a Dapr logger (Thanks @abserari) - **Fixed** Multi() transaction operations API for redis to use HSET and HDEL - **Added** bi-directional output binding for PostgreSQL - **Fixed** return effective URL of Azure Blob Storage document created when using an output binding - **Added** RethinkDB state component for time-series data use-cases ### Java SDK - **Added** support for W3C tracing - **Added** support for DAPR_API_TOKEN injection into calls - **Added** content type metadata support in gRPC invoke service calls - **Added** metadata support for State APIs - **Added** support for Bulk Get State API - **Added** support for State Transaction API - **Added** code coverage GitHub action - **Updated** state store and secrets store examples ### .NET SDK - **Added** metadata support for State APIs - **Added** support for State Transaction API - **Added** ability to specify default DaprClient options to AddDapr (Thanks @EdwinVW) - **Added** support to send headers as metadata to sidecar (Thanks @amolenk) - **Fixed** MarkerService pattern for preventing multiple registrations of a service for DI does not work (Thanks @EdwinVW) ### Go SDK - **Added** sample application for pub/sub (Thanks @abserari) - **Fixed** README documentation (Thanks @li1234yun) - **Added** support for pub/sub event handling code, retry logic - **Added** consistent support for parent trace ID in client requests - **Added** explicit Dapr API authentication token support - **Added** metadata support for State APIs - **Added** code coverage GitHub action ### Python SDK - **Added** support for Bulk Get State API - **Added** example for scoping of secrets - **Added** support for State Transaction API - **Added** metadata support for State APIs - **Added** support to save multiple states ### Rust SDK - **Added** metadata support for State APIs (Thanks @gdhuper) ### JavaScript SDK - **Added** metadata support for State APIs ### Docs - **Fixed** kubectl command to apply correct yaml file (Thanks @awolf) - **Fixed** broken links to binding docs (Thanks @awolf) - **Added** docs for changes to local secret store - **Updated** actors API reference doc - **Updated** pub/sub API reference doc - **Updated** state API reference doc - **Fixed** broken links (Thanks @sau-lanvy) - **Added** cross namespace information for service invocation - **Added** declarative pub/sub documentation - **Updated** documentation for Prometheus and Grafana setup - **Added** disclaimer about plain text secrets - **Added** Redis failover guidelines (Thanks @abserari) - **Added** secrets scoping information - **Fixed** missing line continuation in commands - **Added** configuration options doc for decodeBase64 (Thanks @mtaghavi2005) - **Updated** Helm chart links - **Updated** NATS streaming setup and deleted NATS setup (Thanks @abserari) - **Added** case-sensitivity of input parameters (state keys, pubsub topics) - **Added** clarification on use of CloudEvents during publish - **Updated** Azure Blob Storage binding documentation - **Refactored** service invocation and state management concepts doc - **Updated** Queue depth autoscaling docs for KEDA v2.0-beta - **Fixed** incorrect spelling in docs (Thanks @harrykimpel) - **Fixed** incorrect spelling in docs (Thanks @pkedy) ## Upgrading to Dapr 0.11.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if they have installed binary in default path /usr/local/bin/ or have docker command needing sudo: ```bash dapr uninstall --all ``` Next, follow [these](https://github.com/dapr/cli#installing-dapr-cli) instructions to install the latest CLI version, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init ``` Wait for the update to finish, ensure you are using the latest version of Dapr(0.11.0) with: ```bash $ dapr --version CLI version: 0.11.0 Runtime version: 0.11.0 ``` ### Kubernetes #### Upgrading from 0.10.0 If you previously installed Dapr using Helm, starting with this releases you can now upgrade Dapr to a new version. If you installed Dapr using the CLI, go [here](#starting-fresh-install-on-a-cluster). ##### 1. Get the latest CLI Get the latest version of the Dapr CLI as outlined above, and put it in your path. You can also use the helper scripts outlined [here](https://github.com/dapr/cli#installing-dapr-cli) to get the latest version. ##### 2. Upgrade existing cluster First, add new Dapr helm repository(see [breaking changes](#breaking-changes)) and update your Helm repos: ```bash helm repo add dapr https://dapr.github.io/helm-charts/ --force-update helm repo update ``` Run the following commands to upgrade the Dapr control plane system services and data plane services: * Remove ClusterRole Binding (**Needed** for upgrading to v0.11.0. This is for this release only.) ``` kubectl delete clusterrolebinding dapr-operator ``` * Export certificates ``` dapr mtls export -o ./certs ``` * Updating Dapr control plane pods * Using the certs exported above, run the following command: ``` helm upgrade dapr dapr/dapr --version 0.11.0 --namespace dapr-system --reset-values --set-file dapr_sentry.tls.root.certPEM=./certs/ca.crt --set-file dapr_sentry.tls.issuer.certPEM=./certs/issuer.crt --set-file dapr_sentry.tls.issuer.keyPEM=./certs/issuer.key ``` * Wait until all the pods are in Running state: ``` kubectl get pods -w -n dapr-system ``` * Verify the control plane is updated and healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.3.0 15s 2020-09-28 13:07.39 dapr-sidecar-injector dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 dapr-sentry dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 dapr-operator dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 dapr-placement dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 ``` * Updating the data plane (sidecars) * Next, issue a rolling update to your Dapr enabled deployments. When the pods restart, the new Dapr sidecar version will be picked up. ``` kubectl rollout restart deploy/<DEPLOYMENT-NAME> ``` All done! #### Starting fresh install on a cluster If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: *Note: Make sure you're uninstalling with your existing CLI version* ```bash dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ```bash helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` Update the Dapr repo: ```bash helm repo update ``` If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, you can use the newer version of CLI: ``` dapr init --kubernetes ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.3.0 15s 2020-09-28 13:07.39 dapr-sidecar-injector dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 dapr-sentry dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 dapr-operator dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 dapr-placement dapr-system True Running 1 0.11.0 15s 2020-09-28 13:07.39 ``` After Dapr 0.11.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes ### Helm chart repository change Dapr Helm chart repository has been migrated from `https://daprio.azurecr.io/helm/v1/repo` to `https://dapr.github.io/helm-charts/`. Run the below commands to use add new repository: ```bash helm repo add dapr https://dapr.github.io/helm-charts/ --force-update helm repo update ``` ### Dapr Runtime #### Serialization changes for gRPC State Transaction APIs A double serialization issue when gRPC State Transaction API was used, has been fixed in this release. As a result, states previously saved via the gRPC State Transaction API, will not be properly deserialized with the latest v0.11.0 version of the code. For example previously, a string saved using the gRPC State Transaction API was saved as: ``` \"saved state\" ``` When deserialized, it would be read as `"saved state"` instead of `saved state`. Similarly for JSON serialized values, it was marshaled once again and then saved. This has been fixed in v0.11.0 and the double serialization removed. Any code that expects the value in the previous incorrectly serialized format will need some changes to work with v0.11.0. Read more [here](https://github.com/dapr/dapr/issues/2016). ### Components Contrib #### Implementation of NATS pub/sub component changed The implementation of NATS pub/sub component changed from NATS serving to NATS streaming. Read more about it [here](https://docs.dapr.io/operations/components/setup-pubsub/supported-pubsub/setup-nats-streaming/) for NATS streaming setup and usage. ### Rename of the local secret store to secretstores.local.file The local secret store component type has been renamed from `secretstores.local.localsecretstore` to `secretstores.local.file`. If you have used this component, you will need to change the type name in your configuration file. ### Java SDK #### W3C Tracing support The Java SDK supports sending and receiving trace context with the API calls. All APIs have a complex Request object with builders, with the method ```java withContext(io.grpc.Context context) ``` to pass trace context to Dapr. Similarly the responses from Dapr APIs are now wrapped in a [Response](https://github.com/dapr/java-sdk/blob/master/sdk/src/main/java/io/dapr/client/domain/Response.java) object which contains the actual response and the context associated with it. Old method signature: ```java Mono<Void> publishEvent(PublishEventRequest request); ``` New method signature: ```java Mono<Response<Void>> publishEvent(PublishEventRequest request); ```
mikeee/dapr
docs/release_notes/v0.11.0.md
Markdown
mit
18,450
# Dapr 0.11.1 ## Fixes * Fixed Dapr sidecar authentication issue when Highly available mode is enabled (https://github.com/dapr/dapr/issues/2187) ### Overview [The issue](https://github.com/dapr/dapr/issues/2187) fixed in the 0.11.1 release contained a regression that caused the Dapr control plane services to not function when running in HA (High Availability) mode enabled. The root cause was that multiple instances (3 in the case of HA mode) of the Sentry Certificate Authority would race to create new root certs. Until the pods were restarted to load the certificate from the secret store, each instance would contain different root CAs and would issue different certificates to the Dapr control plane pods and the Dapr sidecars, which resulted in rejected connections. The issue was fixed with [this PR](https://github.com/dapr/dapr/pull/2185). In addition, an [issue was opened](https://github.com/dapr/dapr/issues/2188) to make sure that e2e tests run in HA mode in addition to a single pod setup. The issue was closed with the merging of this [PR](https://github.com/dapr/dapr/pull/2189).
mikeee/dapr
docs/release_notes/v0.11.1.md
Markdown
mit
1,106
# Dapr 0.11.2 ## Fixes * Fixed remote actor invocation timeout error on Kubernetes with mTLS enabled (https://github.com/dapr/dapr/issues/2195) ### Overview [The issue](https://github.com/dapr/dapr/issues/2195) fixed in the 0.11.2 release had a bug that caused actors to not work on Kubernetes clusters with mTLS enabled. The root cause was the result of changes made to how Dapr uses server names when doing mutual authentication in sidecar to sidecar gRPC calls. The server name format changed from `cluster.local` to `<app-id>.<namespace>.cluster.local`, and the actors runtime did not pass the namespace to the server name. That led to an authentication error that was reported to the user as a gRPC timeout deadline exceeded error. The issue was fixed with [this PR](https://github.com/dapr/dapr/pull/2196). As an immediate step, we checked why our actor e2e tests did not catch this, as this was supposed to be covered in the test. Further investigation showed that our e2e test for actors did not use Kubernetes pod to pod invocation, which did not create a gRPC connection with the wrong server name. An issue to fix the e2e test was [opened](https://github.com/dapr/dapr/issues/2197) and later [completed](https://github.com/dapr/dapr/pull/2199).
mikeee/dapr
docs/release_notes/v0.11.2.md
Markdown
mit
1,262
# Dapr 0.11.3 > Note: this hotfix is only required for the applications which uses **Dapr actor building block**. ## Summary Actor load tests were run to evaluate the performance and relibility. The test discovered [these issues](https://github.com/dapr/dapr/issues/2093) that cause memory leaks: 1. Frequent reconnections to placement service when app http endpoint is unresponsive intermitently under high load scneario 2. Memory increases from http middleware when recording request metric 3. No RSS(Resident Set Size) memory size reclaim in Kubernetes even after actors are deactivated Regarding RSS memory size issue (bug) - Daprd stores the activated actors in a [sync.Map](https://golang.org/pkg/sync/#Map) and deletes actors when these actors are deactivated. Therefore, RSS memory for Darpd containers will be increased when actor is activated, but the memory will not be decreased even after the actors are deactivated. Users will therefore still see the same amount of RSS memory usage because Go uses [MADV_FREE](https://github.com/golang/go/issues/23687) to free memory in linux. The memory is reclaimed only when it hits memory limit. We recommend that users consider setting `dapr.io/sidecar-memory-limit` and `dapr.io/sidecar-memory-request` to limit the size of Dapr sidecar memory usage. Please refer to [this article](https://www.bwplotka.dev/2019/golang-memory-monitoring/) to understand the memory usage of Go application. ## Fixes * Improve actor service health check relibility to avoid unexpected placement disconnection(https://github.com/dapr/dapr/pull/2292). * Do not track Actor ID for actor pending lock count metric(https://github.com/dapr/dapr/pull/2295)
mikeee/dapr
docs/release_notes/v0.11.3.md
Markdown
mit
1,696
# Dapr 0.2.0 We're happy to announce the release of Dapr 0.2.0. This release focuses on community-driven components (BIG thank you to everyone involved, you rock), bug fixes across the Dapr runtime and CLI, updates to documentation and samples and the addition of E2E tests. Visit the [getting started](https://docs.dapr.io/getting-started/install-dapr/) page to get started with Dapr. ## Upgrading to Dapr 0.2.0 To get the latest bits, follow the instructions [here](https://docs.dapr.io/getting-started/install-dapr/) to download the latest and greatest CLI release and binaries. Once you have the Dapr CLI in your path, run `dapr init`. Wait for the update to finish, and you're good to go! ## Kubernetes If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, first download the latest CLI release as outlined above. Once you have the CLI, run: ``` dapr uninstall --kubernetes dapr init --kubernetes ``` If installed Dapr previously via Helm, run the following command to upgrade: ``` helm upgrade dapr dapr/dapr --set global.tag=0.2.0 ``` *Note: If you installed with a different chart name, use `helm upgrade <your-chart-name>`* ## Dapr Runtime **Added** MongoDB as a State Store (w/ transactions) **Added** Cassandra as a State Store **Added** etcd as a State Store **Added** Google Cloud Firestore as a State Store **Added** Consul as a State Store **Added** Memcached as a State Store **Added** Zookeeper as a State Store **Added** NATS as a Pub/Sub message bus **Added** Azure Service Bus as a Pub/Sub message bus **Added** Hashicorp Vault as a Secrets Store **Added** Kafka bindings SASL authentication **Added** Azure Monitor tracing exporter **Added** TLS support for Redis Streams **Added** E2E tests **Fixed** Issue where rejected Pub/Sub messages were marked as processed successfully **Fixed** Issue where headers were dropped when invoking actors **Improved** Testability of the Kubernetes package **Fixed** ETag error on state deletion of a given key **Added** Retry mechanism for loading components, enabling running side-by-side with Service Meshes **Fixed** Issue where Kubernetes services were not removed when a Dapr enabled deployment is deleted **Added** Go linter checks ## CLI **Added** Ability to run Actor placement service and Redis in a Docker network **Fixed** Issue where non-default component YAMLs could not be used when executing `dapr run` **Fixed** Issue where the Actor placement container does not update on `dapr init` ## .NET SDK **Changed** Testing framework to XUnit **Removed** Redundant using statements **Updated** Actor documentation **Removed** Redundant null checks **Updated** to use span slicing instead of string substrings for Dapr format TimeSpan string ## C++ SDK **Added** A C++ SDK ## Rust SDK **Added** A Rust SDK
mikeee/dapr
docs/release_notes/v0.2.0.md
Markdown
mit
2,849
# Dapr 0.3.0 We're happy to announce the release of Dapr 0.3.0. This release focused on improvements to our [end-to-end tests infrastructure](https://github.com/dapr/dapr/tree/master/tests), making Service Discovery into pluggable components to support more hosting platforms, adding a few new components, improving CLI error messages and stability, and resolving bugs on and improving the Dotnet SDK. Visit the [getting started](https://docs.dapr.io/getting-started/install-dapr/) page to get started with Dapr. ## Upgrading to Dapr 0.3.0 To get the latest bits, follow the instructions [here](https://docs.dapr.io/getting-started/install-dapr/) to download the latest and greatest CLI release and binaries. ## Standalone Once you have the Dapr CLI in your path: ``` dapr uninstall --all dapr init ``` Wait for the update to finish, and you're good to go! ## Kubernetes If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, first download the latest CLI release as outlined above. Once you have the CLI, run: ``` dapr uninstall --kubernetes dapr init --kubernetes ``` If installed Dapr previously via Helm, run the following command to upgrade: ``` helm upgrade dapr dapr/dapr --set global.tag=0.3.0 ``` *Note: If you installed with a different chart name, use `helm upgrade <your-chart-name>`* ## Dapr Runtime **Decoupled** Service Discovery from the runtime by making discovery a pluggable component **Added** [RabbitMQ](https://docs.dapr.io/operations/components/setup-pubsub/supported-pubsub/setup-rabbitmq/) as a Pub/Sub Message Bus **Improved** Error message for unsupported state store for actors **Improved** Go import statements **Improved** End-To-End tests infrastructure and helper utils **Added** End-To-End state management tests **Added** End-To-End bindings tests ## CLI **Added** Flags to be presented as environment variables **Changed** Name of `send` command to `invoke` **Added** The ability to choose an installation path for Dapr binaries **Improved** Error message when Docker isn't running ## .NET SDK **Fixed** Unregister timer error **Added** Serialization of ReminderInfo and Timer **Added** Ability for actor type to be specified during registration **Changed** Stylecop.Analyzers to be a private dependency ## Samples **Fixed** Hello World node sample hanging if a state store isn't enabled **Improved** Structure for Hello World and Hello World Kubernetes
mikeee/dapr
docs/release_notes/v0.3.0.md
Markdown
mit
2,454
# Dapr 0.4.0 We're happy to announce the release of Dapr 0.4.0! This release includes new components, security improvements, API level enhancements, new CLI features, stability and bug fixes, a richer Java SDK, docs and samples updates. We would like to extend our thanks to all new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/install-dapr/) page and familiarize yourself with Dapr. *__Note: This release of Dapr contains [breaking changes](#breaking-changes). Read through for more details, and see [this](#upgrading-to-dapr-0.4.0) section on upgrading Dapr__* ## New in this release ### Dapr Runtime **Added** Support for multiple state stores (Breaking change in API) **Added** Automatic mTLS between Dapr instances **Updated** Main entrypoint to allow customization of included components (Thanks @pkedy) **Changed** State key delimiter **Refactored** Error codes (Thanks @shaggygi) **Updated** Output bindings to receive component name in metadata (Thanks @lynn-orrell) **Fixed** HTTP Middleware pipeline duplicate registration (Thanks @jjcollinge) **Added** Forwarding HTTP headers to pipeline (Thanks @jjcollinge) **Fixed** gRPC Cloud Events Envelope during publishing (Thanks @lhx6538665) **Removed** Vendor directory **Updated** Helm 2 to Helm 3 **Improved** Kafka installation in CI tests **Added** VSCode Dev-Container environment and documentation ### Components **Added** Twilio binding (Thanks @markrussinovich) **Added** Cloudstate Integration (Thanks @jroper @viktorklang @jboner) **Added** Azure Table Storage State Store (Thanks @aloneguid) **Added** SQL Server State Store with transactions support (Thanks @fbeltrao) **Added** Aerospike State Store (Thanks @abhirockzz) **Added** Couchbase Store (Thanks @abhirockzz) **Added** Hazalcast State Store (Thanks @abhirockzz) **Added** Managed Identity support for Azure Key Vault (Thanks @cmendible) **Added** OIDC Bearer middleware (Thanks @cmendible) **Added** Params/SSL support for MongoDB **Fixed** Block timeout issue with Redis Streams **Fixed** Goroutine leak with Azure Service Bus **Fixed** Single concurrency stream handler in Redis Streams **Fixed** NetHTTPAdapter panicing with non-nil body **Updated** Azure Blob Storage schema (Thanks @mkosieradzki) **Removed** Vendor directory **Added** Concurrency limit support for Azure Service Bus Pub/Sub (Thanks @jjcollinge) **Updated** Logrus to v1.4.2 (Thanks @thinkerou) **Added** Azure Storage Queues (Thanks @stather) **Improved** Redis tests (Thanks @David-Kunz) **Added** Middleware for rate limiting requests (Thanks @jjcollinge) ### CLI **Added** Command to view configurations in a Kubernetes cluster **Added** Command to view components in a Kubernetes cluster **Added** Command to view status for mTLS in a Kubernetes cluster **Added** Command to fetch app/dapr logs in a Kubernetes cluster **Fixed** Init command downloading -RC versions **Fixed** `dapr stop` failing on Windows **Removed** Vendor directory **Updated** Linter settings ### .NET SDK **Added** Support for multiple state stores **Fixed** Reminder not fetching state correctly **Updated** Build for Dotnet Core 3.1 LTS **Added** InvokeClient and InvokeHttpClient implementations (Thanks @jeastham1993) **Updated** Localhost to 127.0.0.1 **Updated** Actors samples to show timers and reminders (Thanks @pacodelacruz) **Fixed** Integration tests (Thanks @ryannowak) **Fixed** Actor reminders corrupt state (Thanks @chgeuer) **Added** Support for delete operations (Thanks @ryannowak) **Updated** ASP.NET core sample docs to include commands for windows **Fixed** URL generation when BaseAddress is used (Thanks @ryannowak) **Updated** Readme for Actor Sample to clarify client invocation ### Java SDK **Added** Actor support **Added** Support for bindings **Added** Support for pub/sub **Added** Support for state management **Added** Support for service invocation **Added** Unit tests **Added** Integration tests **Added** Custom serialization support **Removed** Maven dependency to run dapr for examples (Thanks @Rinita-De) ### Samples **Updated** All samples to account for multiple state stores API changes ### Docs **Added** CloudState How-To **Added** Azure Table Storage How-To (Thanks @aloneguid) **Added** Hashicorp Vault How-To **Added** mTLS How-To **Added** Hazalcast How-To **Added** SQL Server How-To (Thanks @fbeltrao) **Added** Couchbase How-To **Added** Aerospike How-To **Added** Java SDK docs **Improved** Event Hubs binding spec **Updated** docs to comply with Microsoft Doc Authoring Pack (Thanks @LaurentLesle) **Updated** Docs to account for multiple state stores API changes **Added** IntelliJ debugging guide **Added** Azure SignarlR binding docs (Thanks @fbeltrao) **Updated** Helm 2 to Helm 3 **Updated** Diagrams ## Upgrading to Dapr 0.4.0 If you're upgrading from an older version of Dapr to 0.4.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have: ``` dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ``` dapr init ``` Wait for the update to finish, and you're good to go! ### Kubernetes Download the latest CLI release as outlined above in the `Local Machine / Self-hosted` section. If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: ``` dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ``` helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ``` helm uninstall dapr ``` Wait until Dapr is uninstalled, and make sure the `dapr-system` namespace is gone. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, if you want to install Dapr in a dev/test setup, run: ``` dapr init --kubernetes ``` *For more information on upgrading to Helm 3, go to [this](https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/) link.* ## Breaking Changes With the introduction of multiple state stores, the API has changed to allow a developer to specify which state store the operation is targeting. Starting this release, any state operation is *required* to provide a state store name: ``` v1.0/state/<state-store-name>/ ``` For the latest API spec, go to [this](https://docs.dapr.io/reference/api/state_api/) link. ### Example A call to get state prior to 0.4.0: ``` curl http://localhost:3500/v1.0/state/myKey ``` A call to get state in 0.4.0: ``` curl http://localhost:3500/v1.0/state/cassandra-dev/myKey ```
mikeee/dapr
docs/release_notes/v0.4.0.md
Markdown
mit
7,170
# Dapr 0.5.0 We're happy to announce the release of Dapr 0.5.0! This release introduces a *new* Secrets API to get application secrets, comprehensive metrics for the Dapr runtime as well as Dapr's system components, the ability to scope components to a namespace and/or a list of authorized apps, improved logging with JSON output, tracing support for Pub/Sub, new components, retries for bindings and general bug fixes and stability improvements. We would like to extend our thanks to all new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/install-dapr/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Developing applications](https://docs.dapr.io/developing-applications/) section. *__Note: This release contains a few minor breakings. See [breaking changes](#breaking-changes).__* See [this](#upgrading-to-dapr-0.5.0) section on upgrading Dapr to version 0.5.0. ## New in this release ### Dapr Runtime **Added** API for getting application secrets from any Dapr supported Secret Store (Thanks @cmendible) **Added** Prometheus metrics API endpoints (Thanks @jjcollinge) **Added** Ability to scope components to a namespace, as well as to a list of authorized apps **Improved** Host IP choosing process in self-hosted mode **Fixed** Case where user app returned an error and the runtime would return success to an input binding, causing the message to be removed without being processed **Fixed** Crash in service invocation over gRPC with no data in payload **Added** Tracing for Pub/Sub messages **Added** Metrics groups including process and runtime level metrics **Improved** Logging messages and error details for components **Added** JSON formatted logs **Fixed** Possible crash where service invocations were allowed before certificate was issued (Thanks @lynn-orrell) **Improved** Docker build to allow multi-arch images **Fixed** Custom Content-Type being overridden in service invocation **Renamed** `HOST_IP` environment variable to `DAPR_HOST_IP` to manually set the Host IP for the runtime **Changed** HTTP Get State API to return `204` instead of `200` when a key does not exist ### Components **Added** AWS Secret Manager Secret Store (Thanks @sayboras) **Added** GCP Secret Manager Secret Store (Thanks @dev-drprasad) **Added** Ability to set the `toNumber` on a per-call basis for the Twilio binding (Thanks @ksivamuthu) **Updated** Secret Store Index (Thanks @RicardoNiepel) **Updated** Azure Event Hubs binding to use Event Processor Host (Thanks @abhirockzz) **Fixed** SQL Server returning error for key not found ### CLI **Changed** `dapr list` and `dapr run` to rely on metadata API, fixing sync issues and zombie processes **Added** `-k` shorthands for all Kubernetes specific commands (Thanks @CarlosLanderas) **Fixed** Error message showing on with `dapr uninstall --kubernetes` even if successful **Fixed** One line installer downloading wrong version **Changed** All `dapr-id` occurrences to `app-id` **Fixed** K8s client init when multiple contexts exist in KUBECONFIG (Thanks @CarlosLanderas) **Updated** CLI to provide warning when overriding local component YAMLs **Added** Ability to run CLI with the Dapr runtime without an app ### System Components **Added** Metrics endpoint for Sidecar-Injector **Added** Metrics endpoint for Kubernetes Operator **Added** Metrics endpoint for Sentry CA **Added** Metrics endpoint for Actors Placement Service ### .NET SDK **Added** Secrets API support **Improved** Client APIs for gRPC **Refactored** Separate Clients into a single API Client **Added** Concurrency model for state operations (Thanks @rynowak) **Added** Consistency model options for state operations (Thanks @rynowak) **Added** editorconfig and removed Stylecop.Analyzers dependency **Updated** Actor serialization to JSON by default **Updated** Usage of Newtonsoft.Json package to System.Text.Json ### Java SDK **Fixed** Hot monos in gRPC client **Added** Secrets API support **Fixed** Swallowing actor exceptions **Added** Strongly typed actors ### Samples **Fixed** Node.JS subscriber in Pub/Sub sample **Fixed** Output message for Python in Bindings sample ### Docs **Added** Observability (metrics/logs) concepts **Added** Grafana dashboard template **Changed** `Dapr ID` to `App ID` for consistency **Fixed** Pub/Sub API reference (Thanks @lynn-orrel) **Updated** Azure Event Hubs binding spec **Refactored** Concepts and API references structure **Added** Monitoring tools(metric and logs) setup How-To tutorial **Added** Secrets API How-To tutorial **Updated** Diagrams **Added** AWS Secret Manager How-To tutorial **Added** GCP Secret Manager How-To tutorial **Added** Azure Storage Queues binding spec **Added** Azure KeyVault documentation **Added** Component authorization How-To tutorial **Added** Documentation for metrics monitoring tools **Added** Documentation for logs monitoring tools **Added** Cheat-sheet for common diagnostics queries ## Upgrading to Dapr 0.5.0 If you're upgrading from an older version of Dapr to 0.5.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have: ``` dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ``` dapr init ``` Wait for the update to finish, and you're good to go! Make sure you have the right runtime version (0.5.0) with: ``` dapr --version ``` ### Kubernetes Download the latest CLI release as outlined above in the `Local Machine / Self-hosted` section. If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: ``` dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ``` helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ``` helm uninstall dapr -n dapr-system ``` ``` helm repo update ``` Wait until Dapr is uninstalled, and make sure the `dapr-system` namespace is gone. If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, if you want to install Dapr in a dev/test setup, run: ``` dapr init --kubernetes ``` ## Breaking Changes ### Azure Event Hubs Binding The Azure Event Hubs binding is now using Event Processor Host to provide reliable checkpointing. The updated YAML spec can be found [here](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/eventhubs/). ### Host IP Environment Variable The environment variable `HOST_IP` is now changed to `DAPR_HOST_IP`. ### DAPR-ID parameter removed When launching Dapr manually with the `daprd` binary, to specify the ID of the app, use `app-id` instead of `dapr-id`. ### Status Code for missing key in Get State API The HTTP Get State endpoint will now return `204 Not Found` status code instead of `200 OK`.
mikeee/dapr
docs/release_notes/v0.5.0.md
Markdown
mit
7,681
# Dapr 0.5.1 ## Fixes * Fix HTTP App channel bug when tracing is enabled (https://github.com/dapr/dapr/issues/1274)
mikeee/dapr
docs/release_notes/v0.5.1.md
Markdown
mit
117
# Dapr 0.6.0 We're happy to announce the release of Dapr 0.6.0! **Highlights** * [Added ability to scope PubSub topics per application](https://docs.dapr.io/developing-applications/building-blocks/pubsub/pubsub-scopes/) * [Added new components: Hazelcast PubSub, AliCloud Object storage binding, AWS Kinesis binding and GCP Pub/Sub PubSub](https://github.com/dapr/components-contrib) * [Introduced *new* liveness/readiness probe endpoint for Dapr sidecar](https://docs.dapr.io/developing-applications/building-blocks/observability/sidecar-health/) and [actor service health API in user application](https://docs.dapr.io/reference/api/actors_api/#health-check) * [Added mandatory TLS between the Dapr sidecar and the Dapr system services (control plane)](https://docs.dapr.io/concepts/security-concept/#sidecar-to-system-services-communication) * Improved security by separating gRPC server for internal and external APIs * Introduced Dapr longhaul-test app and environment * Improved e2e test coverage and release process for manifest yaml * Fixed major/minor bugs We would like to extend our thanks to all new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Deploying applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-0.6.0) section on upgrading Dapr to version 0.6.0. ## New in this release ### Dapr Runtime **Improved** secret reference in component config by referring `SecretKeyRef.Name` if `Key` is not given (Thanks! @lynn-orrell) **Updated** publish endpoint to allow path fragments (Thanks! @khous) **Improved** self-host component loading by allowing single yaml to have multiple component configurations (Thanks! @ksivamuthu) **Added** Hazelcast pubsub (Thanks! @peterjot) **Added** GCP Pub/Sub to dapr loader (Thanks! @ksivamuthu) **Added** AWS Kinesis input/output bindings to dapr loader (Thanks! @ksivamuthu) **Separated** gRPC server for internal/user-exposed endpoints **Added** new ssl connection enabled redis component **Added** dapr-operator.yaml to GitHub release assets via CI **Added** replicas per actor types metric to placement service **Fixed** deployment manifest yaml generation command **Fixed** http appchannel tracing bug when tracing is enabled **Fixed** trace span export bug by skipping grpc-trace-bin **Added** PubSub scoping/whitelisting **Removed** unnecessary message types from dapr.proto files **Changed** Kubernetes Operator API server from HTTP to gRPC **Improved** E2E test coverage for Service invocation (e.g. gRPC to gRPC) **Added** Support for Readiness and Liveness Probe for Dapr **Added** app health checks for actors and its e2e tests **Added** new daprd docker image that is used for sidecar image **Improved** control plane connectivity resiliency with grpc retry middleware ### Components **Fixed** key not found error by returning empty response [aerospike/Couchbase/memcache/hazelcast statestore] (Thanks! @abhirockzz, @ksivamuthu) **Added** GCP Cloud Pubsub (Thanks! @ksivamuthu) **Improved** eventhub bindings by specifying partition id and key (Thanks! @ksivamuthu) **Added** the option to decode base64 payloads [Azure Blob storage binding] (Thanks! @CarlosLanderas) **Added** AliCloud Object storage bindings (Thanks! @madhugilla) **Added** Hazelcast pubsub support (Thanks! @peterjot) **Added** AWS Kinesis data stream binding (Thanks! @ksivamuthu) **Added** metadata support to Azure Blob binding (Thanks! @RicardoNiepel) **Changed** redis client library to go-redis to enable SSL connection [redis statestore] ### CLI **Fixed** Use the full container name when checking redis (Thanks! @vjrantal) **Updated** CI to add new artifact for Homebrew **Changed** dapr-operator manifest url to GitHub Release ### System service components **Added** required TLS connection for Kubernetes Operator **Added** required TLS connection for Placement Service **Added** required TLS connection for Sentry **Updated** client validation of Sentry to require TLS certification all the time ### .NET SDK **Added** Secret Store configuration provider implementation for Microsoft.Extensions.Configuration (Thanks! @cmendible) **Updated** proto clients for 0.6.0 dapr runtime and updating DaprClient **Added** more granular actor configuration **Added** actor health check API ### Java SDK **Added** actor health check API **Added** Springboot integration ### Samples **Added** state delete call to complete sample operations (Thanks! @vsaroopchand) **Add** SDK Links to README and **fixed** typos and links in docs ### Docs **Added** GCP pubsub docs (Thanks! @ksivamuthu) **Updated** EventHub single partition id (Thanks! @ksivamuthu) **Added** Hazelcast pubsub howto (Thanks! @peterjot) **Added** metadata doc to Azure Blob binding (Thanks! @RicardoNiepel) **Added** AWS kinesis docs (Thanks! @ksivamuthu) **Improved** existing docs and **fixed** typos (Thanks! @rynowak, @drmcghee, and @eNeRGy164) **Added** Liveness and readiness probe /healthz API spec **Update** Actors healhcheck endpoint **Added** Dapr presentations **Added** PubSub scopes How-to **Updated** TLS and security docs **Improved** application insights distributed tracing onboarding guide by uploading localfowarder docker image to [dapr official dockerhub](https://hub.docker.com/r/daprio/dapr-localforwarder) ## Test-infra (Long haul test) **Added** the initial long-haul test apps: feed-generator, message-analyzer, hashtag-app **Added** longhaul-test environment **Added** CI/CD to automate test app build and deployment ## Upgrading to Dapr 0.6.0 If you're upgrading from an older version of Dapr to 0.6.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have: ```bash dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ```bash dapr init ``` Wait for the update to finish, and you're good to go! Make sure you have the right runtime version (0.6.0) with: ```bash dapr --version ``` ### Kubernetes Download the latest CLI release as outlined above in the `Local Machine / Self-hosted` section. If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: ```bash dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ```bash helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` ```bash helm repo update ``` Wait until Dapr is uninstalled, and make sure the `dapr-system` namespace is gone. If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, if you want to install Dapr in a dev/test setup, run: ``` dapr init --kubernetes ``` ## Breaking Changes ### Actor Healthz API Language specific Actor SDKs must expose /healthz endpoint and return 200. All actors SDKs must be upgraded to the latest version. ### Separated Dapr sidecar image For this release, we split the Dapr runtime binary (daprd) from daprio/dapr image to reduce the size of sidecar image. You must confirm that you deploy Dapr to Kubernetes cluster using the latest 0.6.0 Dapr cli or helm chart. ### dapr-operator.yaml location change for `dapr init --kubernetes` `dapr init --kubernetes` installs Dapr using dapr-operator.yaml deployment yaml. This release has changed the location of this yaml to [GitHub Release asset](https://github.com/dapr/dapr/releases). You must use the latest CLI. Otherwise, old Dapr CLI will be unable to install the latest Dapr to your Kubernetes cluster.
mikeee/dapr
docs/release_notes/v0.6.0.md
Markdown
mit
8,629
# Dapr 0.7.0 We're happy to announce the release of Dapr 0.7.0! With this release we focused on improvements to tracing and service invocation. This release also expands Dapr functionality with addition components. Continuing with the theme of improved stability, we also added a performance test for service invocation, fixed bugs, and added features to our long haul tests infrastructure. There are also updated to the CLI with new commands and a lot of docs updates. We would like to extend our thanks to all new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Deploying applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-0.7.0) section on upgrading Dapr to version 0.7.0. ## New in this release ### Dapr Runtime **Fixed** Trace options defaults **Fixed** gRPC load balancing not working on Kubernetes **Updated** HTTP router to `fasthttp/router` - ~4% throughput increase **Updated** Service invocation APIs and implementation with new spec **Updated** Tracing headers for new service invocation spec changes **Updated** Tracing scopes for internal and external gRPC servers (Thanks @jjcollinge) **Fixed** Actor drain variable spelling errors (Thanks @ksashikumar) **Fixed** Metadata API inconsistency **Added** Context propagation **Updated** Tracing headers to fit industry standards **Fixed** Distributed tracing call map formation **Added** gRPC API versioning **Updated** Tracing spec configuration **Moved** To using versioned Docker image tags instead of `:latest` **Added** Sampling rate for tracing configuration ### Components **Added** Azure Event Grid input/output binding (Thanks @lynn-orrell) **Added** Twitter output binding **Added** Sendgrid output binding (Thanks @benc-uk) **Added** Message time to live in RabbitMQ, Azure Service Bus/Storage Queue bindings (Thanks @fbeltrao) **Added** Support for nested partition keys in CosmosDB (Thanks @ksivamuthu) **Fixed** string escape for Azure Blob Storage (Thanks @benc-uk) **Added** TLS support for Redis binding **Added** Per call partition key support for Kafka binding ### CLI **Added** `dapr status` command for validating Kubernetes control plane health and status **Updated** `dapr init` to only pull a new binary if needed (Thanks @abhirockzz) **Added** Homebrew package for MacOS **Added** `--runtime-verion` flag support for `dapr init --kubernetes` ### System service components **Fixed** Operator not creating k8s services if a deployment is patched **Updated** Sidecar injector to add configurable resource requests and limits on sidecar container **Updated** Sidecar injector to support configurable readiness probes ### .NET SDK **Added** Actor proxy method with parameterized interface (Thanks @jpiquot) **Updated** Protobuf clients ### Java SDK **Updated** Protobuf clients **Fixed** Actor API always returning true on Contain State API call ### Docs **Added** TTL information for RabbitMQ/Azure Service Bus bindings (Thanks @fbeltrao) **Added** Added namespace metadata to deployments **Added** All Dapr sidecar annotations for Kubernetes **Added** Service invocation V1 spec **Updated** Kafka binding for partition key **Added** How To for Azure Event Hubs Pub/Sub **Added** How To for Kafka Pub/Sub **Updated** How To tutorial for Azure Application Insights **Updated** Redis binding with TLS configuration **Added** How To tutorial for using Pub Sub across different namespaces **Added** Sendgrid binding spec **Added** Readiness configuration for Kubernetes **Improved** application insights distributed tracing onboarding guide by uploading localfowarder docker image to [dapr official dockerhub](https://hub.docker.com/r/daprio/dapr-localforwarder) ## Tests **Added** Performance test for service invocation **Added** Performance test configuration and test app using Fortio **Improved** Coverage for service invocation **Added** Message analyzer delay monitor for Long Haul **Fixed** Containers not updating if config YAML doesn't change **Improved** Long haul tests validation and monitoring **Added** Long haul test snapshot monitor **Added** Long haul test hashtag counter delay monitor **Added** Long haul test Generic error spike monitor **Added** Long haul test feed stream generator **Added** Hashtag snapshot service ## Upgrading to Dapr 0.7.0 If you're upgrading from an older version of Dapr to 0.7.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have: ```bash dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ```bash dapr init ``` Wait for the update to finish, and you're good to go! Make sure you have the right runtime version (0.7.0) with: ```bash dapr --version ``` ### Kubernetes Download the latest CLI release as outlined above in the `Local Machine / Self-hosted` section. If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: ```bash dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ```bash helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` ```bash helm repo update ``` Wait until Dapr is uninstalled, and make sure the `dapr-system` namespace is gone. If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, if you want to install Dapr in a dev/test setup, run: ``` dapr init --kubernetes ``` #### Post installation After Dapr 0.7.0 has been installed, perform a rolling restart for your deployments. ## Breaking Changes ### gRPC Service Invocation #### gRPC Protobuf update - Package name in Dapr gRPC protobuf files has been changed to : - renamed to `dapr to` dapr.proto.dapr.v1` - renamed to `daprclient` - `dapr.proto.daprclient.v1` - moved the common protobuf message related to service invocation to `dapr.proto.common.v1` package #### gRPC Service invocation - If you're a Java SDK or dotnet SDK user, you must upgrade your SDK to the latest version. - If you're a JS/Python/CPP/Rust SDK user, you must upgrade your SDK to the latest version first and update your code by referring to each sdk's examples. - [javascript example](https://github.com/dapr/js-sdk/blob/master/examples/simple/app.js) - [python example](https://github.com/dapr/python-sdk/tree/master/examples/invoke-simple) - [cpp-sdk example](https://github.com/dapr/cpp-sdk/tree/master/examples/echo_app) - [rust-sdk example](https://github.com/dapr/rust-sdk/tree/master/examples) - If HTTP callee app returns non-OK status code to caller app using gRPC API, caller app's gRPC client will throw the exception in 0.7.0 release. The caller app needs to handle the exception properly. ### Tracing configuration With the 0.7.0 release, Dapr trace configuration is simplified. Users now provide a "samplingRate" value to enable or disable the traces. Set "samplingRate: "0" to disable the traces. Set "samplingRate: "1" to generate traces on every operation. Refer https://docs.dapr.io/operations/troubleshooting/setup-tracing/ for more details.
mikeee/dapr
docs/release_notes/v0.7.0.md
Markdown
mit
8,258
# Dapr 0.7.1 ## Fixes * Fix application map in publish-subscribe and bindings flow (https://github.com/dapr/dapr/issues/1533)
mikeee/dapr
docs/release_notes/v0.7.1.md
Markdown
mit
127
# Dapr 0.8.0 We're happy to announce the release of Dapr 0.8.0! **Highlights** * Added new components: [MQTT Pub/Sub](https://docs.dapr.io/operations/components/setup-pubsub/supported-pubsub/setup-mqtt/), [Apache Pulsar Pub/Sub](https://docs.dapr.io/operations/components/setup-pubsub/supported-pubsub/setup-pulsar/), [AWS SNS/SQS Pub/Sub](https://docs.dapr.io/operations/components/setup-pubsub/supported-pubsub/setup-aws-snssqs/) * [Custom Pub/Sub routes](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/#step-2-subscribe-to-topics) * [Bi-directional bindings](https://docs.dapr.io/developing-applications/building-blocks/bindings/howto-bindings/) * [Dapr API authentication](https://docs.dapr.io/operations/security/api-token/) * [W3C trace header support](https://docs.dapr.io/developing-applications/building-blocks/observability/w3c-tracing/) * [Enhanced mDNS service discovery to support host name](https://github.com/dapr/dapr/issues/1506) * [Default common components path for Dapr CLI](https://github.com/dapr/cli/issues/340) * [Added Python Actor SDK](https://github.com/dapr/python-sdk) We would like to extend our thanks to all new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-0.8.0) section on upgrading Dapr to version 0.8.0. ## New in this release ### Dapr Runtime **Added** custom routes for pub/sub (#breaking-changes) **Enriched** http and grpc status code conversion. **Added** Healthz server for control plane. **Refactored** gRPC service and protobuf message definitions. (#breaking-changes) **Fixed** Actor activation and method invocation logic to handle app restarts. **Fixed** Unpopulated metadata for input bindings for HTTP app channel. **Improved** client trace span generation calls. **Added** liveness config. **Added** disable Span Generations when tracing rate is set to 0. **Added** trace headers in API response, which allows users to correlate with **Enhanced** mDNS to support hostname and IPs. (Thanks @jjcollinge) **Added** mqtt pubsub provider to daprd. (Thanks @kumaya) **Added** Pulsar pubsub options. (Thanks @elyst) **Added** API Authentication. **Added** bi-directional bindings support. (#breaking-changes) **Added** Set Metadata option to state store Get API. **Added** opentelemetry sementic convention. **Added** SNS/SQS pubsub provider. **Added** Context timeout to internal grpc dial. **Added** Linear interval retry for Internal gRPC client. **Added** pending actor locks metric. **Generated** low-cardinality metric method label. **Fixed** marshalling error for gRPC binary metadata. **Improved** component folder search behavior by looking at home directory. (#breaking-changes) **Fixed** log options for contrib logger and enable metrics only for middleware. (Thanks @ksashikumar) **Fixed** http method label for HTTP appchannel metric. ### Components **Added** AWS SNS/SQS pubsub. (Thanks @khous) **Added** Apache Pulsar. (Thanks @elyst) **Added** MQTT pubsub. (Thanks @kumaya) **Fixed** Azure Service Bus pubsub throttling. (Thanks @jjcollinge) **Fixed** SQL server state store integration tests. (Thanks @brooke-hamilton) **Updated** mDNS resolver to respect service IP address. (Thanks @jjcollinge) **Fixed** nethttpadaper to handle UserValue in request context. (Thanks @jjcollinge) **Improved** AWS authentication for dynamodb, kinesis, s3, sns, sqs, and secretmanager. (Thanks @trondhindenes) **Improved** dynamodb component to use BatchWriteItem for BulkSet and BulkDelete. (Thanks @ksashikumar) **Added** bi-directional bindings support for all bindings components. ### CLI **Added** new flag to provide custom component directory path for dapr run. (Thanks @ksashikumar) **Added** verbose logs on failure of container uninstall and check if docker is installed. (Thanks @ksashikumar) **Improved** stop command to stop multiple apps. (Thanks @chinzhiweiblank) **Added** default components directory in user home directory. **Changed** `-p` option to `-d` to specify the payload for `dapr publish` ### .NET SDK **Added** Actor proxy method with parameterized interface. (Thanks @jpiquot) **Added** Bi-directional output binding. **Updated** Protobuf clients. (Thanks @amolenk) **Rename** actorImplementationTypeName to actorTypeName. (Thanks @fduman) **Corrected** the order of middleware chaining. **Rename** pubsub event `content` to `data`. **Changed** Actor activation logic to activate it only when actor is invoked. ### Java SDK **Updated** Protobuf clients. **Added** Bi-directional output binding. **Changed** Actor activation logic to activate it only when actor is invoked. **Rename** pubsub event `param` to `data`. ### Python-SDK **Added** Actor SDK. **Updated** Protobuf clients. **Added** Kubernetes example. (Thanks @XavierGeerinck) **Added** initial setup for sphinx. (Thanks @chinzhiweiblank) ### JS-SDK / RUST-SDK / CPP-SDK **Updated** Protobuf clients. (Thanks @gdhuper for rust-sdk update) ### Samples **Added** new Secrets example. **Added** new Docker Compose. **Updated** Distributed Calculator sample to show how to run locally. ### Docs **Added** Docker-compose howto. (Thanks @jjcollinge) **Added** docs authoring guideline **Added** pubsub custom routes **Added** liveness config annotation **Updated** actor spec to remove activation api **Added** how to enable tls for redis cache (Thanks @robinmanuelthiel) **Added** token-based authentication **Added** more exampels to Azure Event Grid binding (Thanks @Masahigo) **Added** bi-directional bindings howto **Added** mqtt pubsub howto (Thanks @kumaya) **Updated** dapr run cli to use cli components path **Added** apache pulsar pubsub howto (Thanks @elyst) **Added** AWS SNS/SQS pubsub howto (Thanks @khous) **Updated** missing steps for eventhubs **Added** use-cases to concept docs (Thanks @arschles) **Added** W3C trace context howtos **Added** Grafana Actor Dashboard **Added** how to use multi fragment path for service invocation ## Tests **Added** alerts for control plane and daprd for cpu/mem **Refactor** longhaul tests apps to use shared library ## Upgrading to Dapr 0.8.0 If you're upgrading from an older version of Dapr to 0.8.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have: ```bash dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ```bash dapr init ``` Wait for the update to finish, and you're good to go! Make sure you have the right runtime version (0.8.0) with: ```bash dapr --version ``` ### Kubernetes Download the latest CLI release as outlined above in the `Local Machine / Self-hosted` section. If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: ```bash dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ```bash helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` Update the Dapr repo: ```bash helm repo update ``` If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, if you want to install Dapr in a dev/test setup, run: ``` dapr init --kubernetes ``` #### Post installation After Dapr 0.8.0 has been installed, perform a rolling restart for your deployments. ## Breaking Changes ### Pub Sub Routes Starting this release, topic subscribers can specify the endpoint route that Dapr should call for a given topic. Old subscription JSON: ```json [ "topic1", "topic2" ] ``` New subscription JSON: ```json [ { "topic": "topic1", "route": "custom/topic1" }, { "topic": "topic2", "route": "custom2/topic2" }, ] ``` For more details, see [here](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/#step-2-subscribe-to-topics) ### Bi-directional bindings Output bindings can now optionally support operations that return data to the caller. When invoking an output binding, a new required field has been added: `operation`. Old output binding JSON: ```json { "data": { "name": "Java the Hutt" } } ``` New output binding JSON: ```json { "data": { "name": "Java the Hutt" }, "operation": "" } ``` 100% of the current bindings support the `create` operation. As new functionality is introduced to new or existing bindings, the list of supported operations can be found for each binding in the [bindings spec section](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/) in the docs. ### gRPC Protobuf update You must upgrade SDKs to the latest SDK to use the latest Dapr * Package name in Dapr gRPC protobuf files has been changed to : - renamed `dapr.proto.dapr.v1` to `dapr.proto.runtime.v1` - renamed `dapr.proto.daprclient.v1` to `dapr.proto.runtime.v1` - moved the common protobuf message related to service invocation to `dapr.proto.common.v1` package ### Dapr CLI publish option change * payload option for `dapr publish` is changed from `-p` to `-d`.
mikeee/dapr
docs/release_notes/v0.8.0.md
Markdown
mit
10,265
# Dapr 0.9.0 We're happy to announce the release of Dapr 0.9.0! **Highlights** * New components: [Scheduler binding](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/cron/), [PostgreSQL state store](https://docs.dapr.io/operations/components/setup-state-store/supported-state-stores/setup-postgresql/) * Dapr dashboard Helm integration * Command completion feature in Dapr CLI * [Initialize Dapr without Docker dependency](https://docs.dapr.io/operations/hosting/self-hosted/self-hosted-no-docker/) * [Transaction support in the Azure Cosmos DB component](https://docs.dapr.io/operations/components/setup-state-store/supported-state-stores/setup-azure-cosmosdb/) * Dapr dashboard CLI command * [Local development secret store](https://docs.dapr.io/operations/components/setup-secret-store/supported-secret-stores/file-secret-store/) * [Modified Dapr init and uninstall behavior](https://github.com/dapr/dapr/blob/release-0.9/docs/decision_records/cli/CLI-002-self-hosted-init-and-uninstall-behaviors.md) We would like to extend our thanks to all new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts) and the [Developing applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-0.9.0) section on upgrading Dapr to version 0.9.0. ## New in this release ### Dapr Runtime **Integrated** Postgresql state store (Thanks @brooke-hamilton) **Added** github actions workflow to push helm charts to githubpages helm repo **Fixed** inappropriate HTTP API status codes **Added** install dapr control plane to linux containers **Added** Dapr dashboard Helm integration **Fixed** state error messages **Added** transaction support for actors using cosmos **Added** injection of Dapr env vars in user container **Improved** http/gRPC internal metadata handling **Fixed** add trace headers if not provided in response **Added** decision record for HTTP Appcallback versioning **Added** Registering local secretstore (Thanks @cmendible) **Added** Dapr dependencies in e2e test apps whenever proto has breaking changes **Added** functionality to remove default components dir **Fixed** stateapp dockerfile **Renamed** default config to daprsystem config **Changed** servicediscovery pkg to nameresolution pkg and remove mdns code **Added** sidecar injector readiness/liveness probe path adjustement (Thanks @piotr.mscichowski) **Fixed** return GRPC OK for 2xx http status code **Fixed** Helm chart installation issue with missing package **Added** ARC-004-http-server ADR **Fixed** 1s delay for service invocation on selfhost mode **Fixed** TestSignCSR flaky test **Added** destination appID target and header tests ### Dapr CLI **Added** command completion feature to Dapr CLI (Thanks @halation3) **Added** support to initialize dapr without docker dependency **Added** new CLI dapr dashboard command (Thanks @gdhuper) **Added** support in the dashboard to accept -n namespace argument **Updated** standalone dapr init and uninstall behavior (#breaking-changes) **Updated** cli documentation to cover all command options (Thanks @halation3) **Updated** linter version to 1.26 **Fixed** timeout for linter **Added** tracing config, Zipkin component on init **Updated** dapr init behavior to create default component files (#breaking-changes) **Fixed** path truncation issue with Windows **Added** functionality to pass components folder to daprd ### Components **Added** transaction support in the Cosmos db component **Fixed** json array envelope parsing **Fixed** double envelope when published payload is already a cloud event **Added** support output to Twitter binding **Added** PostgreSQL State Store (Thanks @brooke-hamilton) **Updated** cloudevent identification **Added** scheduler (cron) binding **Fixed** Azure Service Bus lock renewal per topic (Thanks @jjcollinge) **Added** functionality to handle errors in AzureEventHubs.Read (Thanks @nilstschmidt.de) **Fixed** enableTLS to work as per the config for Apache Pulsar (Thanks @khous) **Fixed** context deadline exceeded issue with an operation timeout **Renamed** and refactored servicediscovery to nameresolution pkg **Updated** setting URL in mongoDB component to make username/password optional **Refactored** JSONSecretStore to LocalSecretStore (Thanks @cmendible) **Fixed** the minimum delay of 1s for service invocation ### Java SDK **Fixed** content-type for Spring controller **Updated** use of TypeRef for deserialization and client APIs **Updated** samples to use --components-path **Fixed** documentation for samples directory ### .NET SDK **Updated** dotnet sdk in github actions **Fixed** actor method names in getting started guide (Thanks @@LayZeeDK) **Fixed** InvokeAsync example in getting started guide (Thanks @@LayZeeDK) ### Rust/Go SDK **Added** pub sub example (Thanks @gdhuper) **Updated** and Beautified code snippet (Thanks @franpog859) ### JS-SDK **Updated** workflow to publish npm package **Updated** package.json of samples ### Docs **Added** threat model image png **Added** readme note for uninstall in linux **Updated** minor style guide changes to hybrid-clusters howto stub **Fixed** typo in setup-azure-servicebus.md (Thanks @candreso) **Added** docs for dapr init without Docker **Updated** Put a note that Windows containers are not supported in Kubernetes **Updated** Cosmos documentation for transaction changes **Moved** Kubernetes hybrid-cluster guide howto **Added** Kubernetes docs for installing dapr to hybrid windows/linux clusters **Updated** Azure Service Bus metadata (Thanks @jjcollinge) **Updated** section related to output binding support **Updated** documentation related to PostgreSQL (Thanks @brooke-hamilton) **Updated** bindings_api.md **Added** cron binding documentation **Added** binding listing, docs on canceling schedules **Added** local development secret store how to (Thanks @cmendible) **Added** docs for injecting env vars **Updated** to rename default config to daprsystem config **Updated** docs for Zipkin initialization **Updated** with missing Kafka link in reference section **Updated** component-secrets.md **Updated** W3C tracing docs to describe how to use tracing in your applications **Added** Dapr with Docker docs (Thanks @jjcollinge) **Updated** the doc as how to retrieve the response headers **Added** How to Use W3C Trace Context **Added** link from main observability how-to **Updated** Grafana dashboard - dapr sidecar dashboard and add new actor dashboard #634 **Added** links to videos from the community calls **Updated** Event Hubs doc **Updated** Pub/Sub index ## Upgrading to Dapr 0.9.0 If you're upgrading from an older version of Dapr to 0.9.0, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have. Note that this will remove the default .dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if they have installed binary in default path /usr/local/bin/ or have docker command needing sudo.: ```bash dapr uninstall --all ``` Next, get the latest CLI following [these](https://github.com/dapr/cli#installing-dapr-cli) instructions, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have downloaded the CLI, run: ```bash dapr init ``` Wait for the update to finish, and you're good to go! Make sure you have the right runtime version (0.9.0) with: ```bash dapr --version ``` ### Kubernetes Download the latest CLI release as outlined above in the `Local Machine / Self-hosted` section. If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: ```bash dapr uninstall --kubernetes ``` It's fine to ignore any errors that might show up. If you previously installed Dapr using __Helm 2.X__: ```bash helm del --purge dapr ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` Update the Dapr repo: ```bash helm repo update ``` If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. You can now follow [these](https://docs.dapr.io/getting-started/install-dapr/#install-with-helm-advanced) instructions on how to install Dapr using __Helm 3__. Alternatively, if you want to install Dapr in a dev/test setup, run: ``` dapr init --kubernetes ``` #### Post installation After Dapr 0.9.0 has been installed, perform a rolling restart for your deployments. ## Breaking Changes ### Standalone dapr init and uninstall behavior * dapr uninstall --all now removes the default .dapr directory and binaries * dapr init fails if a previous version is installed. You will need to run dapr uninstall first. * dapr init now deploys a local Zipkin container by default for use with local diagnostic testing. ### Dapr init behavior to create default component files * The default component files are now created during dapr init time. ### Cosmos DB partition key setup and usage The name of the required partition key has changed from `/id` to `/partitionKey`. Please see [this](https://docs.dapr.io/operations/components/setup-state-store/supported-state-stores/setup-azure-cosmosdb/) for more details.
mikeee/dapr
docs/release_notes/v0.9.0.md
Markdown
mit
9,946
# Dapr 1.0.0-rc.1 We're happy to announce the release of Dapr 1.0.0-rc.1! We would like to extend our [thanks to all](#Acknowledgements) new and existing contributors who helped make this release happen. This is a release candidate version as we progress towards Dapr v1.0.0. We appreciate you trying Dapr and providing feedback on this release. See [this](#upgrading-to-dapr-100-rc1) section on upgrading Dapr to version 1.0.0-rc.1. > Dapr CLI version in this release is 1.0.0-rc.2 and is not compatible with runtime versions prior to 1.0.0-rc.1. Download Dapr CLI 1.0.0-rc.2 from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH, or use the rc1 install script in the Getting Started guide. > For Java applications using Dapr Java SDK, use SDK version 0.10.0. > For .Net applications using Dapr .Net SDK, use SDK version 0.12.0-preview01. > **Note: This release contains a few [breaking changes](#breaking-changes).** **Highlights** These are some highlights for this release; - The [actor placement service](https://v1-rc1.docs.dapr.io/developing-applications/building-blocks/actors/actors-background/#actor-placement-service) now has a high availability (HA) configuration to improve resilience and enable upgrades on production system that use actors to minimize downtime on actor instance availability. - Substantial work has been done on improving the scale and performance of actors. - [Open Telemetry](https://opentelemetry.io/docs/) is now an [option to capture observability events](https://v1-rc1.docs.dapr.io/operations/monitoring/open-telemetry-collector/) including logs, metrics and tracing. > Note: This is the last release that will support the LocalForwarder and its [tracing exporter components](https://github.com/dapr/components-contrib/tree/master/exporters). These Dapr components will be removed in the next release and instead be replaced with OpenTelemetry exporters. - All Dapr APIs can now be called on the Dapr sidecar before the app has responded on the app-port. For example, this enables the app to retrieve secrets before the app starts, enabling setting up JWT validation in an auth pipeline/middleware. - Http endpoints in your app can now be https endpoints, which previously were blocked. If your app is listening on `https` or has a gRPC TLS configuration enabled, use the `app-ssl` flag like this. This will have Dapr invoke the app over an insecure SSL channel. `dapr run --app-id nodeapp --app-port 3000 node app.js --app-ssl` - Published [service invocation API performance numbers](https://v1-rc1.docs.dapr.io/operations/performance-and-scalability/) for the v0.11.3 release which will be updated with each future release. - The CLI component command `dapr components -k` now shows version information for each component. ## New in this release ### Dapr Runtime - **ENABLED** placement service to run with multiple instances [663](https://github.com/dapr/dapr/issues/663) - **UPDATED** documentation to use OpenTelemetry instead of Local Forward [1080](https://github.com/dapr/dapr/issues/1080) - **ENABLED** secrets API before application endpoint is ready [1493](https://github.com/dapr/dapr/issues/1493) - **IMPROVED** RabbitMQ's PubSub implementation to automatically reconnect on 'channel/connection is not open' [1688](https://github.com/dapr/dapr/issues/1688) - **FIXED** verbosity for 'host removed' logs in placement service [1726](https://github.com/dapr/dapr/issues/1726) - **UPDATED** error handling in HTTP and gRPC APIs [1742](https://github.com/dapr/dapr/issues/1742) - **ADDED** ability for Dapr to use a non-secure SSL connection when communicating with the app [1883](https://github.com/dapr/dapr/issues/1883) - **FIXED** Component YAMLs needing quoted values for Kubernetes [1893](https://github.com/dapr/dapr/issues/1893) - End to end tests now save container logs [2063](https://github.com/dapr/dapr/issues/2063) - **FIXED** gRPC error handing to follow grpc error handling guide [2067](https://github.com/dapr/dapr/issues/2067) - **ADDED** RFC1123 validation for app IDs [2068](https://github.com/dapr/dapr/issues/2068) - **UPDATED** Change hardcoded integer status codes to constants for HTTP API [2070](https://github.com/dapr/dapr/issues/2070) - **FIXED** memory leak and high memory utilization in actor building block [2093](https://github.com/dapr/dapr/issues/2093) - **IMPROVED** Actor distribution and made replication factor configurable [2094](https://github.com/dapr/dapr/issues/2094) - **REMOVE** redundant 'metadata' in dapr_sidecar_injector_service.yaml [2136](https://github.com/dapr/dapr/issues/2136) - **FIXED** Dapr does not report error when component category is invalid [2146](https://github.com/dapr/dapr/issues/2146) - **FIXED** disabling metrics configuration [2163](https://github.com/dapr/dapr/issues/2163) - **ADDED** E2E tests option to run in HA mode [2188](https://github.com/dapr/dapr/issues/2188) - **ADDED** permission of "Watch" for crds of Subscriptions [2208](https://github.com/dapr/dapr/issues/2208) - **ADDED** Unit tests for Sentry and gRPC server [2212](https://github.com/dapr/dapr/issues/2212) - **FIXED** wrong error response when grpc callee returns error for http->gRPC invocation [2220](https://github.com/dapr/dapr/issues/2220) - **FIXED** .Net gRPC appcallback server OnInvoke callback failure [2221](https://github.com/dapr/dapr/issues/2221) - **FIXED** input binding load order [2222](https://github.com/dapr/dapr/issues/2222) - **REMOVED** deprecated flags from `daprd` main [2232](https://github.com/dapr/dapr/issues/2232) - **FIXED** Pubsub fails delivery on 200 with empty JSON [2235](https://github.com/dapr/dapr/issues/2235) - **ADDED** configurable healthz port for placement service [2242](https://github.com/dapr/dapr/issues/2242) - **VALIDATED** CosmosDB state store for actors [2243](https://github.com/dapr/dapr/issues/2243) - **CHANGED** preferred node affinity to required [2245](https://github.com/dapr/dapr/issues/2245) - **ADDED** codecov rules to ensure that no PR reduces unit test coverage [2262](https://github.com/dapr/dapr/issues/2262) - **FIXED** Dapr hiding gRPC transport error in service invocation [2272](https://github.com/dapr/dapr/issues/2272) - **ADDED** the feature to collect Dapr control plane service logs when the test is done [2284](https://github.com/dapr/dapr/issues/2284) - **CHANGED** Cors middleware to optional + added tests [2285](https://github.com/dapr/dapr/pull/2285) - **IMPROVED** performance by removing `fmt.Sprintf` from hot path for service invocation [2287](https://github.com/dapr/dapr/pull/2287) - **FIXED** Update OpenTelemetry attribute keys `db.{type,url,instance}` to the latest spec `db.{system,connection_string,name}` [2288](https://github.com/dapr/dapr/issues/2288) - **FIXED** memory leak in app health check for actor [2292](https://github.com/dapr/dapr/pull/2292) - **REMOVED** 60 seconds timeout on app channel [2301](https://github.com/dapr/dapr/issues/2301) - **USE** Go 1.15.3 to build binary [2303](https://github.com/dapr/dapr/issues/2303) - **FIXED** race condition of busy flag and channel and unnecessary heap alloc in actor locking [2306](https://github.com/dapr/dapr/issues/2306) - **REMOVED** package deprecation warning for protoc-gen-go [2313](https://github.com/dapr/dapr/issues/2313) - **ADDED** Additional unit test coverage for HTTP API [2315](https://github.com/dapr/dapr/issues/2315) - **ADDED** HTTP PUT support for statestore APIs [2316](https://github.com/dapr/dapr/issues/2316) - **ADDED** limits/requests in helm charts [2325](https://github.com/dapr/dapr/issues/2325) - **FIXED** Dapr API status codes for HTTP audited and updated to match documentation [2338](https://github.com/dapr/dapr/issues/2338) - **FIXED** memory leak in pending actor call metric [2339](https://github.com/dapr/dapr/issues/2339) - **FIXED** unnecessary memory alloc for actor in actor invocation call flow [2340](https://github.com/dapr/dapr/issues/2340) - **SWITCH** apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1 [2354](https://github.com/dapr/dapr/issues/2354) - **ADDED** the option to generate crd via controller-gen [2355](https://github.com/dapr/dapr/issues/2355) - **ADDED** Raft server and its state for placement [2373](https://github.com/dapr/dapr/issues/2373) - **USE** Raft state to maintain dapr runtime host state and hashing table [2374](https://github.com/dapr/dapr/issues/2374) - **ENABLED** placement client in runtime to connect the leader of placement [2375](https://github.com/dapr/dapr/issues/2375) - **UPDATED** helm chart to install three placement replicas for HA mode [2376](https://github.com/dapr/dapr/issues/2376) - **ADDED** graceful server shutdown for placement [2377](https://github.com/dapr/dapr/issues/2377) - **ADDED** gRPC method to register actor timer [2388](https://github.com/dapr/dapr/issues/2388) - **ADDED** gRPC method to unregister actor timer [2397](https://github.com/dapr/dapr/issues/2397) - **ADDED** gRPC method to invoke actors [2400](https://github.com/dapr/dapr/issues/2400) - **FIXED** Fail Dapr sidecar if specified configuration cannot be loaded properly [2425](https://github.com/dapr/dapr/issues/2425) ### Dapr CLI - **IMPROVED** help messages [421](https://github.com/dapr/cli/issues/421) - **UPGRADED** Golang Lint to 1.31.0 [443](https://github.com/dapr/cli/issues/443) - **SKIP** container check for Redis when --redis-host is specified [479](https://github.com/dapr/cli/issues/479) - **ADDED** Enable SSL connection flag [494](https://github.com/dapr/cli/issues/494) - **REMOVED** deprecated commands [503](https://github.com/dapr/cli/issues/503) - **FIXED** azure auth import in CLI [504](https://github.com/dapr/cli/issues/504) - **ADDED** Version and scopes field to `dapr components -k` output [505](https://github.com/dapr/cli/issues/505) - **FIXED** Dapr CLI status command to display dapr-placement-server StatefulSet [509](https://github.com/dapr/cli/issues/509) - **FIXED** CLI publish to accept 2xx codes [510](https://github.com/dapr/cli/issues/510) - **FIXED** Empty spaces in path [513](https://github.com/dapr/cli/issues/513) - **ADDED** version argument in one line scripts to pull the specific version of dapr cli [516](https://github.com/dapr/cli/issues/516) - **CHANGED** `dapr init` behavior to download the latest daprd binary when cli version has -rc suffix [518](https://github.com/dapr/cli/issues/518) ### Components - **ADDED** Apple Push Notification Service Output Binding [480](https://github.com/dapr/components-contrib/issues/480) - **ENABLED** metadata to force HTTPS on final redirect from oauth2 middleware [486](https://github.com/dapr/components-contrib/issues/486) - **REMOVE** CloudKMS from Secret Stores [495](https://github.com/dapr/components-contrib/issues/495) - **ADDED** Ack wait and MaxInFlight Parameters to Nats Streaming Component [505](https://github.com/dapr/components-contrib/issues/505) - **FIXED** Azure Blob Storage binding not saving JSON values [515](https://github.com/dapr/components-contrib/issues/515) ### Dashboard - **FIXED** Display app name (id) in Dashboard on K8s [87](https://github.com/dapr/dashboard/issues/87) - **ADDED** Support for imagePullSecret Secret on Helm Chart [2475](https://github.com/dapr/dapr/issues/2475) ### .NET SDK - **ADDED** HTTP status code for error in method invocation [400](https://github.com/dapr/dotnet-sdk/issues/400) - **ADDED** configurable log level in .Net SDK [406](https://github.com/dapr/dotnet-sdk/issues/406) - **USE** Guid to generate unique Actor ID [415](https://github.com/dapr/dotnet-sdk/issues/415) - **FIXED** Bug in the Actors SDK for dotnet-sdk. Actor Reference and Id can now be stored [444](https://github.com/dapr/dotnet-sdk/issues/444) - **FIXED** documentation for Actor sample in .Net [450](https://github.com/dapr/dotnet-sdk/issues/450) ### Java SDK - **FIXED** Save byte[] in actor's state store [352](https://github.com/dapr/java-sdk/issues/352) - **FIXED** register timer method to return timer's name, enabling use of auto-generated values [355](https://github.com/dapr/java-sdk/issues/355) - **FIXED** withObjectSerializer method to return generic type in ActorProxyBuilder [356](https://github.com/dapr/java-sdk/issues/356) - **UPDATED** dependencies expect opentelemetry [361](https://github.com/dapr/java-sdk/issues/361) - **FIXED** Timer invocation after Actor runtime app restarts [362](https://github.com/dapr/java-sdk/issues/362) - **ADDED** Added codecov rules to ensure that no PR reduces unit test coverage [364](https://github.com/dapr/java-sdk/issues/364) - **FIXED** high memory consumption issue in Java SDK for HTTP communication [370](https://github.com/dapr/java-sdk/issues/370) - **UPDATED** opentelemetry library to 0.7.1. **CHANGED** repo ID of spring repo to spring [382](https://github.com/dapr/java-sdk/issues/382) ### Python SDK - **ADDED** W3C trace headers to Dapr API calls [97](https://github.com/dapr/python-sdk/issues/97) - **Updated** dapr python sdk pkg documents [125](https://github.com/dapr/python-sdk/issues/125) - **ADDED** missing etag to StateResponse [128](https://github.com/dapr/python-sdk/issues/128) - **ADDED** Added codecov reports to python-sdk PRs [133](https://github.com/dapr/python-sdk/issues/133) ### Documentation - **UPDATED** environment-setup.md [841](https://github.com/dapr/docs/pull/841) - **ADDED** Performance section in docs [863](https://github.com/dapr/docs/issues/863) - **FIXED** documentation link to "Sending Messages to Output Bindings" [867](https://github.com/dapr/docs/pull/867) - **ADDED** Documentation for enabling Dapr to talk to an app via an SSL connection [868](https://github.com/dapr/docs/issues/868) - **FIXED** dead link to Ignite video session [878](https://github.com/dapr/docs/pull/878) - **FIXED** links in page developing-applications/ides/vscode-remotecontainers/ [887](https://github.com/dapr/docs/issues/887) ## Upgrading to Dapr 1.0.0-rc.1 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.0.0-rc.1 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.0.0-rc.1) with: ```bash $ dapr --version CLI version: 1.0.0-rc.2 Runtime version: 1.0.0-rc.1 ``` ### Kubernetes #### Upgrading from previous version If you previously installed Dapr using Helm, you can upgrade Dapr to a new version. If you installed Dapr using the CLI, go [here](#starting-fresh-install-on-a-cluster). ##### 1. Get the latest CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. ##### 2. Upgrade existing cluster Follow instructions below to migrate from 0.11.x placement service to 1.0.0-rc.1 placement service safely. First run these two commands to disable `helm upgrade` from uninstall 0.11.x placement service. ```sh kubectl annotate deployment dapr-placement helm.sh/resource-policy=keep -n dapr-system kubectl annotate svc dapr-placement helm.sh/resource-policy=keep -n dapr-system ``` Then, export certs: ```sh dapr mtls export -o ./certs ``` Now, upgrade Dapr to 1.0.0-rc.1 using the below commands: ```sh helm repo update helm upgrade dapr dapr/dapr --version 1.0.0-rc.1 --namespace dapr-system --reset-values --set-file dapr_sentry.tls.root.certPEM=./certs/ca.crt --set-file dapr_sentry.tls.issuer.certPEM=./certs/issuer.crt --set-file dapr_sentry.tls.issuer.keyPEM=./certs/issuer.key --set global.ha.enabled=true --wait ``` Once Dapr is installed completely, ensure that 0.11.x dapr-placement service is still running and **wait until all PODs are running** ```sh kubectl get pods -n dapr-system -w NAME READY STATUS RESTARTS AGE dapr-dashboard-69f5c5c867-mqhg4 1/1 Running 0 42s dapr-operator-5cdd6b7f9c-9sl7g 1/1 Running 0 41s dapr-operator-5cdd6b7f9c-jkzjs 1/1 Running 0 29s dapr-operator-5cdd6b7f9c-qzp8n 1/1 Running 0 34s dapr-placement-5dcb574777-nlq4t 1/1 Running 0 76s ---- 0.11.x placement dapr-placement-server-0 1/1 Running 0 41s dapr-placement-server-1 1/1 Running 0 41s dapr-placement-server-2 1/1 Running 0 41s dapr-sentry-84565c747b-7bh8h 1/1 Running 0 35s dapr-sentry-84565c747b-fdlls 1/1 Running 0 41s dapr-sentry-84565c747b-ldnsf 1/1 Running 0 29s dapr-sidecar-injector-68f868668f-6xnbt 1/1 Running 0 41s dapr-sidecar-injector-68f868668f-j7jcq 1/1 Running 0 29s dapr-sidecar-injector-68f868668f-ltxq4 1/1 Running 0 36s ``` Restart your application deployments to update the Dapr runtime. ```sh kubectl rollout restart deploy/<DEPLOYMENT-NAME> ``` Once the deployment is completed, delete the 0.11.x dapr-placement service by running the following commands: ```sh kubectl delete deployment dapr-placement -n dapr-system kubectl delete svc dapr-placement -n dapr-system ``` All done! #### Starting fresh install on a cluster You can use Helm 3 to install Dapr: ```sh helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm install dapr dapr/dapr --version 1.0.0-rc.1 --namespace dapr-system ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.0.0-rc.1 --kubernetes ``` If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: *Note: Make sure you're uninstalling with your existing CLI version* ```bash dapr uninstall --kubernetes ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. ##### Post installation Verify the control plane pods are running and are healthy: ``` $ kubectl get pods -n dapr-system NAME READY STATUS RESTARTS AGE dapr-dashboard-85cc6c9f7d-hzk69 1/1 Running 0 13m dapr-operator-84985cb985-h2zdv 1/1 Running 0 13m dapr-placement-server-0 1/1 Running 0 13m dapr-sentry-5974c7cb6d-9bnqd 1/1 Running 0 13m dapr-sidecar-injector-5b5bb9454-sfmmx 1/1 Running 0 13m ``` After Dapr 1.0.0-rc.1 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes ### Annotations The following annotations are no longer supported: * `dapr.io/id` * `dapr.io/port` * `dapr.io/protocol` Instead, use the following: * `dapr.io/app-id` * `dapr.io/app-port` * `dapr.io/app-protocol` ### Dapr Runtime - **REMOVED** deprecated flags from `daprd` main [2232](https://github.com/dapr/dapr/issues/2232) - **FIXED** Pubsub fails delivery on 200 with empty JSON [2235](https://github.com/dapr/dapr/issues/2235) - **FIXED** Dapr API status codes for HTTP audited and updated to match documentation [2338](https://github.com/dapr/dapr/issues/2338) - **SWITCH** apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1 [2354](https://github.com/dapr/dapr/issues/2354) ### Dapr CLI - **REMOVED** deprecated cli command flags [503](https://github.com/dapr/cli/issues/503) ## Acknowledgements Thanks to everyone who made this release possible! Special thanks to @jigargandhi for the amazing work on [1493](https://github.com/dapr/dapr/issues/1493). Also, thanks to @skyao for the great work on [2101](https://github.com/dapr/dapr/issues/2101) @Li-Yanzhi, @TenSt, @abserari, @ajaysingh77, @artursouza, @beiwei30, @bvwells, @cilerler, @cmendible, @discostu105, @halspang, @jdubois, @jigargandhi, @juazasan, @kendallroden, @mfcollins3, @mukundansundar, @rynowak, @skyao, @tcnghia, @tianvan, @tylermurry, @vinayada1, @wcs1only, @yaron2, @youngbupark
mikeee/dapr
docs/release_notes/v1.0.0-rc.1.md
Markdown
mit
20,902
# Dapr 1.0.0-rc.2 We're happy to announce the release of Dapr 1.0.0-rc.2! We would like to extend our [thanks to all](#Acknowledgements) new and existing contributors who helped make this release happen. This is a release candidate version as we progress towards Dapr v1.0.0. We appreciate you trying Dapr and providing feedback on this release. See [this](#upgrading-to-dapr-100-rc2) section on upgrading Dapr to version 1.0.0-rc.2. > Dapr CLI version in this release is 1.0.0-rc.3 and is not compatible with runtime versions prior to 1.0.0-rc.2. Download Dapr CLI 1.0.0-rc.3 from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH, or use the rc1 install script in the Getting Started guide. > For Java applications using Dapr Java SDK, use SDK version 1.0.0-rc-2. See [upgrade instructions for the Java SDK](https://github.com/dapr/java-sdk/issues/415). > For .Net applications using Dapr .Net SDK, use SDK version 1.0.0-rc02. See [upgrade instructions for the .Net SDK](https://github.com/dapr/dotnet-sdk/issues/505). ### **Note: This release contains a few [breaking changes](#breaking-changes).**</font> ## Highlights * Added the ability to share state between different applications using prefix strategies. Visit [this](https://v1-rc2.docs.dapr.io/developing-applications/building-blocks/state-management/howto-share-state/) link to learn more. * Added a [bulk secrets API](https://v1-rc2.docs.dapr.io/reference/api/secrets_api/#get-bulk-secret) to get all the secrets at once from a secret store that the app has access to. Implemented in the [secret components](https://github.com/dapr/components-contrib/tree/master/secretstores) * Actors in Java SDK communicate to Dapr sidecar via GRPC. This allows better performance for invocation of Actor methods, timers and reminders. `ActorProxyBuilder` is now closeable, holding an instance of gRPC's `ManagedChannel` class to be closed. See [upgrade instructions for the Java SDK](https://github.com/dapr/java-sdk/issues/415). * Deprecation of exporters component [#2337](https://github.com/dapr/dapr/issues/2337): Tracing is now part of Dapr core, and tracing settings have moved to Configuration CRD. See [this doc](https://v1-rc2.docs.dapr.io/operations/configuration/configuration-overview/#tracing) for information about the new tracing settings. For more detailed instructions on setting up tracing in new Configuration, check out the [observability quickstart sample](https://github.com/dapr/quickstarts/tree/v1.0.0-rc.2/observability) as well as backend-specific guides for [Zipkin](https://v1-rc2.docs.dapr.io/operations/monitoring/zipkin/), [Jaeger](https://v1-rc2.docs.dapr.io/operations/monitoring/jaeger/), [New Relics](https://v1-rc2.docs.dapr.io/operations/monitoring/newrelic/), and [OpenTelemetry trace backends like Azure AppInsight](https://v1-rc2.docs.dapr.io/operations/monitoring/open-telemetry-collector/). * Service invocation performance test results now published and available at the [dapr perf website](http://daprperf.azurewebsites.net/) * Full review on the [Dapr CLI](https://v1-rc2.docs.dapr.io/reference/cli/) to make command parameters consistent, update descriptions, provide more examples and add capabilities such as getting the [output for configuration](https://v1-rc2.docs.dapr.io/reference/cli/dapr-configurations/).Note that this includes breaking changes. * Improvements to the [Dapr metrics dashboards](https://v1-rc2.docs.dapr.io/operations/monitoring/grafana/). * Improvements to the Dapr operational dashboard. * Round robin load balancing of mDNS requests. This supports multiple app instances for a single standalone app id with round robin load balancing across them for environments that support mDNS, such a physical machines. For example, if you have 1 instance of app A and 5 instances of app B and then call from A->B, Dapr round robins' between the 5 B instances. * Added the option to specify whether Dapr should ignore errors when loading a component and continue initialization. See [here](https://v1-rc2.docs.dapr.io/operations/components/component-schema/) for the new `ignoreErrors` field. * [Dependency injection (DI)](https://github.com/dapr/dotnet-sdk/issues/505) for .NET actors ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @DarqueWarrior, @PeterGerrard, @Phiph, @ProfessorMc, @Qalifah, @ZeyadYasser, @abserari, @artursouza, @cmendible, @cvictory, @eNeRGy164, @halspang, @harrykimpel, @issacg, @jigargandhi, @jjcollinge, @juazasan, @ksivamuthu, @mchmarny, @msfussell, @mukundansundar, @rynowak, @sau-lanvy, @shubham1172, @skyao, @tcnghia, @tianvan, @trondhindenes, @vinayada1, @wcs1only, @wwulfric, @yaron2, @youngbupark ## New in this release ### Dapr Runtime - **RESOLVED** Enable perf test UI and alerts [1790](https://github.com/dapr/dapr/issues/1790) - **RESOLVED** Make Dapr logging less actor verbose [1966](https://github.com/dapr/dapr/issues/1966) - **RESOLVED** Actor Reminder not persisting [2049](https://github.com/dapr/dapr/issues/2049) - **FIXED** Use of Content-Type header for wrapping pubsub payload into CloudEvent [2080](https://github.com/dapr/dapr/issues/2080) - **RESOLVED** Get all secrets from secrets API [2168](https://github.com/dapr/dapr/issues/2168) - **FIXED** Pubsub API will now return 403 for forbidden pubsub topics. [2323](https://github.com/dapr/dapr/issues/2323) - **ADDED** timeout setting for components [2352](https://github.com/dapr/dapr/issues/2352) - **RESOLVED** Review and improve bulk operations of state for a unified user experience [2368](https://github.com/dapr/dapr/issues/2368) - **RESOLVED** Pass pubsub subscription metadata to pubsub component [2379](https://github.com/dapr/dapr/issues/2379) - **RESOLVED** Dapr health endpoint is incorrectly reporting healthy if bindings have failed to initialize [2437](https://github.com/dapr/dapr/issues/2437) - **FIXED** Changed ImagePullPolicy for Dapr sidecar Docker image from `Allways` to `IfNotPresent` [2444](https://github.com/dapr/dapr/issues/2444) - **RESOLVED** dapr sidecar is crash-looping, but the logs don't indicate that anything's wrong [2449](https://github.com/dapr/dapr/issues/2449) - **RESOLVED** Add components to metadata endpoint [2462](https://github.com/dapr/dapr/issues/2462) - **ADDED** Reminder and State APIs for Actors in GRPC [2466](https://github.com/dapr/dapr/issues/2466) - **ENABLED** DynamoDB as a supported statestore driver [2469](https://github.com/dapr/dapr/issues/2469) - **ADDED** Support for imagePullSecret Secret on Helm Chart [2475](https://github.com/dapr/dapr/issues/2475) - **RESOLVED** Head method not allowed by Dapr [2490](https://github.com/dapr/dapr/issues/2490) - **RESOLVED** PublishRequest and SubscriberRequest need metadata [2495](https://github.com/dapr/dapr/issues/2495) - **RESOLVED** Review Grafana dashboard and fix the inconsistency [2505](https://github.com/dapr/dapr/issues/2505) - **MOVED** Zipkin trace configuration from Zipkin exporter into Dapr core [2521](https://github.com/dapr/dapr/issues/2521) - **RESOLVED** Move Zipkin exporter code into Dapr core [2522](https://github.com/dapr/dapr/issues/2522) - **FIXED** Grpc context leak on failed connection. [2533](https://github.com/dapr/dapr/issues/2533) - **ADDED** configuration for webhook failure policy in sidecar injector helm chart [2549](https://github.com/dapr/dapr/issues/2549) - **FIXED** can not invoke service http route '/' [2571](https://github.com/dapr/dapr/issues/2571) - **FIXED** missing traceparent for http app channel call [2588](https://github.com/dapr/dapr/issues/2588) ### Dapr CLI - **RESOLVED** `dapr init` should start the Redis host even if a non-default host name is specified [418](https://github.com/dapr/cli/issues/418) - **UPDATED** configuration command output and print yaml and json output. [487](https://github.com/dapr/cli/issues/487) - **FIXED** empty spaces in path [513](https://github.com/dapr/cli/issues/513) - **MADE** shorthands across commands consistent [530](https://github.com/dapr/cli/issues/530) - **ADDED** new shorthands for different flags [531](https://github.com/dapr/cli/issues/531) - **UPDATED** Default standalone Configuration to not use deprecated Zipkin exporter component. [534](https://github.com/dapr/cli/issues/534) - **ADDED** --publish-app-id to the publish command [536](https://github.com/dapr/cli/issues/536) - **REMOVED** unused and unsupported `--image` flag from `run` command. [537](https://github.com/dapr/cli/issues/537) - **UPDATED** supported platforms for CLI commands [538](https://github.com/dapr/cli/issues/538) - **ADDED** examples for all CLI commands [539](https://github.com/dapr/cli/issues/539) - **REMOVED** `redis-host` flag from `dapr init` [540](https://github.com/dapr/cli/issues/540) ### Components - **RESOLVED** Expand the secret store implementation to provide a method to retrieve all secrets from a store [309](https://github.com/dapr/components-contrib/issues/309) - **RESOLVED** Goroutine leak in ASB pubsub when message cannot be completed/abandoned [376](https://github.com/dapr/components-contrib/issues/376) - **RESOLVED** Have Dapr support multiple instances registered with same app-id and load balance requests across them [514](https://github.com/dapr/components-contrib/issues/514) - **RESOLVED** State Management Couchbase Components, Deserialize Problem [518](https://github.com/dapr/components-contrib/issues/518) - **RESOLVED** Azure Key Vault Secret Store can read different secret versions. [522](https://github.com/dapr/components-contrib/issues/522) - **RESOLVED** Getting a weird error when trying to log more [529](https://github.com/dapr/components-contrib/issues/529) - **ADDED** Postmark output binding [545](https://github.com/dapr/components-contrib/issues/545) - **RESOLVED** Add access level to Azure Blob Storage [548](https://github.com/dapr/components-contrib/issues/548) - **FIXED** Bug in flattening of JSON hierarchy by local file secrets store. [550](https://github.com/dapr/components-contrib/issues/550) ### Dashboard - **FIXED** Display dashboard version correctly in command line interface [86](https://github.com/dapr/dashboard/issues/86) - **FIXED** Display Placement service in Dashboard list of Dapr services [101](https://github.com/dapr/dashboard/issues/101) - **FIXED** Display dashboard in list of Dapr services [102](https://github.com/dapr/dashboard/issues/102) - **ADDED** Metrics setting in Configurations screen [103](https://github.com/dapr/dashboard/issues/103) - **UPDATED** Configuration to auto-fill screen [105](https://github.com/dapr/dashboard/issues/105) [106](https://github.com/dapr/dashboard/issues/106) [107](https://github.com/dapr/dashboard/issues/107) - **FIXED** display of multiple replicas of Dapr services [108](https://github.com/dapr/dashboard/issues/108) - **UPDATED** Application list action from trash can icon to text button [109](https://github.com/dapr/dashboard/issues/109) ### .NET SDK - **RESOLVED** Dependency injection for Actors is enabled by default for ASP.NET Core projects [171](https://github.com/dapr/dotnet-sdk/issues/171) - **RESOLVED** Dapr Actors should not use BinaryFormatter [414](https://github.com/dapr/dotnet-sdk/issues/414) - **UPDATED** Naming of HTTPExtension and related types to follow .NET conventions [421](https://github.com/dapr/dotnet-sdk/issues/421) - **RESOLVED** InvokeMethodAsync reports cancellation using RpcException instead of OperationCanceledOperation [422](https://github.com/dapr/dotnet-sdk/issues/422) - **FIXED** Timer invocation after Actor runtime app restarts. [435](https://github.com/dapr/dotnet-sdk/issues/435) - **REMOVED** public constructor on ActorTypeInfo - this is a breaking change but unlikely to impact users as it was not useful before [461](https://github.com/dapr/dotnet-sdk/issues/461) - **RESOLVED** Resurrect .NET configuration provider [462](https://github.com/dapr/dotnet-sdk/issues/462) - **ADDED** Fluent methods to construct and manipulate HTTPExtensions class [472](https://github.com/dapr/dotnet-sdk/issues/472) - **RESOLVED** Remove ContentType property from InvocationRequest class [474](https://github.com/dapr/dotnet-sdk/issues/474) - **RESOLVED** Error in Dapr Documentation prevents dapr run of DaprClient from running. [481](https://github.com/dapr/dotnet-sdk/issues/481) - **UPDATED** branding of .NET SDK libraries to reflect 1.0.0 RC [482](https://github.com/dapr/dotnet-sdk/issues/482) - **FIXED** Bug in AspNetCore package [496](https://github.com/dapr/dotnet-sdk/issues/496) ### Go SDK - **RESOLVED** Cancel gRPC returns error [100](https://github.com/dapr/go-sdk/issues/100) - **ADDED** Expose HTTP/gRPC server address on created client [111](https://github.com/dapr/go-sdk/issues/111) - **UPDATE** Have consistent method/parameter names across SDKs [117](https://github.com/dapr/go-sdk/issues/117) - **ADDED** Parameterize request method verb on service invocation [118](https://github.com/dapr/go-sdk/issues/118) - **ADDED** Support HTTP query string on method invoke [125](https://github.com/dapr/go-sdk/issues/125) ### Java SDK - **USED** DaprException consistently across the SDK. [203](https://github.com/dapr/java-sdk/issues/203) - **UPDATED** Opentelemetry library version to 0.10.0 [379](https://github.com/dapr/java-sdk/issues/379) - **ADDED** Support for Actor APIs over GRPC from app into runtime [393](https://github.com/dapr/java-sdk/issues/393) - **UPDATED** Java SDK trace sample at https://github.com/dapr/java-sdk/blob/v0.10.0/examples/src/main/java/io/dapr/examples/tracing/README.md to not use exporter components. [404](https://github.com/dapr/java-sdk/issues/404) ### Python SDK - **FIXED** Timer invocation after Actor runtime app restarts. [134](https://github.com/dapr/python-sdk/issues/134) - **RESOLVED** Broken kubernetes link in examples readme [147](https://github.com/dapr/python-sdk/issues/147) ### Rust SDK - **RESOLVED** Create Cargo package [32](https://github.com/dapr/rust-sdk/issues/32) ### Documentation - **RESOLVED** Distributed Tracing with Jaeger [693](https://github.com/dapr/docs/issues/693) - **RESOLVED** Need to update the conceptual docs for pub/sub for declarative subscribe [795](https://github.com/dapr/docs/issues/795) - **RESOLVED** Document the Metadata API [825](https://github.com/dapr/docs/issues/825) - **RESOLVED** Operations tracing troubleshooting guide is incorrect [886](https://github.com/dapr/docs/issues/886) - **RESOLVED** Update middleware-concept.md [929](https://github.com/dapr/docs/pull/929) - **RESOLVED** spelling error [937](https://github.com/dapr/docs/pull/937) - **RESOLVED** [CONTENT] Instructions for setting up observability with New Relic [949](https://github.com/dapr/docs/issues/949) - **RESOLVED** Added New Relic How-to docs [951](https://github.com/dapr/docs/pull/951) - **RESOLVED** The Dapr System service dashboard do not have docs describing how to read the information. [959](https://github.com/dapr/docs/issues/959) - **RESOLVED** Update typo and broken link [961](https://github.com/dapr/docs/pull/961) - **RESOLVED** Update trace configurations to not use exporter component [967](https://github.com/dapr/docs/issues/967) - **UPDATED** CLI reference documentation. [972](https://github.com/dapr/docs/issues/972) - **RESOLVED** Update dapr-run.md [974](https://github.com/dapr/docs/pull/974) - **RESOLVED** Update trace spec in Configuration to mention `zipkin` section [978](https://github.com/dapr/docs/issues/978) - **UPDATED** overview description for pub/sub topics and subscriptions [987](https://github.com/dapr/docs/issues/987) - **UPDATED** pubsub documentation to mention use of Content-Type header for CloudEvent wrapping. [998](https://github.com/dapr/docs/issues/998) - **RESOLVED** Fixed typo in setup-sqlserver [1004](https://github.com/dapr/docs/pull/1004) - **UPDATED** component field for ignoreErrors [1007](https://github.com/dapr/docs/issues/1007) - **UPDATED** custom certs instructions [1008](https://github.com/dapr/docs/issues/1008) ### Quickstarts - **UPDATED** observability quickstart to add instruction for self-host mode [288](https://github.com/dapr/quickstarts/issues/288) - **ADDED** Support for ARM and ARM64 containers in quickstarts [327](https://github.com/dapr/quickstarts/issues/327) - **RESOLVED** update tracing config fields [335](https://github.com/dapr/quickstarts/pull/335) - **RESOLVED** Update quickstarts to not use exporter components [336](https://github.com/dapr/quickstarts/issues/336) ### Samples - **ADDED** Java version for twitter processing pipeline app sample [34](https://github.com/dapr/samples/issues/34) [38](https://github.com/dapr/samples/issues/38) - **ADDED** Python version for twitter processing pipeline app sample [36](https://github.com/dapr/samples/issues/36) ### Test-infra - **ADDED** CI/CD pipeline for longhaul tests [72](https://github.com/dapr/test-infra/issues/72) - **ADDED** Create Prometheus dashboard for longhaul tests. [73](https://github.com/dapr/test-infra/issues/73) ### Homebrew-tap - **ADDED** RC releases for cli are now installable from Homebrew [11](https://github.com/dapr/homebrew-tap/issues/11) ## Upgrading to Dapr 1.0.0-rc.2 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.0.0-rc.2 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.0.0-rc.2) with: ```bash $ dapr --version CLI version: 1.0.0-rc.3 Runtime version: 1.0.0-rc.2 ``` ### Kubernetes #### Upgrading from previous version If you previously installed Dapr using Helm, you can upgrade Dapr to a new version. If you installed Dapr using the CLI, go [here](#starting-fresh-install-on-a-cluster). ##### 1. Get the latest CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. ##### 2. Upgrade from existing cluster running 0.11.x Follow instructions below to migrate from 0.11.x placement service to 1.0.0-rc.2 placement service safely. First run these two commands to disable `helm upgrade` from uninstall 0.11.x placement service. ```sh kubectl annotate deployment dapr-placement helm.sh/resource-policy=keep -n dapr-system kubectl annotate svc dapr-placement helm.sh/resource-policy=keep -n dapr-system ``` ###### Delete exporter components Now, check if you have any exporter type components, by running the following command `kubectl get components -o=custom-columns='NAME:metadata.name,TYPE:spec.type'` and look for components with type `exporter.*`. Since exporter components are no longer supported, you will need to remove them prior to upgrading. You may want to print their content for your reference using `kubectl get component <component-name> -o yaml`. Then, export certs: ```sh dapr mtls export -o ./certs ``` Now, upgrade Dapr to 1.0.0-rc.2 using the below commands: ```sh helm repo update helm upgrade dapr dapr/dapr --version 1.0.0-rc.2 --namespace dapr-system --reset-values --set-file dapr_sentry.tls.root.certPEM=./certs/ca.crt --set-file dapr_sentry.tls.issuer.certPEM=./certs/issuer.crt --set-file dapr_sentry.tls.issuer.keyPEM=./certs/issuer.key --set global.ha.enabled=true --wait ``` Due to Helm being unable to upgrade CRDs, we will need to upgrade CRD directly. ```sh kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/21636a9237f2dcecd9c80f329e99b512e8377739/charts/dapr/crds/configuration.yaml kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/21636a9237f2dcecd9c80f329e99b512e8377739/charts/dapr/crds/components.yaml ``` To re-incorporate your tracing settings, follow the [observability docs](https://v1-rc2.docs.dapr.io/operations/monitoring//) to leverage the new trace settings in the Configuration resource. Once Dapr is installed completely, ensure that 0.11.x dapr-placement service is still running and **wait until all pods are running** ```sh kubectl get pods -n dapr-system -w NAME READY STATUS RESTARTS AGE dapr-dashboard-69f5c5c867-mqhg4 1/1 Running 0 42s dapr-operator-5cdd6b7f9c-9sl7g 1/1 Running 0 41s dapr-operator-5cdd6b7f9c-jkzjs 1/1 Running 0 29s dapr-operator-5cdd6b7f9c-qzp8n 1/1 Running 0 34s dapr-placement-5dcb574777-nlq4t 1/1 Running 0 76s ---- 0.11.x placement dapr-placement-server-0 1/1 Running 0 41s dapr-placement-server-1 1/1 Running 0 41s dapr-placement-server-2 1/1 Running 0 41s dapr-sentry-84565c747b-7bh8h 1/1 Running 0 35s dapr-sentry-84565c747b-fdlls 1/1 Running 0 41s dapr-sentry-84565c747b-ldnsf 1/1 Running 0 29s dapr-sidecar-injector-68f868668f-6xnbt 1/1 Running 0 41s dapr-sidecar-injector-68f868668f-j7jcq 1/1 Running 0 29s dapr-sidecar-injector-68f868668f-ltxq4 1/1 Running 0 36s ``` Restart your application deployments to update the Dapr runtime. ```sh kubectl rollout restart deploy/<DEPLOYMENT-NAME> ``` Once the deployment is completed, delete the 0.11.x dapr-placement service by running the following commands: ```sh kubectl delete deployment dapr-placement -n dapr-system kubectl delete svc dapr-placement -n dapr-system ``` All done! ##### 2. Upgrade from existing cluster running 1.0.0-rc.1 First, export certs: ```sh dapr mtls export -o ./certs ``` ###### Delete exporter components Now, check if you have any exporter type components, by running the following command `kubectl get components -o=custom-columns='NAME:metadata.name,TYPE:spec.type'` and look for components with type `exporter.*`. Since exporter components are no longer supported, you will need to remove them prior to upgrading. You may want to print their content for your reference using `kubectl get component <component-name> -o yaml`. Then, upgrade Dapr to 1.0.0-rc.2 using the below commands: ```sh helm repo update helm upgrade dapr dapr/dapr --version 1.0.0-rc.2 --namespace dapr-system --reset-values --set-file dapr_sentry.tls.root.certPEM=./certs/ca.crt --set-file dapr_sentry.tls.issuer.certPEM=./certs/issuer.crt --set-file dapr_sentry.tls.issuer.keyPEM=./certs/issuer.key --set global.ha.enabled=true --wait ``` Due to Helm being unable to upgrade CRDs, we will need to upgrade CRD directly. ```sh kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/21636a9237f2dcecd9c80f329e99b512e8377739/charts/dapr/crds/configuration.yaml kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/21636a9237f2dcecd9c80f329e99b512e8377739/charts/dapr/crds/components.yaml ``` To re-incorporate your tracing settings, follow the [observability docs](https://v1-rc2.docs.dapr.io/operations/monitoring/) to leverage the new trace settings in the Configuration resource. Once Dapr is installed completely, ensure until **all pods are running** ```sh kubectl get pods -n dapr-system -w NAME READY STATUS RESTARTS AGE dapr-dashboard-69f5c5c867-mqhg4 1/1 Running 0 42s dapr-operator-5cdd6b7f9c-9sl7g 1/1 Running 0 41s dapr-operator-5cdd6b7f9c-jkzjs 1/1 Running 0 29s dapr-operator-5cdd6b7f9c-qzp8n 1/1 Running 0 34s dapr-placement-server-0 1/1 Running 0 41s dapr-placement-server-1 1/1 Running 0 41s dapr-placement-server-2 1/1 Running 0 41s dapr-sentry-84565c747b-7bh8h 1/1 Running 0 35s dapr-sentry-84565c747b-fdlls 1/1 Running 0 41s dapr-sentry-84565c747b-ldnsf 1/1 Running 0 29s dapr-sidecar-injector-68f868668f-6xnbt 1/1 Running 0 41s dapr-sidecar-injector-68f868668f-j7jcq 1/1 Running 0 29s dapr-sidecar-injector-68f868668f-ltxq4 1/1 Running 0 36s ``` Restart your application deployments to update the Dapr runtime. ```sh kubectl rollout restart deploy/<DEPLOYMENT-NAME> ``` All done! #### Starting fresh install on a cluster You can use Helm 3 to install Dapr: ```sh helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.0.0-rc.2 --namespace dapr-system ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.0.0-rc.2 --kubernetes ``` If you previously installed Dapr on your Kubernetes cluster using the Dapr CLI, run: *Note: Make sure you're uninstalling with your existing CLI version* ```bash dapr uninstall --kubernetes ``` If you previously installed Dapr using __Helm 3.X__: ```bash helm uninstall dapr -n dapr-system ``` If you installed Dapr with Helm to a namespace other than `dapr-system`, modify the uninstall command above to account for that. ##### Post installation Verify the control plane pods are running and are healthy: ``` $ kubectl get pods -n dapr-system NAME READY STATUS RESTARTS AGE dapr-dashboard-85cc6c9f7d-hzk69 1/1 Running 0 13m dapr-operator-84985cb985-h2zdv 1/1 Running 0 13m dapr-placement-server-0 1/1 Running 0 13m dapr-sentry-5974c7cb6d-9bnqd 1/1 Running 0 13m dapr-sidecar-injector-5b5bb9454-sfmmx 1/1 Running 0 13m ``` ## Breaking Changes ### Dapr Runtime See [instructions](#delete-exporter-components) to delete exporter components. - **FIXED** Pubsub API will now return 403 for forbidden pubsub topics. [2323](https://github.com/dapr/dapr/issues/2323) - **MOVED** Zipkin trace configuration from Zipkin exporter into Dapr core [2521](https://github.com/dapr/dapr/issues/2521) ### Dapr CLI - **MADE** shorthands across commands consistent [530](https://github.com/dapr/cli/issues/530) - **UPDATED** Default standalone Configuration to not use deprecated Zipkin exporter component. [534](https://github.com/dapr/cli/issues/534) - **ADDED** `--publish-app-id` to the publish command [536](https://github.com/dapr/cli/issues/536) - **REMOVED** unused and unsupported `--image` flag from `run` command. [537](https://github.com/dapr/cli/issues/537) - **REMOVED** `redis-host` flag from `dapr init` [540](https://github.com/dapr/cli/issues/540) ### .NET SDK See [migration instructions](https://github.com/dapr/dotnet-sdk/issues/505) for the .Net SDK. - **RESOLVED** Dependency injection for Actors is enabled by default for ASP.NET Core projects [171](https://github.com/dapr/dotnet-sdk/issues/171) - **RESOLVED** Dapr Actors should not use BinaryFormatter [414](https://github.com/dapr/dotnet-sdk/issues/414) - **UPDATED** Naming of HTTPExtension and related types to follow .NET conventions [421](https://github.com/dapr/dotnet-sdk/issues/421) - **FIXED** Timer invocation after Actor runtime app restarts. [435](https://github.com/dapr/dotnet-sdk/issues/435) - **REMOVED** public constructor on ActorTypeInfo - this is a breaking change but unlikely to impact users as it was not useful before [461](https://github.com/dapr/dotnet-sdk/issues/461) ### Go SDK - **RESOLVED** Have consistent method/parameter names across SDKs [117](https://github.com/dapr/go-sdk/issues/117) ### Java SDK See [migration instructions](https://github.com/dapr/java-sdk/issues/415) for the Java SDK. - **USE** DaprException consistently across the SDK. [203](https://github.com/dapr/java-sdk/issues/203) - **UPDATED** Opentelemetry library version to 0.10.0 [379](https://github.com/dapr/java-sdk/issues/379) - **ADDED** Support for Actor APIs over GRPC from app into runtime [393](https://github.com/dapr/java-sdk/issues/393) ### Python SDK - **FIXED** Timer invocation after Actor runtime app restarts. [134](https://github.com/dapr/python-sdk/issues/134)
mikeee/dapr
docs/release_notes/v1.0.0-rc.2.md
Markdown
mit
28,885
# Dapr 1.0.0-rc.3 We're happy to announce the release of Dapr 1.0.0-rc.3! We would like to extend our [thanks to all](#Acknowledgements) new and existing contributors who helped make this release happen. This is a release candidate version as we progress towards Dapr v1.0.0. We appreciate you trying Dapr and providing feedback on this release. See [this](#upgrading-to-dapr-100-rc3) section on upgrading Dapr to version 1.0.0-rc.3. ## Highlights ## * Pub/Sub [per message time-to-live](https://v1-rc3.docs.dapr.io/developing-applications/building-blocks/pubsub/pubsub-message-ttl/) Dapr enables per-message time-to-live (TTL) for all pub/sub components. Applications can set time-to-live per message, and subscribers will not receive those messages after expiration. * [Sidecar to app authentication](https://v1-rc3.docs.dapr.io/operations/security/app-api-token/) * [MySQL output binding](https://v1-rc3.docs.dapr.io/operations/components/setup-bindings/supported-bindings/mysql/) * [MySQL state store](https://v1-rc3.docs.dapr.io/operations/components/setup-state-store/supported-state-stores/setup-mysql/) * Component metadata's random value via `{uuid}` marker * [Upgrade CLI command to upgrade the Dapr control plane](https://github.com/dapr/cli#upgrade-dapr-on-kubernetes) * Runs as non-root by defaut on Kubernetes * Numerous improvements to the [Dapr Dashboard](https://github.com/dapr/dashboard) * Added [dapr-distributed-calendar sample](https://github.com/dapr/samples/tree/master/dapr-distributed-calendar) * [Java SDK](https://github.com/dapr/java-sdk) fixed to perform async API calls to Dapr sidecar * [Improvements to actor registration, exception handling](https://github.com/dapr/dotnet-sdk/issues/569) in the .NET SDK * Service invocation in the SDK now uses HTTP as the underlying protocol so deeper integration with [.NET SDK](https://github.com/dapr/dotnet-sdk) API surface for HTTP is possible, which makes service invocation much more flexible. See [Service Invocation section](https://github.com/dapr/dotnet-sdk/issues/569) for more details ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @AaronCrawfis, @Betula-L, @DarqueWarrior, @Yggdrasill-7C9, @alpha-baby, @alydersen, @arghya88, @artursouza, @beiwei30, @cmendible, @darren-wang, @davidkarlsen, @dylandee, @eibrunorodrigues, @fjvela, @gaoxinge, @georgestevens99, @halspang, @hepin1989, @IroNEDR, @jigargandhi, @juazasan, @karishma-chawla, @karoldeland, @kevgo, @kzmake, @mchmarny, @mrchypark, @msfussell, @mukundansundar, @newbe36524, @pkedy, @rrylee, @rynowak, @skyao, @soiboxauxi, @tcnghia, @TenSt, @tomkerkhove, @trondhindenes, @vinayada1, @wcs1only, @withinboredom, @wjayesh, @XavierGeerinck, @xiazuojie, @yaron2, @youngbupark, @zzxwill ## New in this release ### Dapr Runtime - **RESOLVED** Migrate Dockerfile used to build Dapr to static, nonroot runtime image [1551](https://github.com/dapr/dapr/issues/1551) - **RESOLVED** Enable sidecar to app authentication [1781](https://github.com/dapr/dapr/issues/1781) - **ADDED** Support for message expiration in PubSub. [2216](https://github.com/dapr/dapr/issues/2216) - **RESOLVED** Make required the version field on Component YAML [2260](https://github.com/dapr/dapr/issues/2260) - **FIXED** Empty etags treated as empty etags. [2320](https://github.com/dapr/dapr/issues/2320) - **Change** response handling for cross-protocol invocation. [2342](https://github.com/dapr/dapr/issues/2342) - **RESOLVED** v1.0 Milestone 3 Plan [2346](https://github.com/dapr/dapr/issues/2346) - **RESOLVED** Error: app not subscribed to binding [2468](https://github.com/dapr/dapr/issues/2468) - **RESOLVED** How to configure oauth middleware in dapr1.0-rc1 and running? [2474](https://github.com/dapr/dapr/issues/2474) - **GENERATED** _pb.go and _grpc.pb.go separately using newer gRPC protoc for Go. [2481](https://github.com/dapr/dapr/issues/2481) - **RESOLVED** The invocation chain is break when using service invoke [2504](https://github.com/dapr/dapr/issues/2504) - **RESOLVED** Access control configuration invalid w/o at least 1 policy [2526](https://github.com/dapr/dapr/issues/2526) - **RESOLVED** Add Metadata gRPC API [2527](https://github.com/dapr/dapr/issues/2527) - **RESOLVED** Consistency of API names surfaced by each SDK [2535](https://github.com/dapr/dapr/issues/2535) - **FIXED** Docker image to be distroless and nonroot. [2536](https://github.com/dapr/dapr/issues/2536) - **FIXED** Error message for unknown state stores being HTTP escaped. [2551](https://github.com/dapr/dapr/issues/2551) - **RESOLVED** Remove redundant cancelfunc calls [2598](https://github.com/dapr/dapr/pull/2598) - **RESOLVED** GetBulkSecrets fails when access limits are set in config [2600](https://github.com/dapr/dapr/issues/2600) - **FIXED** The middleware.http.uppercase middleware comes pre-registered in Standalone mode. [2602](https://github.com/dapr/dapr/issues/2602) - **RESOLVED** Make missing app-id annotation have a clearer log message [2603](https://github.com/dapr/dapr/issues/2603) - **FIXED** CLI and Helm chart no longer default to amd64 architecture for Kubernetes installs. This allows deployments to arm64 Kubernetes clusters to succeed with the default configuration. [2605](https://github.com/dapr/dapr/issues/2605) - **RESOLVED** Add missing metadata in getBulkState() response [2608](https://github.com/dapr/dapr/pull/2608) - **RESOLVED** Update setup-dapr-development-env.md [2614](https://github.com/dapr/dapr/pull/2614) - **RESOLVED** Return HTTP 409 Conflict when ETag doesn't match [2619](https://github.com/dapr/dapr/issues/2619) - **RESOLVED** RBAC issue on OpenShift when installing with Helm [2620](https://github.com/dapr/dapr/issues/2620) - **RESOLVED** fix(fsm): Apply return type must be bool type, or daprd runtime maybe panic [2626](https://github.com/dapr/dapr/pull/2626) - **RESOLVED** Add Known Types repeated twice [2627](https://github.com/dapr/dapr/issues/2627) - **RESOLVED** Secret API "bulk" http endpoint does not work [2649](https://github.com/dapr/dapr/issues/2649) - **RESOLVED** Update Bulk Secrets API to return map[string]map[string]string [2652](https://github.com/dapr/dapr/issues/2652) - **RESOLVED** Update setup-dapr-development-env.md [2664](https://github.com/dapr/dapr/pull/2664) - **RESOLVED** fix(actors): timer ticker bug [2670](https://github.com/dapr/dapr/pull/2670) - **RESOLVED** Helm chart tlc [2692](https://github.com/dapr/dapr/pull/2692) - **FIXED** Support multiple path segments in access control policy [2725](https://github.com/dapr/dapr/issues/2725) ### Dapr CLI - **RESOLVED** Dapr Uninstall Fails with Dapr: cannot get the manifest file: https://api.github.com/repos/dapr/dapr/releases - 403 rate limit exceeded [415](https://github.com/dapr/cli/issues/415) - **RESOLVED** Update Dapr CLI logging to better show errors and warnings [484](https://github.com/dapr/cli/issues/484) - **RESOLVED** Change the way of dapr cli reinstalling [527](https://github.com/dapr/cli/issues/527) - **RESOLVED** [feature] add a metrics-port on run command [554](https://github.com/dapr/cli/issues/554) - **FIXED** Dapr slim init now creates a `config.yaml` file like a normal init. [556](https://github.com/dapr/cli/issues/556) - **RESOLVED** Add Upgrade CLI command to upgrade the Dapr control plane services [560](https://github.com/dapr/cli/issues/560) - **FIXED** Workaround to allow dapr to be run with rosetta on M1 macs [570](https://github.com/dapr/cli/issues/570) - **RESOLVED** Document metrics port [573](https://github.com/dapr/cli/issues/573) - **RESOLVED** Allow all Helm values to pass to init/upgrade commands [574](https://github.com/dapr/cli/issues/574) - **RESOLVED** Helm link points to self hosted [576](https://github.com/dapr/cli/issues/576) ### Components - **RESOLVED** Dapr pub/sub publish is stripping Cloud Event fields [506](https://github.com/dapr/components-contrib/issues/506) - **RESOLVED** Document when to release a new version of a component [526](https://github.com/dapr/components-contrib/issues/526) - **RESOLVED** Can't load oauth2 middleware in dapr1.0-rc1 kubernetes [537](https://github.com/dapr/components-contrib/issues/537) - **RESOLVED** Update the Secrets Component documentation [559](https://github.com/dapr/components-contrib/issues/559) - **RESOLVED** Add prefetch count to RabbitMQ pub/sub [560](https://github.com/dapr/components-contrib/issues/560) - **FIXED** Kubernetes get secret to fallback to k8s namespace. [563](https://github.com/dapr/components-contrib/issues/563) - **RESOLVED** Add concurrency to RabbitMQ [574](https://github.com/dapr/components-contrib/issues/574) - **RESOLVED** Exclusive Queues for RabbitMQ [577](https://github.com/dapr/components-contrib/issues/577) - **RESOLVED** Added Exclusive Flag to RabbitMQ queues [580](https://github.com/dapr/components-contrib/pull/580) - **RESOLVED** Support priority queue for RabbitMQ Bind/Pubsub Components [582](https://github.com/dapr/components-contrib/issues/582) - **RESOLVED** App able to subscribe to one GCP Pub/Sub topic only [583](https://github.com/dapr/components-contrib/issues/583) - **RESOLVED** Shared Subscription in MQTT [589](https://github.com/dapr/components-contrib/issues/589) - **RESOLVED** SecretStore BulkGetSecret method flattens all of secrets into a single map [590](https://github.com/dapr/components-contrib/issues/590) - **RESOLVED** Update sample links [611](https://github.com/dapr/components-contrib/pull/611) - **RESOLVED** Need a MySQL binding support similar with PostgreSQL [616](https://github.com/dapr/components-contrib/issues/616) - **RESOLVED** Fix get bulk secret for hashicorp vault. [632](https://github.com/dapr/components-contrib/pull/632) - **RESOLVED** Fix service bus new topic creation [636](https://github.com/dapr/components-contrib/pull/636) ### Dashboard - **FIXED** display of full cmd and registered actors [78](https://github.com/dapr/dashboard/issues/78) - **RESOLVED** Numerous improvements and issues on the Dashboard [93](https://github.com/dapr/dashboard/issues/93) - **RESOLVED** Improve log page for K8s [104](https://github.com/dapr/dashboard/issues/104) - **ENABLED** Dashboard to run unprivileged. [119](https://github.com/dapr/dashboard/issues/119) - **FIXED** reported vulnerabilities by npm. [120](https://github.com/dapr/dashboard/issues/120) ### .NET SDK The .NET SDK NuGet packages that corresponds with RC3 of the Dapr runtime is version `1.0.0-rc05`. The .NET SDK has several major feature additions and impactful changes in this release. We recommend every user to read this [migration guide](https://github.com/dapr/dotnet-sdk/issues/569) as a supplement to the release notes. - **RESOLVED** Remove Query all statenames from IActorStateManager because it does not behave as expected [53](https://github.com/dapr/dotnet-sdk/issues/53) - **FIXED** Changed signatures to use IReadOnlyDictionary<TKey, TValue> over Dictionary<TKey, TValue> in public APIs [395](https://github.com/dapr/dotnet-sdk/issues/395) - **FIXED** Actor Runtime should not report Exception text in HTTP responses [410](https://github.com/dapr/dotnet-sdk/issues/410) - **ADDED** support for metadata in pub/sub [425](https://github.com/dapr/dotnet-sdk/issues/425) - **FIXED** TrySaveStateAsync and TryDeleteStateAsync should only handle "rejections" based on ETag, not all RPC exceptions [426](https://github.com/dapr/dotnet-sdk/issues/426) - **FIXED** Actors HTTP handlers don't work with some common frontend server patterns [434](https://github.com/dapr/dotnet-sdk/issues/434) - **FIXED** bug in actor serialization of `ActorId`. [477](https://github.com/dapr/dotnet-sdk/issues/477) - **RESOLVED** Have consistent API names for .NET SDK [500](https://github.com/dapr/dotnet-sdk/issues/500) - **ADDED** DaprClient: Implement GetBulkSecretAsync [510](https://github.com/dapr/dotnet-sdk/issues/510) - **RESOLVED** Change the name of Invoke to InvokeMethod on the Actor proxy for naming consistency [513](https://github.com/dapr/dotnet-sdk/issues/513) - **RESOLVED** Throw DaprException for dapr errors [516](https://github.com/dapr/dotnet-sdk/issues/516) - **RESOLVED** Use Task instead of ValueTask [517](https://github.com/dapr/dotnet-sdk/issues/517) - **ADDED** Support for metadata in Publish API. [521](https://github.com/dapr/dotnet-sdk/issues/521) - **FIXED** ActorProxy.Create(ActorId actorId, Type actorInterfaceType, string actorType) does not work[522](https://github.com/dapr/dotnet-sdk/issues/522) - **RESOLVED** ModelBinding throws ArgumentNullException when state not found in store [524](https://github.com/dapr/dotnet-sdk/issues/524) - **ADDED** More flexible options for HTTP service invocation [526](https://github.com/dapr/dotnet-sdk/issues/526) - **FIXED** Support for null and empty etag. [545](https://github.com/dapr/dotnet-sdk/issues/545) - **RESOLVED** Simplifying Service Invocation API surface [549](https://github.com/dapr/dotnet-sdk/issues/549) - **RESOLVED** Expose Dapr API token to users as a settable value [551](https://github.com/dapr/dotnet-sdk/issues/551) - **FIXED** DaprClient now implements IDisposable so that networking resources can be reclaimed deterministically. [559](https://github.com/dapr/dotnet-sdk/issues/559) - **FIXED** Remove automatic protobuf conversion [442](https://github.com/dapr/dotnet-sdk/issues/442) - **RESOLVED** Provide a single way to configure System.Text.Json serializer options for all Dapr Client and Actors features [532](https://github.com/dapr/dotnet-sdk/issues/532) ### Go SDK - **RESOLVED** add metadata in state get response [128](https://github.com/dapr/go-sdk/pull/128) - **RESOLVED** fix some typo [131](https://github.com/dapr/go-sdk/pull/131) - **RESOLVED** Update SDK to support new etag mechanism, change BulkGetSecrets [134](https://github.com/dapr/go-sdk/issues/134) - **RESOLVED** Add support for etag and bulk secret modifications [135](https://github.com/dapr/go-sdk/pull/135) ### Java SDK The Maven version that corresponds with this release of the Dapr runtime is version `1.0.0-rc-4`. The Java SDK has several major feature additions and impactful changes in this release. We recommend every user to read this [migration guide](https://github.com/dapr/java-sdk/issues/467) as a supplement to the release notes. - **RESOLVED** add java.lang.reflect.Type to deserialize API [331](https://github.com/dapr/java-sdk/issues/331) - **RESOLVED** Add wait() method to block until Sidecar is up [377](https://github.com/dapr/java-sdk/issues/377) - **REFACTORED** CloudEvent serialization, also adding default constructor. [385](https://github.com/dapr/java-sdk/issues/385) - **RESOLVED** validated handling of metadata and fixed when applicable. [396](https://github.com/dapr/java-sdk/issues/396) - **RESOLVED** How to set timeout invoking service [399](https://github.com/dapr/java-sdk/issues/399) - **FIXED** missing eTag response for state APIs. [405](https://github.com/dapr/java-sdk/issues/405) - **RENAMED** methods and properties for consistency across SDKs. [409](https://github.com/dapr/java-sdk/issues/409) - **RESOLVED** Rename invoke to invokeMethod for ActorProxy [418](https://github.com/dapr/java-sdk/issues/418) - **RESOLVED** Implement getBulkSecret API [421](https://github.com/dapr/java-sdk/issues/421) - **REMOVED** DaprException from IllegalArgumentException. [424](https://github.com/dapr/java-sdk/issues/424) - **FIXED** input encoding for HTTP calls. [427](https://github.com/dapr/java-sdk/issues/427) - **RESOLVED** Add support for metadata in Publish API [430](https://github.com/dapr/java-sdk/issues/430) - **FIXED** datacontenttype to respect content-type metadata. [432](https://github.com/dapr/java-sdk/issues/432) - **FIXED** implementations of DaprClient API were blocking for gRPC and HTTP. [434](https://github.com/dapr/java-sdk/issues/434) - **RESOLVED** etag error code changes in dapr runtime need a change in the sdk [437](https://github.com/dapr/java-sdk/issues/437) - **RESOLVED** Handle service invocation over HTTP only [438](https://github.com/dapr/java-sdk/issues/438) - **REMOVED** unused `etag` param from getState() [439](https://github.com/dapr/java-sdk/issues/439) - **RESOLVED** Why not implement java-sdk-springboot as a spring boot starter? [441](https://github.com/dapr/java-sdk/issues/441) - **FIXED** Support for null and empty etag. [442](https://github.com/dapr/java-sdk/issues/442) - **RENAMED** InvokeServiceRequest to InvokeMethodRequest. [443](https://github.com/dapr/java-sdk/pull/443) - **RESOLVED** @ActorMethod to override method's name for client and service [444](https://github.com/dapr/java-sdk/issues/444) - **REMOVED** Dependency from OpenTelemetry SDK [453](https://github.com/dapr/java-sdk/issues/453) - **FIXED** error handling for service invocation with HTTP client and gRPC service. [461](https://github.com/dapr/java-sdk/issues/461) - **ADDED** examples on how to write Unit tests with DaprClient and Actors. [470](https://github.com/dapr/java-sdk/issues/470) - **FIXED** order of State key-value params. [472](https://github.com/dapr/java-sdk/issues/472) ### Python SDK Python SDK version is 1.0.0rc3 and is available through pip/pypi - **RESOLVED** Add wait() method to block until Sidecar is up [140](https://github.com/dapr/python-sdk/issues/140) - **RESOLVED** For invoke Service - How to return error over grpc. [141](https://github.com/dapr/python-sdk/issues/141) - **RESOLVED** Naming changes [150](https://github.com/dapr/python-sdk/issues/150) - **RESOLVED** Allow for a more recent version of grpcio [160](https://github.com/dapr/python-sdk/issues/160) - **ADDED** code in state store example showcasing etag handling. [167](https://github.com/dapr/python-sdk/issues/167) - **FIXED** Support for null and empty etag. [169](https://github.com/dapr/python-sdk/issues/169) - **RESOLVED** Makes service method API invocations over HTTP by default. [176](https://github.com/dapr/python-sdk/issues/176) - **RESOLVED** Add support for bulkGetSecret [179](https://github.com/dapr/python-sdk/issues/179) - **REMOVE** dependency from OpenCensus SDK. [181](https://github.com/dapr/python-sdk/issues/181) ### PHP SDK - **RESOLVED** Dapr composer org, package and publish [1](https://github.com/dapr/php-sdk/issues/1) ### Documentation - **RESOLVED** Make it clear in the docs that all Dapr services Placements and Sentry service do not need Docker to run locally [857](https://github.com/dapr/docs/issues/857) - **RESOLVED** Document components maturity status [935](https://github.com/dapr/docs/issues/935) - **UPDATED** overview description for pub/sub topics and subscriptions [987](https://github.com/dapr/docs/issues/987) - **RESOLVED** mDNS round robin capability [1025](https://github.com/dapr/docs/issues/1025) - **RESOLVED** Fix spelling of Rust [1056](https://github.com/dapr/docs/pull/1056) - **RESOLVED** Update apns.md [1058](https://github.com/dapr/docs/pull/1058) - **RESOLVED** Fix typo in Kubernetes binding docs [1060](https://github.com/dapr/docs/pull/1060) - **RESOLVED** [CONTENT] PubSub handling of CloudEvents and TTL [1061](https://github.com/dapr/docs/issues/1061) - **RESOLVED** Add a note about installing the cli to M1 macs [1064](https://github.com/dapr/docs/issues/1064) - **RESOLVED** refine code align in middleware concept [1066](https://github.com/dapr/docs/pull/1066) - **RESOLVED** update link [1068](https://github.com/dapr/docs/pull/1068) - **RESOLVED** updated rabbitmq pub/sub documentation [1069](https://github.com/dapr/docs/pull/1069) - **RESOLVED** Change NATS streaming deliverAll to deliverNew [1074](https://github.com/dapr/docs/issues/1074) - **RESOLVED** Update rabbitmq.md [1086](https://github.com/dapr/docs/pull/1086) - **RESOLVED** Update the component docs for state stores to capture all the metadata fields and have complete examples [1087](https://github.com/dapr/docs/issues/1087) - **RESOLVED** [CONTENT] Add info about `{uuid}` [1095](https://github.com/dapr/docs/issues/1095) - **RESOLVED** Insert section for Dapr to App authentication [1096](https://github.com/dapr/docs/issues/1096) - **RESOLVED** MySQL State component documentation [1100](https://github.com/dapr/docs/issues/1100) - **RESOLVED** Document Content Type application/cloudevents+json [1130](https://github.com/dapr/docs/issues/1130) ### Quickstarts - **ADDED** Automated validation of quickstarts [357](https://github.com/dapr/quickstarts/issues/357) - **RESOLVED** Error when running Python app: exec: "flask": executable file not found in $PATH [363](https://github.com/dapr/quickstarts/issues/363) ### Samples - **RESOLVED** add new sample [41](https://github.com/dapr/samples/pull/41) ## Upgrading to Dapr 1.0.0-rc.3 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.0.0-rc.3 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.0.0-rc.3) with: ```bash $ dapr --version CLI version: 1.0.0-rc.4 Runtime version: 1.0.0-rc.3 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.0.0-rc.3 -k ``` To upgrade with high availability mode: ``` dapr upgrade --runtime-version 1.0.0.-rc.3 --enable-ha=true -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.0.0-rc.3 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.0.0-rc.3 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.0.0-rc.3 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ kubectl get pods -n dapr-system NAME READY STATUS RESTARTS AGE dapr-dashboard-85cc6c9f7d-hzk69 1/1 Running 0 13m dapr-operator-84985cb985-h2zdv 1/1 Running 0 13m dapr-placement-server-0 1/1 Running 0 13m dapr-sentry-5974c7cb6d-9bnqd 1/1 Running 0 13m dapr-sidecar-injector-5b5bb9454-sfmmx 1/1 Running 0 13m ``` ## Breaking Changes ### Component versioning Specifying a component version is now required. All components *MUST* now include the `v1` version in their spec: ```yaml apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: mycomponent spec: version: v1 ``` ### ETags Two changes were made regarding ETags: 1. An Etag mismatch operation will now return an HTTP status code of `409` and a gRPC code of `Aborted`. 2. There is now a distinction between missing and empty etags. An missing etag from the request is assumed as last-write-wins, while an empty etag will attempt saving the record only if it doesn't exist. ### Dapr Runtime - **RESOLVED** Make required the version field on Component YAML [2260](https://github.com/dapr/dapr/issues/2260) - **FIXED** Empty etag treated as no etag. [2320](https://github.com/dapr/dapr/issues/2320) - **CHANGED** response handling for cross-protocol invocation. [2342](https://github.com/dapr/dapr/issues/2342) - **RESOLVED** Return HTTP 409 Conflict when ETag doesn't match [2619](https://github.com/dapr/dapr/issues/2619) ### .NET SDK - **RESOLVED** Remove Query all statenames from IActorStateManager because it does not behave as expected [53](https://github.com/dapr/dotnet-sdk/issues/53) - **RESOLVED** Prefer IDictionary<TKey, TValue> over Dictionary<TKey, TValue> in public APIs [395](https://github.com/dapr/dotnet-sdk/issues/395) - **RESOLVED** TrySaveStateAsync and TryDeleteStateAsync should only handle "rejections" based on ETag, not all RPC exceptions [426](https://github.com/dapr/dotnet-sdk/issues/426) - **RESOLVED** Actors HTTP handlers don't work with some common frontend server patterns [434](https://github.com/dapr/dotnet-sdk/issues/434) - **RESOLVED** Have consistent API names for .NET SDK [500](https://github.com/dapr/dotnet-sdk/issues/500) - **RESOLVED** Throw DaprException for dapr errors [516](https://github.com/dapr/dotnet-sdk/issues/516) - **RESOLVED** Use Task instead of ValueTask [517](https://github.com/dapr/dotnet-sdk/issues/517) - **RESOLVED** Reimagining service invocation for dotnet-sdk [526](https://github.com/dapr/dotnet-sdk/issues/526) - **RESOLVED** Simplifying Service Invocation API surface [549](https://github.com/dapr/dotnet-sdk/issues/549) - **RESOLVED** Expose Dapr API token to users as a settable value [551](https://github.com/dapr/dotnet-sdk/issues/551) - **FIXED** DaprClient now implements IDisposable so that networking resources can be reclaimed deterministically. [559](https://github.com/dapr/dotnet-sdk/issues/559) ### Go SDK - **RESOLVED** Remove unstable dependencies. [136](https://github.com/dapr/go-sdk/issues/136) ### Java SDK - **REFACTORED** CloudEvent serialization, also adding default constructor. [385](https://github.com/dapr/java-sdk/issues/385) - **FIXED** missing eTag response for state APIs. [405](https://github.com/dapr/java-sdk/issues/405) - **RENAMED** methods and properties for consistency across SDKs. [409](https://github.com/dapr/java-sdk/issues/409) - **RESOLVED** Handle service invocation over HTTP only [438](https://github.com/dapr/java-sdk/issues/438) - **REMOVED** unused `etag` param from getState() [439](https://github.com/dapr/java-sdk/issues/439) - **RENAMED** InvokeServiceRequest to InvokeMethodRequest. [443](https://github.com/dapr/java-sdk/pull/443) - **REMOVED** dependency from OpenTelemetry SDK [453](https://github.com/dapr/java-sdk/issues/453) - **FIXED** order of State key-value params. [472](https://github.com/dapr/java-sdk/issues/472) ### Python SDK - **RESOLVED** Naming changes [150](https://github.com/dapr/python-sdk/issues/150) - **REMOVED** dependency from OpenCensus SDK. [181](https://github.com/dapr/python-sdk/issues/181)
mikeee/dapr
docs/release_notes/v1.0.0-rc.3.md
Markdown
mit
27,576
# Dapr 1.0.0 We're excited to announce the release of Dapr 1.0.0! 🎉🎉🎉🎉 🎈🎈🎈🎈 We would like to extend our thanks to all the new and existing contributors who helped make this release happen. If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). See [this](#upgrading-to-dapr-100) section on installing/upgrading Dapr to version 1.0.0. For a list of all changes since 0.11 release, refer to the release notes from the release candidates: - [1.0.0-rc.3](v1.0.0-rc.3.md) - [breaking changes](v1.0.0-rc.3.md#breaking-changes) - [1.0.0-rc.2](v1.0.0-rc.2.md) - [breaking changes](v1.0.0-rc.2.md#breaking-changes) - [1.0.0-rc.1](v1.0.0-rc.1.md) - [breaking changes](v1.0.0-rc.1.md#breaking-changes) > For Java applications using Dapr Java SDK, use SDK version 1.0.0. See [upgrade instructions for the Java SDK](https://github.com/dapr/java-sdk/issues/493). > For .Net applications using Dapr .Net SDK, use SDK version 1.0.0. See [upgrade instructions for the .Net SDK](https://github.com/dapr/dotnet-sdk/issues/593). ## Acknowledgements ❤️ Thanks to everyone who made this release possible! @AaronCrawfis, @1046102779, @abserari, @alpha-baby, @alydersen, @ajaysingh77, @arghya88, @artursouza, @beiwei30, @Betula-L, @bvwells, @cilerler, @cmendible, @cvictory, @DarqueWarrior, @darren-wang, @davidkarlsen, @discostu105, @dylandee, @eibrunorodrigues, @eNeRGy164, @fjvela, @gaoxinge, @georgestevens99, @halspang, @harrykimpel, @hepin1989, @IroNEDR, @issacg, @jdubois, @jigargandhi, @jjcollinge, @juazasan, @karishma-chawla, @karoldeland, @kendallroden, @kevgo, @ksivamuthu, @kzmake, @Li-Yanzhi, @mchmarny, @mfcollins3, @msfussell, @mrchypark, @mukundansundar, @newbe36524, @orizohar, @PeterGerrard, @Phiph, @pkedy, @ProfessorMc, @Qalifah, @rrylee, @rynowak, @sau-lanvy, @shubham1172, @skyao, @soiboxauxi, @tcnghia, @TenSt, @tianvan, @tomkerkhove, @trondhindenes, @tylermurry, @vinayada1, @wcs1only, @withinboredom, @wjayesh, @XavierGeerinck, @xiazuojie, @yaron2, @Yggdrasill-7C9, @youngbupark, @wwulfric, @ZeyadYasser, @zzxwill ## Highlights since the 0.11 release - The [actor placement service](https://docs.dapr.io/developing-applications/building-blocks/actors/actors-background/#actor-placement-service) now has a high availability (HA) configuration to improve resilience and enable upgrades on production system that use actors to minimize downtime on actor instance availability. - Substantial work has been done on improving the scale and performance of actors. - All Dapr APIs can now be called on the Dapr sidecar before the app has responded on the app-port. For example, this enables the app to retrieve secrets before the app starts, enabling setting up JWT validation in an auth pipeline/middleware. - Http endpoints in your app can now be https endpoints, which previously were blocked. If your app is listening on `https` or has a gRPC TLS configuration enabled, use the `app-ssl` flag like this. This will have Dapr invoke the app over an insecure SSL channel: `dapr run --app-id nodeapp --app-port 3000 node app.js --app-ssl` - Published [service invocation API performance numbers](https://docs.dapr.io/operations/performance-and-scalability/). - The CLI component command `dapr components -k` now shows version information for each component. - Support for HTTP query parameters with many values per key, including support in SDKs. [2786](https://github.com/dapr/dapr/pull/2786) - Added the ability to share state between different applications using prefix strategies. Visit [this](https://docs.dapr.io/developing-applications/building-blocks/state-management/howto-share-state/) link to learn more. - Added a [bulk secrets API](https://docs.dapr.io/reference/api/secrets_api/#get-bulk-secret) to get all the secrets at once from a secret store that the app has access to. Implemented in the [secret components](https://github.com/dapr/components-contrib/tree/master/secretstores) - Actors in Java SDK communicate to Dapr sidecar via GRPC. This allows better performance for invocation of Actor methods, timers and reminders. - Deprecation of exporters component [#2337](https://github.com/dapr/dapr/issues/2337): Tracing is now part of Dapr core, and tracing settings have moved to Configuration CRD. See [this doc](https://docs.dapr.io/operations/configuration/configuration-overview/#tracing) for information about the new tracing settings. For more detailed instructions on setting up tracing in new Configuration, check out the [observability quickstart sample](https://github.com/dapr/quickstarts/tree/v1.0.0/observability) as well as backend-specific guides for [Zipkin](https://v1-rc2.docs.dapr.io/operations/monitoring/zipkin/), [Jaeger](https://docs.dapr.io/operations/monitoring/jaeger/), [New Relics](https://docs.dapr.io/operations/monitoring/newrelic/), and [OpenTelemetry trace backends like Azure AppInsight](https://docs.dapr.io/operations/monitoring/open-telemetry-collector/). - Service invocation performance test results now published and available at the [dapr perf website](http://daprperf.azurewebsites.net/) - Full review on the [Dapr CLI](https://docs.dapr.io/reference/cli/) to make command parameters consistent, update descriptions, provide more examples and add capabilities such as getting the [output for configuration](https://docs.dapr.io/reference/cli/dapr-configurations/).Note that this includes breaking changes. - Improvements to the [Dapr metrics dashboards](https://docs.dapr.io/operations/monitoring/grafana/). - Round robin load balancing of mDNS requests. This supports multiple app instances for a single standalone app id with round robin load balancing across them for environments that support mDNS, such a physical machines. For example, if you have 1 instance of app A and 5 instances of app B and then call from A->B, Dapr round robins' between the 5 B instances. - Added the option to specify whether Dapr should ignore errors when loading a component and continue initialization. See [here](https://docs.dapr.io/operations/components/component-schema/) for the new `ignoreErrors` field. - [Dependency injection (DI)](https://github.com/dapr/dotnet-sdk/issues/505) for .NET actors - Pub/Sub [per message time-to-live](https://docs.dapr.io/developing-applications/building-blocks/pubsub/pubsub-message-ttl/) Dapr enables per-message time-to-live (TTL) for all pub/sub components. Applications can set time-to-live per message, and subscribers will not receive those messages after expiration. - [Sidecar to app authentication](https://docs.dapr.io/operations/security/app-api-token/) - [MySQL output binding](https://docs.dapr.io/operations/components/setup-bindings/supported-bindings/mysql/) - [MySQL state store](https://docs.dapr.io/operations/components/setup-state-store/supported-state-stores/setup-mysql/) - Component metadata's random value via `{uuid}` marker - [Upgrade CLI command to upgrade the Dapr control plane](https://github.com/dapr/cli#upgrade-dapr-on-kubernetes) - Runs as non-root by defaut on Kubernetes - Numerous improvements to the [Dapr Dashboard](https://github.com/dapr/dashboard) - Added [dapr-distributed-calendar sample](https://github.com/dapr/samples/tree/master/dapr-distributed-calendar) - [Java SDK](https://github.com/dapr/java-sdk) fixed to perform async API calls to Dapr sidecar - [Improvements to actor registration, exception handling](https://github.com/dapr/dotnet-sdk/issues/569) in the .NET SDK - Service invocation in the SDK now uses HTTP as the underlying protocol so deeper integration with [.NET SDK](https://github.com/dapr/dotnet-sdk) API surface for HTTP is possible, which makes service invocation much more flexible. See [Service Invocation section](https://github.com/dapr/dotnet-sdk/issues/569) for more details - Support for `data_base64` attribute when wrapping pubsub payload as CloudEvent. [2612](https://github.com/dapr/dapr/issues/2612) - Java SDK uses Reactor's context builtin capabilities and does not have Context object as part of the request and response objects anymore. [478](https://github.com/dapr/java-sdk/issues/478) ## New in this release since 1.0.0-rc.3 ### Dapr Runtime - **RESOLVED** Add sha256sum to the released files [626](https://github.com/dapr/dapr/issues/626) - **RESOLVED** oauth middleware not obtaining token [1699](https://github.com/dapr/dapr/issues/1699) - **RESOLVED** Require versions in APIs [2297](https://github.com/dapr/dapr/issues/2297) - **FIXED** Update E2E procedures to replace deprecated kafka chart [2450](https://github.com/dapr/dapr/issues/2450) - **ADDED** Support for binary data when wrapping pubsub payload as CloudEvent. [2612](https://github.com/dapr/dapr/issues/2612) - **RESOLVED** Update the license header in all files [2758](https://github.com/dapr/dapr/issues/2758) - **RESOLVED** Apply access list url normalization [2768](https://github.com/dapr/dapr/pull/2768) - **RESOLVED** Helm chart has duplicate securityContext attributes for dapr-sidecar-injector [2784](https://github.com/dapr/dapr/issues/2784) - **RESOLVED** Allow duplicate query string parameters in service to service invocation [2786](https://github.com/dapr/dapr/pull/2786) - **FIXED** gRPC app callback should use data_base64 CloudEvent field when present. [2794](https://github.com/dapr/dapr/issues/2794) ### Dapr CLI - Fix Dapr stable version initialization [592](https://github.com/dapr/cli/issues/592) ### Components - **RESOLVED** Azure Blob Storage Binding Expecting String for Data [492](https://github.com/dapr/components-contrib/issues/492) - **RESOLVED** Remove Exporter Components now OpenTelemetry is adopted. [508](https://github.com/dapr/components-contrib/issues/508) - **RESOLVED** Allow DynamoDB state store to resolve credentials using AWS SDK credentials chain [647](https://github.com/dapr/components-contrib/issues/647) - **RESOLVED** Support Kafka partition key in Pub/Sub [667](https://github.com/dapr/components-contrib/issues/667) - **FIXED** handling of key not found in mongodb to return empty result instead of errror. [684](https://github.com/dapr/components-contrib/issues/684) - **RESOLVED** Error when saving byte[] in cosmosdb [685](https://github.com/dapr/components-contrib/issues/685) - **RESOLVED** Kafka pubsub can drop message in partial failures [687](https://github.com/dapr/components-contrib/issues/687) ### .NET SDK - **RESOLVED** Handle content type of "application/octet-stream" in CloudEvent data [582](https://github.com/dapr/dotnet-sdk/issues/582) - **RESOLVED** Add missing cancellation token [584](https://github.com/dapr/dotnet-sdk/issues/584) ### Go SDK - **RESOLVED** Updates for next runtime RC [142](https://github.com/dapr/go-sdk/issues/142) ### Java SDK - **RESOLVED** Fix PubSub publish + Update IT to use RC3 bits. [471](https://github.com/dapr/java-sdk/pull/471) - **RESOLVED** Enhancing validation for ActorTurnBasedConcurrencyIT. [474](https://github.com/dapr/java-sdk/pull/474) - **RESOLVED** Adds IT to confirm eTag is parsed correctly to/from runtime. [475](https://github.com/dapr/java-sdk/pull/475) - **REMOVED** Context from request and response objects. [478](https://github.com/dapr/java-sdk/issues/478) - **ADDED** Support many values for one query param in HTTP and binary data in Cloud Event for PubSub. [484](https://github.com/dapr/java-sdk/issues/484) - **ADDED** Support to publish CloudEvent payload (and others) with correct content-type per event. [491](https://github.com/dapr/java-sdk/issues/491) ### Python SDK - **ADDED** Autovalidation for python examples. [177](https://github.com/dapr/python-sdk/issues/177) - **RESOLVED** Allow multiple query param values per key for service invocation [192](https://github.com/dapr/python-sdk/issues/192) ### Rust SDK - **RESOLVED** update proto to the latest [30](https://github.com/dapr/rust-sdk/issues/30) - **RESOLVED** Automate cargo package publish process [33](https://github.com/dapr/rust-sdk/issues/33) ### C++ SDK - **RESOLVED** Update copyright header [27](https://github.com/dapr/cpp-sdk/issues/27) ### JavaScript SDK - **RESOLVED** Upgrade proto to the latest [63](https://github.com/dapr/js-sdk/issues/63) ### Documentation - **RESOLVED** Update troubleshooting guide for tracing [208](https://github.com/dapr/docs/issues/208) - **RESOLVED** Improved the service invocation building block concepts doc [362](https://github.com/dapr/docs/issues/362) - **RESOLVED** Provide guidance doc to use Prometheus queries to view Dapr metrics [707](https://github.com/dapr/docs/issues/707) - **RESOLVED** Update the mTLS configuration doc to describe how to run Sentry control plan service locally [851](https://github.com/dapr/docs/issues/851) - **RESOLVED** Establish a deprecation/support versions policy [864](https://github.com/dapr/docs/issues/864) - **RESOLVED** Update docs for dapr/dapr#2338 [899](https://github.com/dapr/docs/issues/899) - **RESOLVED** Binding documentation needed for Alicloud Object Storage (OSS) [970](https://github.com/dapr/docs/issues/970) - **RESOLVED** Incorrect instructions for sending ETag [1071](https://github.com/dapr/docs/issues/1071) - **RESOLVED** Updating K8s guidance to include app rollout step for when a cluster is completely restarted [1072](https://github.com/dapr/docs/issues/1072) - **RESOLVED** Update Secrets API reference with the new Get Bulk Secret HTTP Response type [1089](https://github.com/dapr/docs/issues/1089) - **RESOLVED** Add competing consumer concept to pub/sub overview docs [1093](https://github.com/dapr/docs/issues/1093) - **RESOLVED** Add documentation for the "--dapr-http-max-request-size" argument for the CLI and "dapr.io/http-max-request-size" annotation [1099](https://github.com/dapr/docs/issues/1099) - **RESOLVED** Document all the environments variables used by developer in code and in the dapr CLI [1114](https://github.com/dapr/docs/issues/1114) - **RESOLVED** Rework Azure Blob Storage documentation to be more clear [1122](https://github.com/dapr/docs/pull/1122) - **RESOLVED** Update the component docs for bindings to capture all the metadata fields and have complete examples [1137](https://github.com/dapr/docs/issues/1137 - **RESOLVED** Update get-started-component.md [1139](https://github.com/dapr/docs/pull/1139) - **RESOLVED** HTTP Binding missing information/outdated [1153](https://github.com/dapr/docs/issues/1153) - **RESOLVED** CLI Upgrade command missing [1163](https://github.com/dapr/docs/issues/1163) - **RESOLVED** Update the Kubernetes Hosting documentation [1168](https://github.com/dapr/docs/issues/1168) - **RESOLVED** Update the Service Invocation Perf numbers for v1.0 [1169](https://github.com/dapr/docs/issues/1169) - **RESOLVED** fixed typo in Service invocation overview [1170](https://github.com/dapr/docs/pull/1170) - **RESOLVED** Remove retry policies section for state [1172](https://github.com/dapr/docs/issues/1172) - **RESOLVED** v1.0 - Update RC related commands in "getting-started" [1188](https://github.com/dapr/docs/issues/1188) - **RESOLVED** It is unclear which state store components support actors [1199](https://github.com/dapr/docs/issues/1199) ### Quickstarts - **RESOLVED** Document steps to setup allow lists feature for self hosted mode [317](https://github.com/dapr/quickstarts/issues/317) - **RESOLVED** Add OpenTelemetry collector agent instruction into quickstarts sample [324](https://github.com/dapr/quickstarts/issues/324) - **RESOLVED** Kafka helm chart deprecated. [325](https://github.com/dapr/quickstarts/issues/325) - **RESOLVED** Kubernetes quickstarts should point at 'latest' container tags. [346](https://github.com/dapr/quickstarts/issues/346) ### Test Infrastructure - **RESOLVED** Update test-infra to v0.12.0 .Net SDK [78](https://github.com/dapr/test-infra/issues/78) ## Upgrading to Dapr 1.0.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` Next, follow [these](https://github.com/dapr/cli#installing-dapr-cli) instructions to install the latest CLI version, or alternatively download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.0.0) with: ```bash $ dapr --version CLI version: 1.0.0 Runtime version: 1.0.0 ``` ### Kubernetes #### Upgrading from a previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.0.0 -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm *Note: If upgrading from Dapr 0.11.x, use the CLI to upgrade* To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm install dapr dapr/dapr --create-namespace=true --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.6.0 15s 2021-02-14 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.0.0 15s 2021-02-14 13:07.39 dapr-sentry dapr-system True Running 1 1.0.0 15s 2021-02-14 13:07.39 dapr-operator dapr-system True Running 1 1.0.0 15s 2021-02-14 13:07.39 dapr-placement dapr-system True Running 1 1.0.0 15s 2021-02-14 13:07.39 ``` After Dapr 1.0.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes ### Components - **FIXED** handling of key not found in mongodb to return empty result instead of errror. [684](https://github.com/dapr/components-contrib/issues/684) - **RESOLVED** Error when saving byte[] in cosmosdb [685](https://github.com/dapr/components-contrib/issues/685) ### Java SDK - **REMOVED** Context from request and response objects. [478](https://github.com/dapr/java-sdk/issues/478) - **ADDED** Support many values for one query param in HTTP and binary data in Cloud Event for PubSub. [484](https://github.com/dapr/java-sdk/issues/484) ### .Net SDK - **RESOLVED** Handle content type of “application/octet-stream” in CloudEvent data [582](https://github.com/dapr/dotnet-sdk/issues/582) ### Python SDK - **RESOLVED** Support multiple values for a single query param key in service invocation [192](https://github.com/dapr/python-sdk/issues/192)
mikeee/dapr
docs/release_notes/v1.0.0.md
Markdown
mit
20,285
# Dapr 1.0.1 ## Fixes * Fixed race condition in actor reminders (https://github.com/dapr/dapr/issues/2705) * Added etag support to MongoDB state store ### Overview [The issue](https://github.com/dapr/dapr/issues/2705) describes how actor reminders can fail to persist when deleted with concurrent updates. It means that if there are multiple reminders for the same actor type being registered or unregistered at the same time, an update might be overwritten by another update. The root cause was that all instances for a given actor type shares the same record in the database to keep track of the list of registered reminders. Concurrent updates to this list were not done atomically. The fix uses `eTag` feature in state stores in Dapr to only update if etag is unchanged from the time it was last read and avoid race conditions. With this fix, states stores must be transactional **and** support eTag in order to be used as actors' state store. The only transactional state store in Dapr that did not have eTag support was MongoDB but that is being added in this hotfix as well. The issue was fixed with the following pull requests: * https://github.com/dapr/components-contrib/pull/734 * https://github.com/dapr/components-contrib/pull/736 * https://github.com/dapr/dapr/pull/2873 * https://github.com/dapr/dapr/pull/2877 In addition, the changes above also include a new E2E test scenario reproducing the issue to avoid future regressions. > Note: Applications using MongoDB as state store for actors can safely upgrade to this version since the eTag will be added automatically on the first update to actors' reminders.
mikeee/dapr
docs/release_notes/v1.0.1.md
Markdown
mit
1,633
# Dapr 1.1.0 We're happy to announce the release of Dapr 1.1.0! We would like to extend our thanks to all the new and existing contributors who helped make this release happen. **Highlights** * New preview feature for sidecar injection in Kubernetes Job with new `shutdown` API to stop sidecar from app [2689](https://github.com/dapr/dapr/issues/2689) * Defining Dapr sidecar environment variables [2508](https://github.com/dapr/dapr/issues/2508) * Etag is required for actors in future added state stores [2890](https://github.com/dapr/dapr/issues/2890) * Dapr API Token is not included in telemetry traces anymore [2974](https://github.com/dapr/dapr/issues/2974) * Local Storage Binding [752](https://github.com/dapr/components-contrib/issues/752) * Added conformance tests for various pubsub components (Pulsar, MQTT, Hazelcast, RabbitMQ) * .NET Apps can now have unit tests for Actor Timers and Reminder functionality [575](https://github.com/dapr/dotnet-sdk/issues/575) * .NET SDK support for hierarchical nesting configuration [615](https://github.com/dapr/dotnet-sdk/issues/615) If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). See [this](#upgrading-to-dapr-1.1.0) section on upgrading Dapr to version 1.1.0. ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @Betula-L, @Hugome, @PeterGerrard, @SamuelMcAravey, @Taction, @artursouza, @dinggh, @halspang, @hnlq715, @jigargandhi, @ksivamuthu, @liamgib, @luckyxiaoqiang, @lynn-orrell, @moonchanyong, @mukundansundar, @orizohar, @pkedy, @puzpuzpuz, @rynowak, @springe2004, @tcnghia, @trondhindenes, @wcs1only, @withinboredom, @yaron2 ## New in this release ### Dapr Runtime - **FIXED** Bug in runtime. [2348](https://github.com/dapr/dapr/issues/2348) - **RESOLVED** feat: Allow for defining env-vars for sidecar [2508](https://github.com/dapr/dapr/issues/2508) - **ADDED** Support response propagation for input bindings [2628](https://github.com/dapr/dapr/issues/2628) - **RESOLVED** Prevent helm install from clashing with an existing `role-tokenreview-binding` (used by Vault) cluster role binding [2651](https://github.com/dapr/dapr/issues/2651) - **RESOLVED** Daprd failed to start metric server due to address already in use even though configuration metric disabled. [2677](https://github.com/dapr/dapr/issues/2677) - **ADDED** Dapr sidecar support for K8s Cronjob. [2689](https://github.com/dapr/dapr/issues/2689) - **ADDED** list of Dapr components before loading them [2723](https://github.com/dapr/dapr/issues/2723) - **RESOLVED** TraceId is not propagated when using dapr grpc client's InvokeMethodAsync method [2749](https://github.com/dapr/dapr/issues/2749) - **RESOLVED** Avoid push of Helm chart when chart version wasn't updated [2750](https://github.com/dapr/dapr/pull/2750) - **RESOLVED** hotfix(fswatcher): repair fswatcher fmask &error [2777](https://github.com/dapr/dapr/pull/2777) - **RESOLVED** feat(logger): fix typo [2778](https://github.com/dapr/dapr/pull/2778) - **RESOLVED** support(scopes): increase resource definition fault tolerance [2779](https://github.com/dapr/dapr/pull/2779) - **RESOLVED** optimize(healthz): continuously check failed and return failure state [2781](https://github.com/dapr/dapr/pull/2781) - **RESOLVED** Upgrade to Go 1.16 [2819](https://github.com/dapr/dapr/pull/2819) - **RESOLVED** optimize(components): use IsInitialVersion method [2832](https://github.com/dapr/dapr/pull/2832) - **RESOLVED** confirms that state key does not contain "||" [2835](https://github.com/dapr/dapr/pull/2835) - **RESOLVED** optimize(http): reduce repetitive secretstore codes [2841](https://github.com/dapr/dapr/pull/2841) - **FIXED** Runtime will no longer override X-Forwarded Headers if they already exist [2846](https://github.com/dapr/dapr/issues/2846) - **RESOLVED** fixme(fasthttp/router): upgrade fasthttp router to solve '/' [2863](https://github.com/dapr/dapr/pull/2863) - **RESOLVED** Fail actors state stores if etag is not supported [2890](https://github.com/dapr/dapr/issues/2890) - **RESOLVED** Fix spelling of separator [2913](https://github.com/dapr/dapr/pull/2913) - **RESOLVED** Fix read/write map race in grpc.Manager [2915](https://github.com/dapr/dapr/pull/2915) - **RESOLVED** Fix typos in comments [2928](https://github.com/dapr/dapr/pull/2928) - **FIXED** Race condition of reading and writing components in runtime. [2932](https://github.com/dapr/dapr/issues/2932) - **RESOLVED** Use filepath package to do file path operations [2936](https://github.com/dapr/dapr/issues/2936) - **FIXED** Component update without checking namespace and scope by operator [2937](https://github.com/dapr/dapr/issues/2937) - **RESOLVED** Fix typos related to placement [2959](https://github.com/dapr/dapr/pull/2959) - **RESOLVED** Changed sidecar injector pull policy to IfNotPresent [2965](https://github.com/dapr/dapr/pull/2965) - **RESOLVED** Dapr API Token should not be included in telemetry traces [2974](https://github.com/dapr/dapr/issues/2974) ### Dapr CLI - **ADDED** JSON logging option [515](https://github.com/dapr/cli/issues/515) - **ADDED** `--wait` flag for `init` and `upgrade` commands [597](https://github.com/dapr/cli/issues/597) - **RESOLVED** status check panic on pending containers [609](https://github.com/dapr/cli/issues/609) - **RESOLVED** CRD gone after running `dapr upgrade` [622](https://github.com/dapr/cli/issues/622) - **FIXED** CLI returns non-zero for dapr stop command in Windows [631](https://github.com/dapr/cli/issues/631) ### Components - **ADDED** blob deletion support in Azure Blob Storage binding [681](https://github.com/dapr/components-contrib/issues/681) - **RESOLVED** Avoid using github.com/satori/go.uuid [703](https://github.com/dapr/components-contrib/issues/703) - **ADDED** message redelivery and improved concurrency settings for Redis PubSub [710](https://github.com/dapr/components-contrib/issues/710) - **ADDED** Retries to handle MQTT message error and acknowledge processed messages [720](https://github.com/dapr/components-contrib/issues/720) - **ADDED** Retries to handle Hazelcast message errors [723](https://github.com/dapr/components-contrib/issues/723) - **ADDED** `eTag` support for MongoDB state store [726](https://github.com/dapr/components-contrib/issues/726) - **RESOLVED** GetResponse does not return nil eTag in state store [731](https://github.com/dapr/components-contrib/issues/731) - **RESOLVED** Storing `byte[]` value in CosmoDB state component [745](https://github.com/dapr/components-contrib/issues/745) - **ADDED** AWS SSM Parameter store component as secret store [746](https://github.com/dapr/components-contrib/issues/746) - **RESOLVED** Local Storage Binding [752](https://github.com/dapr/components-contrib/issues/752) - **RESOLVED** refactor GCP pubsub [760](https://github.com/dapr/components-contrib/pull/760) - **RESOLVED** fix pubsub redis close bug [769](https://github.com/dapr/components-contrib/pull/769) ### .NET SDK - **RESOLVED** Added documentation for docker-compose, Tye and other local development options [534](https://github.com/dapr/dotnet-sdk/issues/534) - **RESOLVED** Updated actor docs [546](https://github.com/dapr/dotnet-sdk/issues/546) - **RESOLVED** Make it possible to unit test Actor Timers and Reminder functionality [575](https://github.com/dapr/dotnet-sdk/issues/575) - **FIXED** handling of non-JSON content in data field for CloudEvents [592](https://github.com/dapr/dotnet-sdk/issues/592) - **RESOLVED** Add documentation for dependency injection in actors [612](https://github.com/dapr/dotnet-sdk/issues/612) - **ADDED** support for hierarchical nesting configuration [615](https://github.com/dapr/dotnet-sdk/issues/615) - **ADDED** support for configuring key delimiters for nesting configuration [627](https://github.com/dapr/dotnet-sdk/issues/627) ### Python SDK - **ADDED** Add DAPR_HTTP_TIMEOUT_SECONDS configuration option. [162](https://github.com/dapr/python-sdk/issues/162) - **ADDED** Shutdown support for python-sdk [210](https://github.com/dapr/python-sdk/issues/210) ### Go SDK - **RESOLVED** fix go-sdk example doc [144](https://github.com/dapr/go-sdk/pull/144) - **RESOLVED** Update pub.go [145](https://github.com/dapr/go-sdk/pull/145) - **RESOLVED** doc: fix typo [148](https://github.com/dapr/go-sdk/pull/148) - **RESOLVED** feat: add shutdown [151](https://github.com/dapr/go-sdk/pull/151) ### Quickstarts - **RESOLVED** Broken Link for .net SDK quick start examples [389](https://github.com/dapr/quickstarts/issues/389) - **RESOLVED** Update quickstarts to reflect dapr init --namespace option [393](https://github.com/dapr/quickstarts/issues/393) - **RESOLVED** Autovalidate external URLs [394](https://github.com/dapr/quickstarts/issues/394) - **RESOLVED** Multiple race conditions when deploying quickstarts to Kubernetes [398](https://github.com/dapr/quickstarts/issues/398) - **RESOLVED** Pub/Sub quickstart links lead to Chinese pages [410](https://github.com/dapr/quickstarts/issues/410) ## Upgrading to Dapr 1.1.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Alternatively, follow [these](https://docs.dapr.io/getting-started/install-dapr-cli/) instructions to get the latest CLI. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.1.0 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.1.0) with: ```bash $ dapr --version CLI version: 1.1.0 Runtime version: 1.1.0 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest CLI release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Alternatively, follow [these](https://docs.dapr.io/getting-started/install-dapr-cli/) instructions to get the latest CLI. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.1.0 -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Troubleshooting upgrade using the CLI There is a known issue running upgrades on clusters that may have previously had a version prior to 1.0.0-rc.2 installed on a cluster. Most users should not encounter this issue, but there are a few upgrade path edge cases that may leave an incompatible CustomResourceDefinition installed on your cluster. The error message for this case looks like this: ``` ❌ Failed to upgrade Dapr: Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply The CustomResourceDefinition "configurations.dapr.io" is invalid: spec.preserveUnknownFields: Invalid value: true: must be false in order to use defaults in the schema ``` To resolve this issue please run the follow command to upgrade the CustomResourceDefinition to a compatible version: ``` kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/5a15b3e0f093d2d0938b12f144c7047474a290fe/charts/dapr/crds/configuration.yaml ``` Then proceed with the `dapr upgrade --runtime-version 1.1.0 -k` command as above. ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.1.0 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.1.0 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.1.0 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.6.0 15s 2021-03-31 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.1.0 15s 2021-03-31 13:07.39 dapr-sentry dapr-system True Running 1 1.1.0 15s 2021-03-31 13:07.39 dapr-operator dapr-system True Running 1 1.1.0 15s 2021-03-31 13:07.39 dapr-placement dapr-system True Running 1 1.1.0 15s 2021-03-31 13:07.39 ``` After Dapr 1.1.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes None.
mikeee/dapr
docs/release_notes/v1.1.0.md
Markdown
mit
13,873
# Dapr 1.1.1 ## Fixes * Add POST HTTP API for shutdown (https://github.com/dapr/dapr/pull/3020) ### Overview If you are not using the HTTP shutdown API as part of the Kubernetes job support that was added in v1.1, you do not need to upgrade to 1.1.1. If you are using this feature, please read on. As a general rule, state mutating APIs should not be GET requests. The newly added shutdown API endpoint allows changing the state of the Dapr sidecar, by asking it to quit. We are adding a POST API that is functionally equivalent to the GET API. The GET API will be deprecated according to our [deprecation plan](https://docs.dapr.io/operations/support/support-release-policy/#feature-and-deprecations). We strongly recommend that anyone looking to adopt Kubernetes job support via the HTTP shutdown API integrate with the POST API. Please see the [latest documentation](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-job/) for an example integration with the HTTP POST shutdown API.
mikeee/dapr
docs/release_notes/v1.1.1.md
Markdown
mit
1,005
# Dapr 1.1.2 ## Fixes * Improvements to Asure Service Bus component behavior under throttling (https://github.com/dapr/dapr/issues/3047) ### Overview If you are not using the Azure Service Bus pubsub component, you do not need to upgrade to 1.1.2. If you are using this component, please read on. We received a report of excess errors under load when publishing messages to the Azure Service Bus. With some investigation and a successful reproduction, we determined that if the upstream Azure Service Bus throttles a request, the upstream Azure Service Bus client go library would close the connection and any outstanding publish operations will fail with an error. Workloads with publication bursts on the order of thousands of messages per second can trigger rate limiting in the upstream service and thus experience failed publish attempts. This patch release address this condition in two ways: 1. The Azure Service Bus pubsub component will now retry with exponential backoff by default. This allows bursty traffic a chance to recover a deliver successfully during the next rate limit window. 2. While diagnosing this issue, we also discovered an exteraneous API call being made in line with every publish request. This API call counts towards the total upstream service throttling limit, so removing it allows Dapr users to publish more messages before hitting the throttling limit. Big thanks to @javageek79 for bringing this to our attention, and to @pkedy for root cause analysis and patch.
mikeee/dapr
docs/release_notes/v1.1.2.md
Markdown
mit
1,510
# Dapr 1.10.1 ## Fixes regression in Cloud Event fields "id" and "source" ### Problem Dapr 1.10.0 introduced a regression in pub/sub. When publishing a message, Dapr incorrectly sets the Dapr "app-id" as the `id` field in the Cloud Envelope instead of a UUID value, Additionally, the `source` field was be set to `"Dapr"`, irrespective of the app-id producing the event. ### Impact This impacts Dapr users who publish messages and who are not using custom cloud events and/or raw paylods. Impacted Dapr version is 1.10.0. ### Root cause The regression was introduced in a code change first merged for Dapr 1.10.0. ### Solution We adjusted the change and added tests to capture the correctness of the `id` field for the scenario where Dapr is required to produce a new cloud event.
mikeee/dapr
docs/release_notes/v1.10.1.md
Markdown
mit
791
# Dapr 1.10.2 ## Fix removing extra commits from master branch in 1.10.1 ### Problem This release does not address any known issue. The Dapr 1.10.1 hotfix contained additional commits from the `master` branch that were not part of the 1.10 release branch. The 1.10.2 hotfix guarantees that all changes in the release are tested and validated. ### Impact There are no known issues or regressions. The impact is having additional code changes in the 1.10.1 version that did not go through proper release tests. ### Root cause The v1.10.1 tag pulled in additional code changes from the `master` branch, that were not scheduled to be included in the 1.10.x release. ### Solution We are releasing Dapr v1.10.2 with the correct set of changes from the Dapr 1.10 branch. Dapr 1.10.1 artifacts will be deleted.
mikeee/dapr
docs/release_notes/v1.10.2.md
Markdown
mit
812
# Dapr 1.10.3 This hotfix release contains seven bug fixes. - [Fixes Dapr starting without middlewares when one component in the pipeline fails to init](#fixes-dapr-starting-without-middlewares-when-one-component-in-the-pipeline-fails-to-init) - [Fixes handling of "continue-as-new" for Dapr Workflows](#fixes-handling-of-continue-as-new-for-dapr-workflows) - [Fixes issues with Azure Service Bus components not recovering after failures](#fixes-issues-with-azure-service-bus-components-not-recovering-after-failures) - [Restores support for certificate authentication without password or mTLS in Kafka](#restores-support-for-certificate-authentication-without-password-or-mtls-in-kafka) - [Fixed issues with NATS JetStream when no subscription name is specified](#fixed-issues-with-nats-jetstream-when-no-subscription-name-is-specified) - [Fixed Dapr to hand over redirects to application](#fixed-dapr-to-hand-over-redirects-to-application) - [Fixes error message lost in service invocation](#fixes-error-message-lost-in-service-invocation) ## Fixes Dapr starting without middlewares when one component in the pipeline fails to init ### Problem When Dapr sidecars are configured to include middlewares, either for the "Dapr" HTTP pipeline or for the "app" HTTP pipeline, a failure in initializing one of the components in the pipeline caused Dapr to start without _any_ middleware configured for that pipeline, with only a warning-level log shown. Instead, Dapr should have respected the `ignoreErrors` property of components (with a default of `false`) to decide if the sidecar could have started without that _individual_ middleware (like for any other kinds of components). Additionally, if `ignoreErrors` is `true`, only the failed components should have been excluded from the pipeline, and the other ones should have continued to be included. ### Impact The issue impacts users on Dapr 1.10.2 and earlier who use middleware components, for both the "Dapr" HTTP pipeline and the "app" HTTP pipeline. ### Root cause In the Dapr runtime, the methods initializing middleware components behaved differently from the methods that initialized all other kinds of Dapr components. For middlewares, the value of `ignoreErrors` in the components' spec was ignored and assumed to be `true` in all cases; the default should have been `false`. With `ignoreErrors` set to `false`, the Dapr sidecar should have refused to start if one of the middlewares failed to initialize. If a component had `ignoreErrors` set to `true`, instead, Dapr should have continued initializing excluding only the impacted component; instead, the runtime was excluding all components in the middleware pipeline when one failed to initialize. ### Solution We have changed the methods that initialize the HTTP middleware pipelines to be aligned with the behavior of the other component kinds. Tests have been added to prevent future regressions. ## Fixes handling of "continue-as-new" for Dapr Workflows ### Problem In the first releases of Dapr 1.10, a bug was preventing Workflows from working when using the ["continue-as-new" feature](https://docs.dapr.io/developing-applications/building-blocks/workflow/workflow-features-concepts/#infinite-loops-and-eternal-workflows). In this situation, workflow activity invocations would fail with a "duplicate invocation" error. This would cause the workflow to stall indefinitely. ### Impact This issue impacts users on Dapr 1.10.0-1.10.2 that are using Dapr Workflows (alpha) and want to build workflows that use "continue-as-new". ### Root cause An error in the implementation of Dapr Workflows prevented caused the "continue-as-new" feature not to work and the workflow invocations to fail as if they were duplicate. ### Solution We addressed the underlying issue in Dapr 1.10.3 and added more tests to prevent future regressions. ## Fixes issues with Azure Service Bus components not recovering after failures ### Problem In certain cases, the connection with Azure Service Bus could not be recovered automatically after a failure. Users reported seeing error messages containing `$cbs node has already been opened`, requiring a restart of the Dapr sidecar. ### Impact This issue impacts users on Dapr 1.10.0-1.10.2 that use Azure Service Bus components. ### Root cause The issue was traced to a bug in an upstream SDK. ### Solution We worked with the vendors of the upstream SDK to address the issue and include a new version of the SDK in Dapr 1.10.3. ## Restores support for certificate authentication without password or mTLS in Kafka ### Problem A regression introduced in Dapr 1.8.0 accidentally removed support for authenticating with Kafka components using a certificate, without password or mTLS. ### Impact The issue impacts users on Dapr 1.8.0-1.10.2 that use Kafka components and want to use a certificate for authentication. ### Root cause Support for the feature was accidentally removed in Dapr 1.8.0 due to a bug. ### Solution We restored support for authenticating with Kafka components using a certificate, and we added more tests to prevent future regressions. ## Fixed issues with NATS JetStream when no subscription name is specified ### Problem NATS JetStream components cannot be initialized when no subscription name is specified. Users would encounter errors with failures to create a subscription for a delivery group that is not a configured queue group. ### Impact This impact users on Dapr 1.10.0-1.10.2 using NATS JetStream. ### Root cause The Dapr Runtime injects a default consumer group name when none is specified. A code refactor standardized the use of this value when no consumer group was specified in all PubSub components. This behavior however was incorrect NATS JetStream ### Solution We reverted the code change for NATS JetStream, so that no default queue group or consumer group value is assigned. ## Fixed automatic redirection handling ### Problem Dapr automatically handles redirects when the application is invoked using the http protocol. This is not the expected behavior as applications should handle redirects themselves. ### Impact This impacts users on Dapr 1.10.0-1.10.2 using redirect 3xx http status code responses in their app. ### Root cause The switch to use the Go net/http client library instead of fasthhtp caused the http client to automatically handle redirects. ### Solution We disabled the redirect handle and returned the original response to the caller. ## Fixes error message lost in service invocation ### Problem When Dapr invokes an application using the gRPC protocol that returns an error message, the returned error message is lost and replaced with `message is nil`. ### Impact This impacts users on Dapr 1.10.0-1.10.2 that invoke applications using Dapr and the gRPC protocol. ### Root cause As part of a change introduced in Dapr 1.10, Dapr was incorrectly discarding the response body when the application returned a non-successful status code. In the case of HTTP service invocation, the response body was silently ignored; in the case of gRPC, it was replaced with `message is nil`. ### Solution We fixed the issue that caused Dapr to ignore the response body in case of error, for both HTTP and gRPC service invocation.
mikeee/dapr
docs/release_notes/v1.10.3.md
Markdown
mit
7,292
# Dapr 1.10.4 This hotfix release contains two bug fixes. - [Fixes gRPC proxying not working when API allowlists are configured](#fixes-grpc-proxying-not-working-when-api-allowlists-are-configured) - [Fixes Dapr invoking the app subscriptions endpoint when the metadata endpoint is called](#fixes-dapr-calling-the-application-to-get-subscriptions-when-the-metadata-endpoint-is-invoked) ## Fixes gRPC proxying not working when API allowlists are configured ### Problem A regression introduced in Dapr 1.10.0 caused gRPC proxying to not work when [API allowlists](https://docs.dapr.io/operations/configuration/api-allowlist/) are used. All calls to proxied gRPC endpoints would fail with an "Unimplemented" gRPC error. ### Impact The issue impacts users on Dapr 1.10.0-1.10.3 that use API allowlists for gRPC APIs, and who use gRPC proxying. ### Root cause A regression was introduced in Dapr 1.10.0 that caused all proxied gRPC requests to be matched against the API allowlist when that is configured for gRPC, with the consequence that all calls were rejected. ### Solution We have changed how API allowlists work for gRPC, so all proxied calls are always allowed regardless of the rules in the allowlists. We have added tests to prevent future regressions. ## Fixes Dapr calling the application to get subscriptions when the metadata endpoint is invoked ### Problem A regression introduced in Dapr 1.10.0 caused Dapr to invoke the application on the `/dapr/subscribe` endpoint when the [metadata endpoint](https://docs.dapr.io/reference/api/metadata_api/#http-request) is called. This doesn't affect any existing subscriptions and does not result in Dapr re-subscribing to topics. ### Impact The issue impacts users on Dapr 1.10.0-1.10.3. ### Root cause A regression was introduced in Dapr 1.10.0 when returning the list of subscriptions in a metadata endpoint response. Instead of only returning a local cache snapshot, Dapr called the application to get the list of subscriptions every time the metadata endpoint is invoked. ### Solution We updated Dapr to return a subscriptions list snapshot and not invoke the app when the metadata endpoint is invoked.
mikeee/dapr
docs/release_notes/v1.10.4.md
Markdown
mit
2,178
# Dapr 1.10.5 This patch release contains fixes for 6 bugs. - [Fixed large goroutine leak when connection to placement service fails](#fixed-large-goroutine-leak-when-connection-to-placement-service-fails) - [Fixed a number of race conditions when saving actor reminders](#fixed-a-number-of-race-conditions-when-saving-actor-reminders) - [Fixed Dapr keeping only one HTTP header with the same name during HTTP service invocation](#fixed-dapr-keeping-only-one-http-header-with-the-same-name-during-http-service-invocation) - [Fixed actors not working when Dapr sidecars are configured with `app-ssl` due to failing health checks](#fixed-actors-not-working-when-dapr-sidecars-are-configured-with-app-ssl-due-to-failing-health-checks) - [Fixed delete operations failing in three state store components when using a custom table name](#fixed-delete-operations-failing-in-three-state-store-components-when-using-a-custom-table-name) - [Fixed five state store components not allowing saving values that are empty strings](#fixed-five-state-store-components-not-allowing-saving-values-that-are-empty-strings) ## Fixed large goroutine leak when connection to placement service fails ### Problem A regression introduced in Dapr 1.10.0 caused a severe goroutine leak in sidecars when the connection to the placement service failed, causing Dapr to use very large amounts of CPU and memory, as well as creating many TCP connections (which could manifest in issues such as port exhaustion). ### Impact The issue impacts all users on Dapr 1.10.0-1.10.4. ### Root cause A change introduced in Dapr 1.10.0 in the client that Dapr sidecars use to connect to the Placement service to improperly handle connection errors. Because of that, new gRPC clients were created on very short intervals and never released, eventually causing background goroutines to leak and consume very large amounts of CPU and memory. ### Solution We have corrected the error handling code, so gRPC clients and goroutines are not leaked in case of network errors while connecting to the Placement service. ## Fixed a number of race conditions when saving actor reminders ### Problem When saving actor reminders, we identified the possibility race conditions that could cause, in the worst scenarios, for reminders to be persisted in an inconsistent way, when multiple Dapr sidecars were trying to create or update reminders at the same time. ### Impact The issue impacts users on Dapr 1.10.4 and earlier that use actor reminders. ### Root cause We identified two possible situations that could cause race conditions when saving (creating, updating, or deleting) actor reminders: - When multiple actor reminders are saved in parallel (by the same Dapr sidecar or multiple ones), the write operations saving the metadata document and each modified data partition were not happening in the same transaction, possibly causing the state persisted in the state store to be inconsistent. - When multiple reminders are created in parallel, users may have experienced errors such as "possible etag mismatch" after enabling Resiliency; this was due to not correctly honoring context cancellation. ### Solution We addressed the race conditions and made operations that save reminders and their metadata document happen in the same transaction, guaranteeing consistency of the data. This and other small improvements included in this change should also allow users to notice slightly improved efficiency when performing operations on reminders. ## Fixed Dapr keeping only one HTTP header with the same name during HTTP service invocation ### Problem Although the HTTP protocol specs allow passing more than one header with the same name (e.g. multiple `Set-Cookie` headers in responses), Dapr was only maintaining one header of each kind while performing HTTP service invocation. ### Impact This issue impacts users on Dapr 1.10.4 and earlier that use HTTP service invocation. ### Root cause While processing headers in HTTP service invocation calls, Dapr was only persisting one value for each header type–the last one. This behavior was inconsistent with the specs of the HTTP protocol. ### Solution We changed the code in Dapr to allow keeping all HTTP headers, even when they have the same name, to be aligned with the specs of the HTTP protocol. We've updated our end-to-end tests to prevent future regressions. ## Fixed actors not working when Dapr sidecars are configured with `app-ssl` due to failing health checks ### Problem The Dapr actors runtime includes built-in checks to ensure that the app is in a healthy state and thus capable of running actors' code. A bug prevented the health checks from working when Dapr sidecars were configured with `app-ssl`, i.e. when the app's HTTP server was using HTTPS. ### Impact The issue impacts users on Dapr 1.10.4 and earlier that use actors and use HTTPS for their app's server. ### Root cause The issue was caused by the actors' health check subsystem not being configured to use HTTPS when `app-ssl` is enabled for the Dapr sidecar. ### Solution We fixed the actors' health check subsystem to use HTTPS when `app-ssl` is enabled, just like for the HTTP(S) app channel (used by service invocation, pubsub messages, etc). As part of the process, we also migrated the health check subsystem from the fasthttp library to the Go's standard library, sharing the same HTTP client with the HTTP(S) channel. This also allows for re-using the same TCP sockets if keep-alives are enabled, and includes support HTTP/2 (with multiplexing) if the app's server supports that. ## Fixed delete operations failing in three state store components when using a custom table name ### Problem We identified a regression in Dapr 1.10.0 causing delete operations to fail in three state store components when the components were initialized with a custom table name: - Cockroach DB - Oracle Database - PostgreSQL ### Impact The issue impacts users on Dapr 1.10.0-1.10.4 that use the impacted state store components. ### Root cause The default table name in "DELETE" queries was mistakenly hardcoded in the three impacted state store components. Because of that, users would not have been able to perform delete operations when the components were configured with a custom table name ### Solution We fixed the impacted components to make sure that the table names are never hardcoded in any query sent to the databases. ## Fixed five state store components not allowing saving values that are empty strings ### Problem Five state store components were returning an error while trying to save a value that was an empty string. This made them unusable as state stores for Dapr Workflow. The impacted components were: - Cockroach DB - Oracle - MySQL - PostgreSQL - SQLite ### Impact The issue impacts users on Dapr 1.10.4 and earlier that use the state stores listed above. ### Root cause The five listed state store components included checks that returned an error if the application was trying to save an empty string as value. Although the behavior was added intentionally at the time (because otherwise there'd be no way in get operations to distinguish an empty value from a missing key), it was inconsistently implemented across all components and caused issues such as not being able to use those components to store Dapr Workflow state. ### Solution We removed the checks that forbid storing values that are empty strings, bringing the listed state stores in line with the other components. Our conformance tests have been updated to enforce this behavior on all state store components. In the next version of Dapr we are [planning to add a new property](https://github.com/dapr/components-contrib/issues/2727) in the response object from get operations to inform the application if the value was not found, allowing it to distinguish between empty values and inexistent keys.
mikeee/dapr
docs/release_notes/v1.10.5.md
Markdown
mit
7,924
# Dapr 1.10.6 This patch release contains fixes for 2 bugs. ## Fixed Actor Timers/Reminders not being unmarshaled correctly ### Problem A regression introduced in Dapr 1.10.0 caused actor reminders and timers not to deserialize its data when being triggered. ### Impact The issue impacts all users on Dapr 1.10.5. ### Root cause A change introduced in Dapr 1.10.0 accidentally changed how reminders and timers were sent to the application, causing SDKs not to deserialized them. ### Solution Fix the issue in runtime code. ## Fixed unserializing reminder period due to null-y values by MongoDB ### Problem When unmarshling reminder from MongoDB, some of the attributes have null-equivalent values that should not be parsed. Dapr 1.10 added this regression for MongoDB. ### Impact The issue impacts users on Dapr 1.10.x to use reminders with MongoDB. ### Root cause Accidental regression on refactor of reminders code. ### Solution Fixed the runtime code to support more null-equivalent values.
mikeee/dapr
docs/release_notes/v1.10.6.md
Markdown
mit
1,013
# Dapr 1.10.7 ## Fixed an issue in Kafka components with SASL authentication ### Problem When attempting to connect to Kafka compatible services like Azure Event Hubs using SALS authentication the connection fails with the message "client has run out of available brokers to talk to." ### Impact The issue impacts users on Dapr 1.10.x who use Kafka components to connect to Azure Event Hubs. Other Kafka compatible services may be impacted too. ### Root cause The latest versions (1.38.X) of the shopify/sarama kafka library introduced this problem. ### Solution Downgrading the shopify/sarama library to release 1.37.2 resolves this problem. An issue with the maintainers of the sarama library has been created for further investigation. ## Fixed an issue with HTTP URL routing in Dapr sidecar ### Problem When using the Dapr sidecar HTTP APIs, some HTTP URLs where not being routed to the correct handler. For example, when prefixing the URL path with duplicated slashes. i.e. `//v1.0/actors/DemoActor/1234/method/SetReminder`. ### Impact Since v1.10.0, requests which did not have perfect paths according to the API may be routed to the wrong API handler, and typically return some kind of error. ### Root cause The HTTP router inside Dapr was normalizing the request's HTTP path only after evaluating the route, causing routing errors with un-normalized paths. ### Solution We changed the router used by the Dapr HTTP server to normalize HTTP paths before matching the route.
mikeee/dapr
docs/release_notes/v1.10.7.md
Markdown
mit
1,498
# Dapr 1.11.1 This hotfix release contains 7 bug fixes. - [Fixed an issue with Service Invocation on Kubernetes clusters with the permission enforcement admission controller enabled.](#fixed-an-issue-with-service-invocation-on-kubernetes-clusters-with-the-permission-enforcement-admission-controller-enabled) - [Fixed a Goroutine leak in Actor reminders and timers.](#fixed-a-goroutine-leak-in-actor-reminders-and-timers) - [MongoDB Actor State Store: Fixed an issue with storing Actor Reminders](#mongodb-actor-state-store--fixed-an-issue-with-storing-actor-reminders) - [Fixed Dapr being unable to obtain the authentication token when using Managed Identity inside Azure App Service](#fixed-dapr-being-unable-to-obtain-the-authentication-token-when-using-managed-identity-inside-azure-app-service) - [Fixed a problem where keys could not be overwritten once set in Microsoft SQL Server (and Azure SQL)](#fixed-a-problem-where-keys-could-not-be-overwritten-once-set-in-microsoft-sql-server--and-azure-sql-) - [Fixed an issue with the Azure Service Bus binding rejecting certain messages with custom properties](#fixed-an-issue-with-the-azure-service-bus-binding-rejecting-certain-messages-with-custom-properties) - [Fixed a potential memory leak in RabbitMQ components](#fixed-a-potential-memory-leak-in-RabbitMQ-components) ## Fixed an issue with Service Invocation on Kubernetes clusters with the permission enforcement admission controller enabled. ### Problem Updating Dapr from 1.10 to 1.11 on Kubernetes clusters which have the permission enforcement admission controller enabled gives the following error when using Service Invocation: ``` unable to create Dapr service for wrapper, service: test/test-dapr, err: services \"test-dapr\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ``` ### Impact Since v1.11.0 Service Invocation on Kubernetes clusters which have the permission enforcement admission controller enabled is unusable. This is particularly problematic when for OpenShift clusters, as they have this admission controller enabled by default. ### Root cause When using the permission enforcement admission controller on Kubernetes, Service Invocation fails because the operator is unable to create or update Services. ### Solution We updated the Kubernetes RBAC permissions used by the Dapr Operator. ## Fixed a Goroutine leak in Actor reminders and timers. ### Problem The daprd sidecar process would increase in memory over time when using Actor reminders and timers. ### Impact Using Actor reminders and timers in Dapr 1.11.0 and earlier could cause a goroutine leak that would grow over time. This could cause increase CPU utilization and/or memory exhaustion. ### Root cause Goroutines were not being cleaned up when reminders and timers fired or were stopped. ### Solution Goroutines are now cleaned up when reminders and timers are fired. ## MongoDB Actor State Store: Fixed an issue with storing Actor Reminders ### Problem Actor Reminders without data were stored incorrectly and the empty (null) data was subsequently interpreted as a string value. Everytime an Actor Reminder was updated it reencoded the existing encoding, causing exponential growth in ActorReminder data leading up to the MongoDB document size limit. Other problems include the incorrect storage of the actor reminder period. ### Impact Since v1.10.5 (and also in v1.11.0), Actor Reminders used with MongoDB as Actor State Store were impacted by this bug. While some reminders written or updated with affected versions may work, all reminders written with the impacted versions should be considered unrecoverable as some reminder data may have been corrupted. ### Root cause The issue was related to the usage of BSON as data serialization format for MongoDB. Due to changes in the Dapr runtime introduced in version 1.10.5, reminders data and periods were incorrectly serialized in BSON format. ### Solution We addressed the issues with serializing actor reminder data in BSON format for MongoDB. ## Fixed Dapr being unable to obtain the authentication token when using Managed Identity inside Azure App Service ### Problem When using Managed Identity inside Azure Web Apps (Azure App Service), Dapr shows the following error: > ChainedTokenCredential: failed to acquire a token. ### Impact Since v1.11.0, Dapr is unable to authenticate with Azure services using Managed Identity on Azure App Service. ### Root cause The authentication library's timeout for obtaining a token using Managed Identity on Azure App Service was too small, leading to authentication failure before the token could be obtained. ### Solution Dapr will now discover whether it is running in Azure App Service, and applies an appropriate timeout for the authentication method. ## Fixed a problem where keys could not be overwritten once set in Microsoft SQL Server (and Azure SQL) ### Problem Dapr would error when attempting to overwrite a TTL-enabled key in Microsoft SQL Server. ### Impact Since v1.10.0, clients could not overwrite TTL-enabled keys in the Microsoft SQL Server state store. ### Root cause A condition in the Microsoft SQL Server Set procedure meant TTL-enabled keys could never be written to. ### Solution Fix the condition to allow TTL-enabled keys to be overwritten. ## Fixed invoking non-Dapr endpoints to not require an application port ### Problem Dapr would require an application port to be set in order to invoke a non-Dapr endpoint. ### Impact This issue required users to open a port on their applications even if not required in case they wanted to invoke non-Dapr endpoints. ### Root cause The runtime code for creating an application channel for non-localhost apps required an application port as part of the validation logic. ### Solution The application port validation was removed. ## Fixed an issue with the Azure Service Bus binding rejecting certain messages with custom properties ### Problem Azure Service Bus users who send custom metadata properties (Application Properties) which are not URL safe encounter the following error message in the Daprd logs when using the Azure Service Bus binding, and the message will not be sent to the application: "App handler returned an error for message xxx on queue xxx: error invoking app: Post "http://127.0.0.1:80/xxx": net/http: invalid header field name" ### Impact Applications will not receive messages from Azure Service Bus bindings if these messages contain custom attributes that are not URL safe. ### Root cause Azure Service Bus supports storing custom metadata properties, Application Properties, but does not require these to be URL safe. Dapr incorrectly treated these attributes as URL safe. ### Solution Daprd encodes Azure Service Bus Application Properties before sending messages to applications, so that all data is URL safe. ## Fixed a potential memory leak in RabbitMQ components #### Problem Use of the RabbitMQ components could result in a memory leak under certain circumstances. ### Impact Applications may run out of memory when using the RabbitMQ components. ### Root cause The `rabbitmq/amqp091-go` library used by the Dapr RabbitMQ components introduced a memory leak in version v1.7.0. See https://github.com/rabbitmq/amqp091-go/issues/179 for details. ### Solution We upgraded the library to version v1.8.1. The memory leak was fixed as of version v1.8.0.
mikeee/dapr
docs/release_notes/v1.11.1.md
Markdown
mit
7,507
# Dapr 1.11.2 [security] This update contains security fixes: - [Security: API token authentication bypass in HTTP endpoints](#security-api-token-authentication-bypass-in-http-endpoints) ([Security advisory](https://github.com/dapr/dapr/security/advisories/GHSA-59m6-82qm-vqgj)) - [Security: Potential DoS in avro dependency](#security-potential-dos-in-avro-dependency-cve-2023-37475) ([CVE-2023-37475](https://github.com/hamba/avro/security/advisories/GHSA-9x44-9pgq-cf45)) Additionally, this patch release contains bug fixes: - [Fixed: unbounded history batch save in Workflows](#fixed-unbounded-history-batch-save-in-workflows) - [Fixed: Workflows not working in some Kubernetes clusters](#fixed-workflows-not-working-in-some-kubernetes-clusters) - [Fixed a number of bugs in the gRPC Configuration Subscribe API](#fixed-a-number-of-bugs-in-the-grpc-configuration-subscribe-api) ## Security: API token authentication bypass in HTTP endpoints ### Problem [Security advisory](https://github.com/dapr/dapr/security/advisories/GHSA-59m6-82qm-vqgj) A high-severity vulnerability has been found in Dapr that allows bypassing [API token authentication](https://docs.dapr.io/operations/security/api-token/), which is used by the Dapr sidecar to authenticate calls coming from the application, with a well-crafted HTTP request. ### Impact The vulnerability impacts all users on Dapr <=1.10.9 and <=1.11.2 who are using API token authentication. ### Root cause The Dapr sidecar allowed all requests containing `/healthz` in the URL (including query string) to bypass API token authentication. ### Solution We have changed the API token authentication middleware to allow bypassing the authentication only for healthcheck endpoints more strictly. ## Security: Potential DoS in avro dependency (CVE-2023-37475) ### Problem [CVE-2023-37475](https://github.com/hamba/avro/security/advisories/GHSA-9x44-9pgq-cf45) An issue in the third-party avro dependency could cause a resource exhaustion and a DoS for Dapr. ### Impact This issue impacts users of Dapr that use the Pulsar components. ### Root cause The issue was in a third-party dependency. ### Solution We have upgraded the avro dependency to version 2.13.0 which contains a fix for the reported issue. ## Fixed: unbounded history batch save in Workflows ### Problem Due to a bug in the workflow engine, the full workflow history was saved on each checkpoint, rather than only the deltas. This resulted in two problems: - The I/O cost of saving workflow state increased over the lifetime of the workflow - Using state stores which have limits on transaction batch sizes, for example Azure Cosmos DB, caused workflows with more than a few actions to fail permanently ### Impact The issue impacts users of Dapr Workflow on Dapr 1.10 and higher. ### Root cause The problem was caused by a coding issue: an object was passed by reference rather than as a pointer. ### Solution We fixed the issue in the source code and added new tests to prevent regressions. ## Fixed: Workflows not working in some Kubernetes clusters ### Problem In some Kubernetes clusters, the workflow engine may not have been able to process work items and tasks that were part of a workflow. Calls to the workflow engine would time out and fail. ### Impact The issue impacts users of Dapr Workflows which run the Dapr gRPC server listening on more than one address. This is the default behavior on Kubernetes, where Dapr normally listens on both `127.0.0.1` (IPv4) an `[::1]` (IPv6). The issue can appear also outside of Kubernetes if users run Dapr with multiple values for `--dapr-listen-addresses`. ### Root cause A new instance of the workflow engine was attached to each Dapr gRPC listener independently. Depending on what protocol the application was using to connect to Dapr (IPv4 or IPv6), the request could hit a workflow engine that was not currently processing tasks, causing a deadlock. ### Solution We have changed the initialization code to ensure that Dapr uses a single instance of the workflow engine across all listeners. ## Fixed a number of bugs in the gRPC Configuration Subscribe API ### Problem We identified a number of bugs, especially race conditions, in the gRPC implementation for the Configuration Subscribe API, which became stable in Dapr 1.11.0. These bugs could have caused the Subscribe API to behave unexpectedly. ### Impact The issue can impact users that are invoking the Configuration building block APIs using gRPC. ### Root cause The issues were traced back to a number of race conditions in the way the gRPC stream was handled. ### Solution We refactored the code to remove the race conditions and fix the bugs.
mikeee/dapr
docs/release_notes/v1.11.2.md
Markdown
mit
4,728
# Dapr 1.11.3 This update includes a fix for operator deployment on Kubernetes. - [Fixed Dapr Operator CrashLoopBackOff when Argo Controller is enabled](#fixed-dapr-operator-crashloopbackoff-when-argo-controller-is-enabled) ## Fixed Dapr Operator CrashLoopBackOff when Argo Controller is enabled ### Problem When using the Dapr Operator on Kubernetes with Argo Controller enabled, the operator would fail to start with the following error: ``` time="2023-07-11T17:22:49.937549597Z" level=fatal msg="error running operator: error running operator: failed to wait for rollout caches to sync: timed out waiting for cache to be synced" instance=dapr-operator-7cd6d96dfd-9wbj7 scop │ │ Stream closed EOF for dapr-system/dapr-operator-7cd6d96dfd-9wbj7 (dapr-operator) ``` ### Impact The Dapr Operator would fail to start when Argo Controller is enabled and a Argo rollout is performend. ### Root cause The Dapr Operator was not creating the full Operator scheme before waiting for the controller manager to start. ### Solution Updated the Dapr Operator to create the full Operator scheme before waiting for the controller manager to start.
mikeee/dapr
docs/release_notes/v1.11.3.md
Markdown
mit
1,151
# Dapr 1.12.1 This update contains the following security fixes: - [Security: prevent Sentry and Injector from applying the `daprsystem` Configuration from a non control plane namespace.](#security-sentry-and-injector-only-apply-daprsystem-configuration-from-the-control-plane-namespace) Additionally, this patch release contains bug fixes: - [Fixed Sentry authentication validator rejecting valid requests.](#fixed-sentry-rejecting-valid-requests-from-daprd) - [Fixed RabbitMQ not returning error when initialising component](#fixed-rabbitmq-not-returning-error-when-initialising-component) - [Fixed returning of HTTP status code in HTTP service invocation with resiliency enabled](#fixed-returning-of-http-status-code-in-http-service-invocation-with-resiliency-enabled) - [Fixed Dapr Runtime panic for malformed/unexpected workflow URLs](#fixed-dapr-runtime-panic-for-malformedunexpected-workflow-urls) - [Fixed an issue where Azure Blob Storage components cannot be used with Azure Blob Reader permission alone](#fixed-an-issue-where-azure-blob-storage-components-cannot-be-used-with-azure-blob-reader-permission-alone) - [Fixed incorrect error message in the Azure EventHubs components](#fixed-incorrect-error-message-in-the-azure-eventhubs-components) - [Fixes an issue where the Consul nameresolution component only accepted IP addresses and not hostnames.](#fixes-an-issue-where-the-consul-nameresolution-component-only-accepted-ip-addresses-and-not-hostnames) - [Fixes an issue in the Redis PubSub component where a PubSub subscription could not recover under certain conditions.](#fixes-an-issue-in-the-redis-pubsub-component-where-a-pubsub-subscription-could-not-recover-under-certain-conditions) - [Security: Several dependency upgrades to address security issues](#security-several-dependency-upgrades-to-address-security-issues) ## Security: Sentry and Injector only apply `daprsystem` Configuration from the control plane namespace ### Problem Sentry and Injector will apply the `daprsystem` configuration from a non-control plane namespace if the namespace name is alphabetically higher than the control plane namespace name. ### Impact Accidentally or maliciously, a Kubernetes user can write a Configuration in a non-control plane namespace that will be applied by Sentry and Injector. This can re-write the Sentry CA, disable mTLS, or otherwise bring down the entire Dapr cluster. ### Root cause Sentry and Injector currently list Configurations, before matching on the list for the `daprsystem` Configuration, without filtering for namespaces. ### Solution Update Sentry and Injector to only get the `daprsystem` Configuration from the namespace where the Dapr control plane is installed, instead of listing all Configurations. ## Fixed Sentry rejecting valid requests from Daprd ### Problem Dapr would fail to request an identity certificate from Sentry when residing in a Namespace or using a Service Account with a sufficiently long name. ### Impact Users on Dapr 1.12.0 can observe Dapr sidecars failing to start. ### Root cause Sentry validates that clients cannot request for an app ID which is over 64 characters in length. Sentry also still accepts requests which use the legacy identifier of `<namespace>:<service account>` which was not taken account for when doing the 64 character evaluation. ### Solution Sentry now evaluates the actual app ID being requested, whether or not the client is using the legacy or app ID as the identifier. ## Fixed RabbitMQ not returning error when initialising component ### Problem A RabitMQ component may be considered healthy, when in fact it failed to initialise. ### Impact Dapr or downstream consumers of Dapr would consider RabitMQ components to be healthy when in fact they were not, causing improper reporting of status. ### Root cause RabbitMQ was not returning an error when initialising a component, causing Dapr to consider the component healthy. ### Solution Failure to connect to RabbitMQ during initialization now causes an error to be returned, allowing Dapr to consider the component as unhealthy. ## Fixed returning of HTTP status code in HTTP service invocation with resiliency enabled ### Problem With Resiliency enabled, in case of HTTP service invocation, if one application sends error status codes (HTTP codes <200 or >=400), Dapr returns a response with a generic 500 error, instead of the actual response error code. ### Impact Applications will receive the wrong status code in case of HTTP service invocation returning a failure error code with Resiliency enabled. ### Root cause A bug was discovered in how errors were handled when Resiliency was enabled, causing all errors from the application to be "swallowed" by Dapr. ### Solution Resiliency code now returns the correct status code to the application. ## Fixed Dapr Runtime panic for malformed/unexpected workflow URLs ### Problem Invoking certain Workflow APIs using HTTP with malformed URLs can cause Dapr to panic. ### Impact Impacts users on Dapr 1.12.0. ### Root cause The Daprd metrics handler for workflows did not correctly handle malformed or unexpected URLs, and would panic if the URL was not in the expected format. ### Solution The Daprd metrics handler for workflows now correctly handles malformed or unexpected URLs. ## Fixed an issue where Azure Blob Storage components cannot be used with Azure Blob Reader permission alone ### Problem The Azure Blob Storage component cannot be used with Azure Blob Reader permission alone. ### Impact Users on Dapr 1.12.0 cannot use the Azure Blob Storage component with Azure Blob Reader permission alone. ### Root Cause The component attempts to create a storage account (even when it exists already) but is not authorized to do so due to a lack of permission. ### Solution Added a boolean metadata option disableEntityManagement which now can be used to skip the attempt to create the storage container. ## Fixed incorrect error message in the Azure EventHubs components ### Problem Azure EventHub component returns a warning message saying the storageAccountKey will be used but StorageAccountName is actually used in that condition. ### Impact Users on Dapr 1.12.0 may be confused by the warning message. ### Root Cause The component was using the StorageAccountName instead of the StorageAccountKey. ### Solution The component now emits the correct warning message. ## Fixes an issue where the Consul nameresolution component only accepted IP addresses and not hostnames. ### Problem Dapr 1.12.0 was unable to add and resolve hostnames using the Consul nameresolution component. ### Impact Users on Dapr 1.12.0 were unable to resolve hostnames using the Consul nameresolution component. ### Root Cause A previous community contribution to improve IPv6 support inadvertently removed support for host names by returning an error for any string that does not parse as an IPv4 or IPv6 address. ### Solution Support for hostnames was added once again. ## Fixes an issue in the Redis PubSub component where a PubSub subscription could not recover under certain conditions. ### Problem The Redis PubSub component could experience a rare situation where PubSub subscriptions would seize to function, causing the Dapr sidecar to print Redis error logs containing the word `NOGROUP` indefinitely. ### Root Cause The `NOGROUP` message is indicative of the consumer group no longer existing. This could be because the group or stream was manually deleted outside of Dapr or because the external Redis server was restarted/reconfigured. ### Solution To avoid the excessive `NOGROUP` logs in this rare situation Dapr will now attempt to recreate the consumer group for the given topic/stream when this error is encountered. ## Security: Several dependency upgrades to address security issues - [CVE-2023-45283: Windows specific vulnerability in GO standard library `path/filepath`](https://github.com/advisories/GHSA-vvjp-q62m-2vph) - [gRPC-Go HTTP/2 Rapid Reset vulnerability](https://github.com/dapr/components-contrib/security/dependabot/124) - [HTTP/2 rapid reset can cause excessive work in net/http](https://github.com/dapr/components-contrib/security/dependabot/111) - [NATS.io: xkeys seal encryption used fixed key for all encryption](https://github.com/dapr/components-contrib/security/dependabot/120) - [NATS.io: Adding accounts for just the system account adds auth bypass](https://github.com/dapr/components-contrib/security/dependabot/116)
mikeee/dapr
docs/release_notes/v1.12.1.md
Markdown
mit
8,531
# Dapr 1.12.2 This patch release contains bug fixes: - [Fixed mTLS configuration](#fixed-mtls-configuration) ## Fixed mTLS configuration ### Problem The mTLS configuration was always enabled for Dapr sidecards in Kubernetes, regardless of the `daprsystem` configuration. ### Impact Users on Dapr 1.12.1 could not disable mTLS for Dapr sidecars in Kubernetes. ### Root cause The `daprsystem` configuration was not being read correctly by the sidecar injector. ### Solution The `daprsystem` configuration is now read correctly by the sidecar injector and the mTLS option is correctly set for Dapr sidecars in Kubernetes.
mikeee/dapr
docs/release_notes/v1.12.2.md
Markdown
mit
630
# Dapr 1.12.3 This update includes bug fixes: - [Fix timeouts in HTTP service invocation when resiliency policies with timeouts are applied](#fix-timeouts-in-http-service-invocation-when-resiliency-policies-with-timeouts-are-applied) - [Fix dissemination of placement tables](#fix-dissemination-of-placement-tables) - [Fix SQL Server state store not working with correctly case-sensitive collations](#fix-sql-server-state-store-not-working-correctly-with-case-sensitive-collations) - [Fix Kafka Pub/sub consumer bottlenecks and long startup times when subscribing to multiple topics](#fix-kafka-pubsub-consumer-bottlenecks-with-multiple-topics) ## Fix timeouts in HTTP service invocation when resiliency policies with timeouts are applied ### Problem In HTTP service invocation, in certain cases when a resiliency policy is applied (for example, one that includes timeouts), requests could be interrupted earlier with a "context deadline exceeded" error. ### Impact Impacts users running Dapr 1.12.0-1.12.2 that use HTTP service invocation and who have resiliency policies applied ### Root cause When resiliency policies with timeouts are applied, due to a bug the incorrect context was used while sending the response to the client, and in certain situations it could have been terminated earlier than the request. ### Solution We fixed the code that handles HTTP service invocation to make sure the timeout is applied to the entire response. ## Fix dissemination of placement tables ### Problem Placement nodes acquire a lock, disseminate the tables, and release the lock in parallel. The Placement stream disconnects before the dissemination of tables. ``` Error invoke actor method: failed to invoke target x after 3 retries ``` Placement server logs: ``` level=error msg="Stream is disconnected before member is added ``` ### Impact Impacts users running Dapr 1.12.0-1.12.2 ### Root cause Dissemination did not use a background context. The logic to acquire a lock, disseminate the tables, and release the lock were all occurring in parallel. ### Solution Updated the Dapr Placement service to use a background context and follow a 3 step process to acquire a lock, disseminate the tables, and release the lock. ## Fix SQL Server state store not working correctly with case-sensitive collations ### Problem When using a database with a case-sensitive collation, the SQL Server state store component did not work correctly. Certain operations, including those relied upon by the actor state store, were failing. ### Impact Impacts users of Dapr 1.11.0-1.12.2 ### Root cause A stored procedure referenced a column named with the wrong case. This was causing errors on case-sensitive databases. ### Solution We updated the stored procedure so it does use the correct case for column names. ## Fix Kafka Pub/Sub consumer bottlenecks with multiple topics ### Problem When using Dapr with Kafka for Pub/Sub and subscribing to multiple topics, users might see bottlenecks in Kafka message processing and long init times when the Dapr sidecar is starting up. ### Impact Impacts users of Dapr 1.11.0-1.12.2 ### Root cause When new topic subscriptions were added, Dapr would close the consumer group and recreate it, leading to partition rebalance across the cluster. ### Solution The Kafka consumer logic was changed to not recreate the consumer group every time a new topic subscription is added.
mikeee/dapr
docs/release_notes/v1.12.3.md
Markdown
mit
3,435
# Dapr 1.12.4 This update includes bug fixes: - [Mitigate race condition in placement table during sidecar restarts](#mitigate-race-condition-in-placement-table-during-sidecar-restarts) - [Fixes in service invocation when target app has multiple replicas on Kubernetes](#fixes-in-service-invocation-when-target-app-has-multiple-replicas-on-kubernetes) ## Mitigate race condition in placement table during sidecar restarts ### Problem When restarting a significant deployment on Kubernetes (> 20 pods), many pods will be removed from placement table. When the restarts happens concurrently with leadership changes in placement service, the placement table can get into a corrupt state that requires the restart of placement service [#7311](https://github.com/dapr/dapr/issues/7311) ### Impact Impacts users running Dapr 1.12.0-1.12.3 that uses actors and deployments with many sidecar instances. ### Root cause Race condition between placement leadership changes and placement table updates due to pods being terminated. ### Solution Mitigate by reducing the chances of leadership changes in placement service and fix a bug that can cause terminated pods to remain in placement table forever. ## Fixes in service invocation when target app has multiple replicas on Kubernetes ### Problem When performing service invocation to another app using Dapr (using either HTTP or gRPC), the caller sidecar establishes a gRPC connection with the target sidecar. When the target app is deployed with multiple replicas (scaled horizontally), a connection is established with each replica and requests are load-balanced across all replicas. In Dapr 1.12.3 and lower running on Kubernetes, due to the way this logic was implemented, if the connection with _one_ of the replicas became idle, it would have caused the connection between the caller sidecar and _all_ replicas to be severed, possibly interrupting other in-flight service invocation calls. ### Impact This issue impacts users running Dapr 1.12.3 and lower, running on Kubernetes, that use service invocation to invoke apps that are scaled horizontally. This issue does not impact users that are running outside of Kubernetes or who are using other Dapr nameresolution components (including mDNS or Consul). ### Root cause On Kubernetes, the gRPC connection was established with the DNS name of the target Service, and we allowed the gRPC-Go library to perform name resolution with the Kubernetes DNS server and establish a connection with each replica. When the connection with _one_ of the replicas becomes idle, the caller app receives a "GOAWAY" message which is interpreted as a signal to terminate all connections with _all_ replicas of the app. ### Solution We have changed the internals of service invocation, so we always perform DNS resolution in the caller Dapr sidecar, also on Kubernetes. The gRPC-Go library receives an individual IP address to connect to, so "GOAWAY" messages only impact the connection with an individual replica.
mikeee/dapr
docs/release_notes/v1.12.4.md
Markdown
mit
3,015
# Dapr 1.13.1 This update includes bug fixes: - [(Hot-Reload) Fix operator client stream re-establishment causing tight loop](#hot-reload-fix-operator-client-stream-re-establishment-causing-tight-loop) ## (Hot-Reload) Fix operator client stream re-establishment causing tight loop ### Problem The operator becomes DDoSed by the Dapr runtime, and an extreme amount of logs are generated. Component hot-reloading no longer functions. ### Impact Users running Dapr 1.13.0 that have the Component Hot-Reloading feature gate enabled. ### Root cause A tight loop in the daprd operator client stream re-establishment causes runtime to constantly create new Component update streams. ### Solution Fix the tight loop by correctly breaking out of retries after a successful re-establishment. Also ensures daprd will re-reconcile all Components in the event of a stream re-establishment, catching any Components which might have been deleted while the stream was down.
mikeee/dapr
docs/release_notes/v1.13.1.md
Markdown
mit
969
# Dapr 1.13.2 This update includes bug fixes: - [Fix incorrect content-length being sent to HTTP published message](#fix-incorrect-content-length-being-sent-to-http-published-message) - [Fix PubSub in-flight messages from being cancelled during blocked shutdown](#fix-pubsub-in-flight-messages-from-being-cancelled-during-blocked-shutdown) ## Fix incorrect content-length being sent to HTTP published message ### Problem Published messages to HTTP application server report a content-length error and are not processed. ### Impact PubSub messages from some PubSubs cannot be processed by the application. ### Root cause The content-length reported by the PubSub broker message was copied to the message sent to the application's HTTP server. This content-length may not match the final message length sent to the application's HTTP server, resulting in the mesage being rejected. ### Solution Filter out the content-length header from the PubSub broker message before sending it to the application's HTTP server. ## Fix PubSub in-flight messages from being cancelled during blocked shutdown. ### Problem During a blocked shutdown, all in-flight PubSub messages are cancelled and cannot be processed by the application or the applications processes status discarded. ### Impact During shutdown, in-flight messages which are currently being processed by the application cannot be completed. ### Root cause During shutdown, all publish calls to the application where being cancelled. ### Solution PubSub messages are now published to the application in an isolated routine, which is not cancelled during blocked shutdown. ## Fix null value handling in AVRO schema validation for Kafka pub/sub. ### Problem When using Avro schema validation with the Kafka pub/sub component, consuming messages with a null value will fail and not be delivered to the app, and publishing messages with null values will fail. ### Impact Kafka messages with null values for both consumers and publishers are not delivered or published when using the Avro schema validation feature. ### Root cause The Dapr component did not have correct handling of null values in a message. ### Solution Handling of null values was added when serializing and deserializing messages.
mikeee/dapr
docs/release_notes/v1.13.2.md
Markdown
mit
2,273
# Dapr 1.13.3 This update includes bug fixes: - [App API token forwarded from caller to receiving app](#app-api-token-forwarded-from-caller-to-receiving-app) - [Upgrade Go version to 1.21.9](#upgrade-go-version-to-1219) - [Placement server fails to disseminate placement tables](#placement-server-fails-to-disseminate-placement-tables) - [Restore dapr_http_server_response_count HTTP metric](#restore-dapr_http_server_response_count-http-metric) ## App API token forwarded from caller to receiving app ### Problem The caller sidecar is appending the *local* app API token to the *egress* request, thereby leaking the API token protecting the local app to the foreign sidecar. ### Impact Receiving app can have access to the calling app's API token and make unauthorized calls directly to the originating app - in case it is listening on 0.0.0.0 or an accessible IP address. ### Root cause A pull request accidentally added this change. ### Solution Fixed the issue and added integration tests to verify and avoid future regressions. ## Upgrade Go version to 1.21.9 ### Problem Go version 1.21.8 or older are impacted by CVE-2023-45288. ### Impact See https://nvd.nist.gov/vuln/detail/CVE-2023-45288 ### Root cause See https://nvd.nist.gov/vuln/detail/CVE-2023-45288 ### Solution Update Go version used to build Dapr. ## Placement server fails to disseminate placement tables ### Problem In case of an error during dissemination of placement table to a sidecar instance, the dissemination to the remaining instances do not complete. See https://github.com/dapr/dapr/issues/7031 ### Impact Sidecars can run with an old copy of the dissemination table and cannot invoke the correct Dapr sidecar for a given actor instance. ### Root cause During shutdown, all publish calls to the application where being cancelled. ### Solution Check the return value of performTableDissemination for errors. ## Restore `dapr_http_server_response_count` HTTP metric ### Problem An existing metrics was removed without deprecation notice, affecting users that relied on it. See https://github.com/dapr/dapr/issues/7642 ### Impact Users did not have this specific metric available anymore, potentially impacting their alerts and monitoring. ### Root cause Metric removed without deprecation notice. ### Solution Added the metric back.
mikeee/dapr
docs/release_notes/v1.13.3.md
Markdown
mit
2,350
# Dapr 1.13.4 ## Update the golang.org/x/net dependency to v0.24.0 ### Problem Dapr used a Golang dependency for golang.org/x/net that contained the following [CVE](https://www.cvedetails.com/cve/CVE-2023-45288/). ### Impact CVE details [here](https://www.cvedetails.com/cve/CVE-2023-45288/). ### Root cause CVE details [here](https://www.cvedetails.com/cve/CVE-2023-45288/). ### Solution The dependency version was updated from v0.21.0 to v0.24.0
mikeee/dapr
docs/release_notes/v1.13.4.md
Markdown
mit
456
# Dapr 1.2.0 We're happy to announce the release of Dapr 1.2.0! We would like to extend our thanks to all the new and existing contributors who helped make this release happen. **Highlights** If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. - Support for **Pub/Sub event without CloudEvent wrapping**, enabling communication between Dapr and non-Dapr applications [2308](https://github.com/dapr/dapr/issues/2308). This enables Dapr to send and receive events to integrate with applications that cannot use CloudEvents. See [Pub/Sub without CloudEvents](https://v1-2.docs.dapr.io/developing-applications/building-blocks/pubsub/pubsub-raw/) documentation for details. - **Ability to scope the APIs that are available on Dapr sidecar** through ACLs [3054](https://github.com/dapr/dapr/issues/3054). For example, if you want to restrict access to only the secrets API from the applications, you can set ACLs on its access. See [How-To: Selectively enable Dapr APIs on the Dapr sidecar](https://v1-2.docs.dapr.io/operations/configuration/api-allowlist/) documentation for details. - Ability to **"opt-in" to preview features** that are included in releases. This provides a way to introduce new features that still need feedback before being made GA in quality. Equally expect that preview features from previous releases (currently none) can be removed without a deprecation notice. [3048](https://github.com/dapr/dapr/issues/3048). See [How-To: Enable preview features](https://v1-2.docs.dapr.io/operations/configuration/preview-features/) documentation for details. - In this release **Actor Re-entrancy** [21](https://github.com/dapr/dapr/issues/21) is included as a *opt-in preview feature* for Actors. Reentrancy enables actor A to call actor B which can then call actor A again without the call blocking. See [How-to: Enable and use actor reentrancy in Dapr](https://v1-2.docs.dapr.io/developing-applications/building-blocks/actors/actor-reentrancy/) documentation for details. - **Consul as a DNS name resolution component** [749](https://github.com/dapr/components-contrib/issues/749) enables Dapr to preform service discovery and use the service invocation API in VM scenarios that can be joined in the same network. This means that Dapr now supports Kubernetes,VMs and physical machines as production hosting environments with DNS resolution enabled in each. See [HashiCorp Consul component spec](https://v1-2.docs.dapr.io/reference/components-reference/supported-name-resolution/setup-nr-consul/) documentation for details. - As a result of the Consul integration **Name resolution components are now first class component types** that can be "swapped" in the same manner as any other component type through Dapr configuration settings. See [Name resolution component specs](https://v1-2.docs.dapr.io/reference/components-reference/supported-name-resolution/) documentation for details. - Many **new components**: - Alibaba Cloud DingTalk Webhook as Binding [811](https://github.com/dapr/components-contrib/issues/811) - Zeebe Workflow Engine as Binding [805](https://github.com/dapr/components-contrib/issues/805) - Alibaba Sentinel as Middleware [828](https://github.com/dapr/components-contrib/issues/828) - Consul name resolution component [749](https://github.com/components-contrib/issues/749) - The Dapr docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://v1-2.docs.dapr.io/concepts/) and the [Developing applications](https://v1-2.docs.dapr.io/developing-applications/) or follow the links above. Updates to documentation are [listed below](#Documentation). For more information on the features listed above watch the [Dapr Community Call #38](https://www.youtube.com/watch?v=LSYyTL0nS8Y) and the upcoming Community call #39 See [this](#Upgrading-to-Dapr-120) section on upgrading Dapr to version 1.2.0. ## Deprecation Notice The ```GET /v1.0/shutdown``` HTTP API is deprecated and scheduled for removal in 1.4. All users who have directly integrated with this API should use the ```POST /v1.0/shutdown``` API instead. If you are using one of the supported Dapr SDKs you do not need to take any action. See https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-job/ for an example usage of this API. ## Acknowledgements Thanks to everyone who made this release possible! @0to1, @1046102779, @AaronCrawfis, @DarqueWarrior, @EdwinVW, @Hugome, @JoeMayo, @Junnplus, @Taction, @TomorJM, @a-elsheikh, @abogdanov37, @akkie, @apuzyrevsky, @artursouza, @beiwei30, @berndverst, @cinience, @fjvela, @halspang, @jigargandhi, @jjcollinge, @jony4, @luckyxiaoqiang, @marviniter, @msfussell, @mukundansundar, @newbe36524, @pkedy, @readefries, @wcs1only, @withinboredom, @xiazuojie, @yanjianlong, @yaron2, @zhongfox ## New in this release ### Dapr Runtime - **RESOLVED** Allow Reentrancy for Actors [21](https://github.com/dapr/dapr/issues/21) - **RESOLVED** Propagate context to PubSub handler call [1721](https://github.com/dapr/dapr/issues/1721) - **RESOLVED** Add context to PubSub handler [1749](https://github.com/dapr/dapr/pull/1749) - **RESOLVED** Enhance pub/sub cloud event handling to support existing messaging infrastructure [2308](https://github.com/dapr/dapr/issues/2308) - **RESOLVED** Create a dapr/kit repo to contain common packages [2820](https://github.com/dapr/dapr/issues/2820) - **RESOLVED** Dapr Serialization Error with Dapr CLI Publish [2925](https://github.com/dapr/dapr/issues/2925) - **RESOLVED** Refactoring codes of getting app configuration from user application [2927](https://github.com/dapr/dapr/pull/2927) - **RESOLVED** Running a local gRPC with TLS service fails [2963](https://github.com/dapr/dapr/issues/2963) - **RESOLVED** Default components of Self-hosted mode miss the required version field [2964](https://github.com/dapr/dapr/issues/2964) - **RESOLVED** Allow concurrent reconciliation of Kubernetes resources [2993](https://github.com/dapr/dapr/issues/2993) - **RESOLVED** Increase verbosity for actor errors. [3001](https://github.com/dapr/dapr/pull/3001) - **ADDED** audit log to sidecar injector [3009](https://github.com/dapr/dapr/issues/3009) - **ADDED** Opt-in for preview features [3048](https://github.com/dapr/dapr/issues/3048) - **RESOLVED** optimize: directly use default metrics register [3053](https://github.com/dapr/dapr/pull/3053) - **RESOLVED** Allow choosing which APIs are available on a sidecar [3054](https://github.com/dapr/dapr/issues/3054) - **RESOLVED** Dapr sidecar failed to start: certificate has expired or is not yet valid [3058](https://github.com/dapr/dapr/issues/3058) - **FIXED** Bug in runtime. [3063](https://github.com/dapr/dapr/issues/3063) - **ADDED** Reentrancy bypass for actor locks [3078](https://github.com/dapr/dapr/issues/3078) - **RESOLVED** operator exited with status 1 but no error log output [3082](https://github.com/dapr/dapr/issues/3082) - **RESOLVED** Enable Dapr sidecars to pick up newly added components without restart [3085](https://github.com/dapr/dapr/issues/3085) - **RESOLVED** Automatically merges and updates PRs. [3105](https://github.com/dapr/dapr/pull/3105) - **ADDED** nodeselector option in helm chart [3113](https://github.com/dapr/dapr/issues/3113) - **RESOLVED** issue: use normalizeOperation necessity [3142](https://github.com/dapr/dapr/issues/3142) - **RESOLVED** gracefully stop runtime when exited with log.Fatalf [3159](https://github.com/dapr/dapr/issues/3159) - **RESOLVED** service that owner referencing with a deployment will be removed [3181](https://github.com/dapr/dapr/issues/3181) ### Dapr CLI - **UPDATED** CLI logging output to remove extra newlines when application output contains a newline [616](https://github.com/dapr/cli/issues/616) - **RESOLVED** Permission Denied When Installing on MacBook M1 [634](https://github.com/dapr/cli/issues/634) - **RESOLVED** Default components of Self-hosted mode miss the required version field [644](https://github.com/dapr/cli/issues/644) - **RESOLVED** Stop the running `daprd` process on error when `dapr run` is called [645](https://github.com/dapr/cli/issues/645) - **ADDED** Support to provide GITHUB_TOKEN to address GitHub rate limiting [700](https://github.com/dapr/cli/pull/700) - **ADDED** Support to get api response and replace base download URL [647](https://github.com/dapr/cli/issues/647) - **RESOLVED** CLI `run` detects shutdown API call and exits as expected [654](https://github.com/dapr/cli/issues/654) - **RESOLVED** MTLS automatically enabled on running `dapr upgrade` on a cluster with MTLS disabled [664](https://github.com/dapr/cli/issues/664) - **UPDATED** Switch CLI to use Go 1.16 version [666](https://github.com/dapr/cli/issues/666) - **ADDED** Read invoke and publish payloads from file [668](https://github.com/dapr/cli/issues/668) - **RESOLVED** MTLS command on error exits with success [671](https://github.com/dapr/cli/issues/671) - **RESOLVED** Update helm client. [679](https://github.com/dapr/cli/pull/679) - **RESOLVED** Added `--dapr-http-max-request-size` parameter to CLI [699](https://github.com/dapr/cli/issues/699) ### Components - **RESOLVED** Support of Azure Blob Metadata (for Blob state storage) [462](https://github.com/dapr/components-contrib/issues/462) - **RESOLVED** Add DNS name resolver. Add unit tests. [743](https://github.com/dapr/components-contrib/pull/743) - **ADDED** NameResolution: Consul [749](https://github.com/dapr/components-contrib/issues/749) - **FIXED** Password configuration for Redis Sentinel state store. [756](https://github.com/dapr/components-contrib/issues/756) - **UPDATED** Optimize SMTP binding performance [781](https://github.com/dapr/components-contrib/issues/781) - **RESOLVED** Update Readme.md [789](https://github.com/dapr/components-contrib/pull/789) - **RESOLVED** Fixed bug where default vaultaddr is never used. [791](https://github.com/dapr/components-contrib/pull/791) - **RESOLVED** customize cluster domain of k8s nameresolution [792](https://github.com/dapr/components-contrib/issues/792) - **RESOLVED** Hashicorp Vault - accept root token as string instead of file [794](https://github.com/dapr/components-contrib/issues/794) - **RESOLVED** Use `go mod tidy` before make [799](https://github.com/dapr/components-contrib/pull/799) - **RESOLVED** Upgrade redis client to v8 and use context in redis pubsub component to cancel request [804](https://github.com/dapr/components-contrib/pull/804) - **RESOLVED** Implement bindings for the Zeebe workflow engine [805](https://github.com/dapr/components-contrib/issues/805) - **RESOLVED** Error amqp:link:detach-forced [809](https://github.com/dapr/components-contrib/issues/809) - **RESOLVED** Alibaba Cloud DingTalk Webhook Binding [811](https://github.com/dapr/components-contrib/issues/811) - **RESOLVED** Add redis cluter mode for pubsub [823](https://github.com/dapr/components-contrib/pull/823) - **RESOLVED** optimize(state/redis): output detail redis error [825](https://github.com/dapr/components-contrib/pull/825) - **RESOLVED** Sentinel as Dapr's middleware [828](https://github.com/dapr/components-contrib/issues/828) - **RESOLVED** Add timeout to cancel request for it would be redelivered [832](https://github.com/dapr/components-contrib/pull/832) - **RESOLVED** Add optional metadata param maxLen for redis stream PubSub component [835](https://github.com/dapr/components-contrib/pull/835) - **RESOLVED** add BulkGetResponse comments [845](https://github.com/dapr/components-contrib/pull/845) - **FIXED** Redis subscriber should not block infinitely on XReadGroup [852](https://github.com/dapr/components-contrib/issues/852) - **RESOLVED** Make the retry package available to use across all components [853](https://github.com/dapr/components-contrib/issues/853) - **RESOLVED** Dapr CLI commands take ~5 seconds to execute [865](https://github.com/dapr/components-contrib/issues/865) - **RESOLVED** Update Aerospike to v4.5.0 [866](https://github.com/dapr/components-contrib/pull/866) - **FIXED** Race in pulsar pubsub component. [867](https://github.com/dapr/components-contrib/issues/867) ### .NET SDK - **RESOLVED** Add method for health check in dapr client [640](https://github.com/dapr/dotnet-sdk/issues/640) ### Java SDK - **RESOLVED** Add auto validation for Tracing Example [469](https://github.com/dapr/java-sdk/issues/469) - **REMOVED** protoc-jar-maven-plugin as a dependency for dapr-sdk-autogen [501](https://github.com/dapr/java-sdk/issues/501) - **FIXED** HTTP save state transaction [514](https://github.com/dapr/java-sdk/issues/514) - **RESOLVED** Return empty metadata for key not found. [528](https://github.com/dapr/java-sdk/pull/528) - **ADDED** Shutdown API [529](https://github.com/dapr/java-sdk/issues/529) - **UPDATED** PubSub example to include tracing [537](https://github.com/dapr/java-sdk/issues/537) ### Documentation - **RESOLVED** Add docs on how to use daprd and command line options [378](https://github.com/dapr/docs/issues/378) - **RESOLVED** Add to Actor Conceptual docs [804](https://github.com/dapr/docs/issues/804) - **RESOLVED** Create FAQ/Troubleshooting on local mDNS [1173](https://github.com/dapr/docs/issues/1173) - **RESOLVED** Actor concepts missing types and ids [1298](https://github.com/dapr/docs/issues/1298) - **RESOLVED** Article needed to link to Azure APIM [1303](https://github.com/dapr/docs/issues/1303) - **RESOLVED** Outdated instructions for running Kafka on Kubernetes [1327](https://github.com/dapr/docs/issues/1327) - **RESOLVED** chore: add documentation on the binding mqtt based on the pubsub mqtt… [1328](https://github.com/dapr/docs/pull/1328) - **RESOLVED** [CONTENT] PubSub add more redis client settings [1339](https://github.com/dapr/docs/issues/1339) - **RESOLVED** Update HashiCorp Vault secret docs [1354](https://github.com/dapr/docs/issues/1354) - **RESOLVED** Update hashicorp-vault.md [1355](https://github.com/dapr/docs/pull/1355) - **RESOLVED** Add documentation for PowerShell and Command Prompt [1373](https://github.com/dapr/docs/issues/1373) - **RESOLVED** Remove workaround for mTLS bug [1387](https://github.com/dapr/docs/issues/1387) - **RESOLVED** [CONTENT] Add CLI reference docs for `--data-file` flags for invoke and publish [1391](https://github.com/dapr/docs/issues/1391) - **RESOLVED** Add Alibaba Cloud DingTalk Webhook binding doc [1407](https://github.com/dapr/docs/pull/1407) - **RESOLVED** [CONTENT] Consul nameresolution component [1408](https://github.com/dapr/docs/issues/1408) - **RESOLVED** sentinel middleware doc [1439](https://github.com/dapr/docs/pull/1439) - **RESOLVED** Add documentation for the Zeebe bindings [1441](https://github.com/dapr/docs/pull/1441) - **RESOLVED** Allow choosing which APIs are available on a sidecar [1460](https://github.com/dapr/docs/issues/1460) - **RESOLVED** v1.2 Release [1461](https://github.com/dapr/docs/issues/1461) - **RESOLVED** Documentation for Preview Features [1463](https://github.com/dapr/docs/issues/1463) - **RESOLVED** Document how to set the default values for actors [1470](https://github.com/dapr/docs/issues/1470) - **RESOLVED** [CONTENT] Document pubsub without CE for 1.2 [1474](https://github.com/dapr/docs/issues/1474) - **RESOLVED** Create a shareable Dapr PowerPoint deck [1477](https://github.com/dapr/docs/issues/1477) - **RESOLVED** [CONTENT] Add CLI reference docs for `--dapr-http-max-request-size` flags for run [1481](https://github.com/dapr/docs/issues/1481) - **RESOLVED** Add Docs for Actor Reentrancy [1482](https://github.com/dapr/docs/issues/1482) ### Kit - **MOVED** logger package from `dapr/dapr` to `dapr/kit` [1](https://github.com/dapr/kit/pull/1) ### Homebrew-tap - **REPLACED** deprecated formula style with current alternative [20](https://github.com/dapr/homebrew-tap/pull/20) ## Upgrading to Dapr 1.2.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For stable releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.2.0 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.2.0) with: ```bash $ dapr --version CLI version: 1.2.0 Runtime version: 1.2.0 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest stable release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.2.0 -k ``` To upgrade with high availability mode: ``` dapr upgrade --runtime-version 1.2.0 --enable-ha=true -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.2.0 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster Please see [Deploying Dapr on a Kubernetes cluster](https://v1-2.docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/) for a complete guide to installing Dapr on Kubernetes. You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.2.0 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.2.0 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.6.0 15s 2021-05-20 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.2.0 15s 2021-05-20 13:07.39 dapr-sentry dapr-system True Running 1 1.2.0 15s 2021-05-20 13:07.39 dapr-operator dapr-system True Running 1 1.2.0 15s 2021-05-20 13:07.39 dapr-placement dapr-system True Running 1 1.2.0 15s 2021-05-20 13:07.39 ``` After Dapr 1.2.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes None.
mikeee/dapr
docs/release_notes/v1.2.0.md
Markdown
mit
19,481
# Dapr 1.2.1 ## Fixes * Container order change clashes with readiness probes (https://github.com/dapr/dapr/issues/3304) ### Overview This is a fix for a regression caused by making Dapr the first container in the pod during injection, which causes a long pod startup delay in cases where apps have readiness probes and has Dapr waiting for the app to respond on a given port. This causes Dapr to detect the app is running only when the failure threshold of the user app is met. You should upgrade to this version if all the following conditions are met: 1. You are using Dapr on Kubernetes 2. Your app has readiness probes 3. Your app configured a `dapr.io/app-port` setting
mikeee/dapr
docs/release_notes/v1.2.1.md
Markdown
mit
685
# Dapr 1.3.0 We're happy to announce the release of Dapr 1.3.0! We would like to extend our thanks to all the new and existing contributors who helped make this release happen. **Highlights** If you’re new to Dapr, familiarize yourself by visiting the [getting started](https://docs.dapr.io/getting-started/) page. - **Service Invocation** - Added **gRPC proxying to enable bring-your-own-proto [(preview feature)](https://docs.dapr.io/operations/support/support-preview-features.md)** [#323](https://github.com/dapr/dapr/issues/3231). Use your existing proto based gRPC services and have the traffic go through the Dapr sidecar. This enables Dapr applications to use the benefits of Service Invocation, including security, retries and ACLs to these gRPC services. See our [How-To: Invoke services using gRPC](https://docs.dapr.io/developing-applications/building-blocks/service-invocation/howto-invoke-services-grpc/) documentation for further details. - **Actors** - **Actor reminders and triggers now support ISO 8601 intervals** [#2513](https://github.com/dapr/dapr/issues/2513). Read more [here](https://docs.dapr.io/developing-applications/building-blocks/actors/howto-actors.md) - Added **actor reentrancy support in .NET, PHP and Python SDKs [(preview feature)](https://docs.dapr.io/operations/support/support-preview-features.md)** . Actor reentrancy remains a [preview feature](https://docs.dapr.io/operations/support/support-preview-features.md) in this release. Note that Java and PHP SDKs will support actor reentrancy in the next release. - Added **configuration for actor reentrancy [(preview feature)](https://docs.dapr.io/operations/support/support-preview-features.md)** [#3049](https://github.com/dapr/dapr/issues/3049). Actor reentrancy has several configuration values that must be understood by the runtime/actors. The configuration is provided to the runtime during the call to dapr/config - Support for **actor reminder storage partitioning [(preview feature)](https://docs.dapr.io/operations/support/support-preview-features.md)** [#2889](https://github.com/dapr/dapr/issues/2889). Applications can now enable partitioning of actor reminders in the state store across multiple keys for improved scale and performance. For more information on actor reminder storage partitioning, visit [Dapr's Actors Documentation]() - **State Management** - Added **support for TTL (time to live) to a subset of state store components** [#306](https://github.com/dapr/components-contrib/issues/306). Applications can set time-to-live per state stored, and these states cannot be retrieved after expiration (the state is deleted) [Supported state store components that support TTL](https://docs.dapr.io/reference/components-reference/supported-state-stores/) are: Cassandra, Memcache, Redis, CosmosDB. Read more about [state TTL](https://docs.dapr.io/developing-applications/building-blocks/state-management/state-store-ttl/) - **New components** - [**GraphQL binding**](https://docs.dapr.io/reference/components-reference/supported-bindings/graghql/) - [**AWS SSM Parameter Store**](https://docs.dapr.io/reference/components-reference/supported-secret-stores/aws-parameter-store/) - **Setup VS Code development in a containerized environment and use this in GitHub Codespaces for contributing to dapr project** [#3229](https://github.com/dapr/dapr/issues/3229). Read more [here](https://github.com/dapr/dapr/blob/master/docs/development/setup-dapr-development-using-vscode.md) > **Note: This release contains [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-1.3.0) section on upgrading Dapr to version 1.3.0. ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @AaronCrawfis, @akkie, @alvinhenrick, @amirmm11, @anhldbk, @artursouza, @Banchio, @beiwei30, @berndverst, @bjorkstromm, @caogj, @CodeMonkeyLeet, @CodingSinger, @daixiang0, @DanAbara, @DarqueWarrior, @delvh, @dmitsh, @emattiza, @eNeRGy164, @fabistb, @gogi2811, @greenie-msft, @halspang, @iamazy, @ItalyPaleAle, @jasonviviano, @jcdickinson, @jigargandhi, @Junnplus, @luckyxiaoqiang, @luiscantero, @marviniter, @msfussell, @mukundansundar, @orizohar, @pinxiong, @pkedy, @puzpuzpuz, @rovangju, @seeflood, @skyao, @stulzq, @Taction, @tanvigour, @tianjipeng, @tomkerkhove, @wcs1only, @withinboredom, @yaron2 ## New in this release ### Dapr Runtime - **RESOLVED** Have Actor reminder and triggers support ISO 8601 intervals standard format [2513](https://github.com/dapr/dapr/issues/2513) - **RESOLVED** Improve developer documentation for Windows [2529](https://github.com/dapr/dapr/issues/2529) - **ADDED** Custom component definition of Kubernetes secret store [2821](https://github.com/dapr/dapr/issues/2821) - **RESOLVED** Support partitioned storage of actor reminders as experimental feature [2889](https://github.com/dapr/dapr/issues/2889) - **FIXED** Data race and concurrency problems of actor placement. [2961](https://github.com/dapr/dapr/issues/2961) - **ADDED** Log warning for missing app port when pub/sub subscription is loaded. [2979](https://github.com/dapr/dapr/issues/2979) - **FIXED** Race condition between placement service table dissemination and actor removal [3023](https://github.com/dapr/dapr/issues/3023) - **ADDED** Configuration for actor reentrancy [3049](https://github.com/dapr/dapr/issues/3049) - **RESOLVED** Crash in daprd sidecar when multiple invocation requests are made without the server running [3128](https://github.com/dapr/dapr/issues/3128) - **ADDED** Use pod anti-affinity for spreading across node for high-availability [3147](https://github.com/dapr/dapr/issues/3147) - **ADDED** Use Pod Disruption Budget to ensure Dapr remains up [3148](https://github.com/dapr/dapr/issues/3148) - **RESOLVED** Injector customize cluster domain of k8s when access some system service [3163](https://github.com/dapr/dapr/issues/3163) - **RESOLVED** GetState API to return metadata in HTTP [3172](https://github.com/dapr/dapr/issues/3172) - **RESOLVED** Exit runtime on connection error during component update loop [3175](https://github.com/dapr/dapr/issues/3175) - **RESOLVED** Use separate custom image for injector service in dapr_sidecar_injector chart [3192](https://github.com/dapr/dapr/issues/3192) - **RESOLVED** Add support for metadata in pub/sub subscription CRD [3225](https://github.com/dapr/dapr/issues/3225) - **ADDED** Support GitHub Codespaces for contributing to dapr project [3229](https://github.com/dapr/dapr/issues/3229) - **RESOLVED** Call existing gRPC methods and bring your own gRPC protos - renewed gRPC experience. [3231](https://github.com/dapr/dapr/issues/3231) - **ADDED** PKCS8 support [3240](https://github.com/dapr/dapr/issues/3240) - **FIXED** Go Panic on Actors usage (Redis) with PubSub (Redis) on Start [3258](https://github.com/dapr/dapr/issues/3258) - **RESOLVED** Apply max request body to gRPC channel [3265](https://github.com/dapr/dapr/issues/3265) - **FIXED** sendToOutputBinding incorrect make slice [3270](https://github.com/dapr/dapr/pull/3270) - **RESOLVED** use dapr.io/enable-debug: "true" to debug dapr failed [3287](https://github.com/dapr/dapr/issues/3287) - **FIXED** Race condition in grpc/api.go for state API [3323](https://github.com/dapr/dapr/issues/3323) - **RESOLVED** InvokeBinding API now returns metadata in HTTP [3326](https://github.com/dapr/dapr/issues/3326) - **ADDED** Git commit hash to STDOUT with new flag `--buildinfo` [3341](https://github.com/dapr/dapr/issues/3341) - **FIXED** unblockPlacements concurrent calls will raise panic bug [3364](https://github.com/dapr/dapr/issues/3364) - **ADDED** Support for aws parameter store [3369](https://github.com/dapr/dapr/pull/3369) - **FIXED** operator component crd resouces update all dapr runtime [3375](https://github.com/dapr/dapr/pull/3375) - **ADDED** GraphQL Binding (components-contrib#844) [3394](https://github.com/dapr/dapr/pull/3394) ### Dapr CLI - **RESOLVED** Make install script work with non-privilege's environments like Azure Cloud Shell [580](https://github.com/dapr/cli/issues/580) - **ADDED** `dapr buildinfo` command to print commit id and other info [599](https://github.com/dapr/cli/issues/599) - **ADDED** `dapr uninstall -k --all` which also removes CRDs [656](https://github.com/dapr/cli/issues/656) - **FIXED** Added fallback version check for `dapr init` if Github API is unavailable [677](https://github.com/dapr/cli/issues/677) - **ADDED** `dapr run --placement-host-address` now supports specifying TCP port [705](https://github.com/dapr/cli/issues/705) - **RESOLVED** JSON/YAML output format for `dapr list` [728](https://github.com/dapr/cli/issues/728) - **RESOLVED** Dapr List Displays Dapr Dashboards As Empty Services [736](https://github.com/dapr/cli/issues/736) - **FIXED** The `--enable-profiling` and `--app-ssl` parameters not being properly passed to `daprd`[768](https://github.com/dapr/cli/pull/768) ### Components - **RESOLVED** Event-Hub input binding should propagate event meta-data [227](https://github.com/dapr/components-contrib/issues/227) - **RESOLVED** Add optional support for TTL (Time to Live) for state stores [306](https://github.com/dapr/components-contrib/issues/306) - *Currently supported components: Cassandra, Memcache, Redis, CosmosDB. See [this table](https://v1-3.docs.dapr.io/reference/components-reference/supported-state-stores/).* - **RESOLVED** AWS Managed Cassandra State : not working [691](https://github.com/dapr/components-contrib/issues/691) - **RESOLVED** Azure Storage - getBlobRetryCount [758](https://github.com/dapr/components-contrib/issues/758) - **RESOLVED** Move The common Redis code to internal [857](https://github.com/dapr/components-contrib/issues/857) - **RESOLVED** Add backoff for rabbitmq PubSub component [861](https://github.com/dapr/components-contrib/issues/861) - **RESOLVED** Rabbitmq component goroutine not exit after close [863](https://github.com/dapr/components-contrib/issues/863) - **RESOLVED** Update Zeebe to version 1.0 [875](https://github.com/dapr/components-contrib/issues/875) - **RESOLVED** Move retry and config packages to dapr/kit for reuse [893](https://github.com/dapr/components-contrib/issues/893) - **RESOLVED** Binding to GraphQL [902](https://github.com/dapr/components-contrib/issues/902) - **RESOLVED** Dapr Mongo State Store component does not support srv record format [904](https://github.com/dapr/components-contrib/issues/904) - **RESOLVED** Mysql should support more data types. [923](https://github.com/dapr/components-contrib/issues/923) - **RESOLVED** Hashicorp Vault - using BulkGetSecret (through asp.net core) always return 404 Not Found [925](https://github.com/dapr/components-contrib/issues/925) - **ADDED** ConsumerId parameter can also be referred as ConsumerGroup for Kafka [928](https://github.com/dapr/components-contrib/issues/928) - **ADDED** Support Codespaces and VSCode devcontainers in Components-Contrib repo [935](https://github.com/dapr/components-contrib/issues/935) - **FIXED** Panic when handle Pub/Sub with missing CloudEvent attributes (dapr#3281) [967](https://github.com/dapr/components-contrib/pull/967) - **RESOLVED** Fix reported 3rd party vulnerabilities [979](https://github.com/dapr/components-contrib/issues/979) ### .NET SDK - **ADDED** Support for actor reentrancy [661](https://github.com/dapr/dotnet-sdk/issues/661) - **RESOLVED** Add support to provide Pubsub (and Topic) during runtime at startup for controller methods. [678](https://github.com/dapr/dotnet-sdk/issues/678) - **RESOLVED** Adds support for providing pubsub and topic names during runtime. [681](https://github.com/dapr/dotnet-sdk/pull/681) - **RESOLVED** Improve Actor error messages [684](https://github.com/dapr/dotnet-sdk/pull/684) - **RESOLVED** fix: InvalidProgramException under ASP.Net 6.0 [711](https://github.com/dapr/dotnet-sdk/pull/711) - **RESOLVED** Configurable actor reminder storage partitions [712](https://github.com/dapr/dotnet-sdk/pull/712) - **RESOLVED** GrpcServiceSample: No message returned from method [719](https://github.com/dapr/dotnet-sdk/issues/719) ### Go SDK - **RESOLVED** Introduce golangci-lint [168](https://github.com/dapr/go-sdk/issues/168) - **RESOLVED** Invoke: gRPC errors are wrapped multiple times - cannot get the status code [186](https://github.com/dapr/go-sdk/issues/186) - **RESOLVED** Expose GRPCClient.protoClient [188](https://github.com/dapr/go-sdk/issues/188) - **RESOLVED** cleanup temp binary file [193](https://github.com/dapr/go-sdk/issues/193) ### Java SDK - **RESOLVED** Update Spring Boot DaprBeanPostProcessor to evaluate expressions Topic attribute values [554](https://github.com/dapr/java-sdk/issues/554) - **FIXED** Actor gRPC client to be non-blocking [562](https://github.com/dapr/java-sdk/issues/562) - **RESOLVED** Update GRPC libraries for security updates [573](https://github.com/dapr/java-sdk/pull/573) - **ADDED** Support for configuring actor reminder storage partitions [574](https://github.com/dapr/java-sdk/pull/574) ### Python SDK - **ADDED** Support for actor reentrancy [214](https://github.com/dapr/python-sdk/issues/214) - **RESOLVED** Configurable actor reminder storage patitions [236](https://github.com/dapr/python-sdk/pull/236) - **ADDED** Implement State Isolation for Reentrant Actor Calls [237](https://github.com/dapr/python-sdk/issues/237) ### PHP SDK - **ADDED** Dapr API token support [81](https://github.com/dapr/php-sdk/issues/81) - **RESOLVED** Add Laravel example [84](https://github.com/dapr/php-sdk/pull/84) - **ADDED** Support for actor reentrancy [85](https://github.com/dapr/php-sdk/issues/85) - **RESOLVED** A whole new client [93](https://github.com/dapr/php-sdk/pull/93) - **ADDED** native DateInterval support [95](https://github.com/dapr/php-sdk/issues/95) - **RESOLVED** Support Reminder Storage Partitions Actor Runtime Config [97](https://github.com/dapr/php-sdk/issues/97) ### Documentation - **RESOLVED** Add deployment and upgrade guidelines for self-hosted mode [760](https://github.com/dapr/docs/issues/760) - **RESOLVED** [CONTENT] Incorrect curl syntax in Actors API examples [1365](https://github.com/dapr/docs/issues/1365) - **RESOLVED** Enabling HA for existing Dapr installations on Kubernetes [1476](https://github.com/dapr/docs/issues/1476) - **RESOLVED** [CONTENT] Actor sections should mention that only a single state store can be used for actor state [1525](https://github.com/dapr/docs/issues/1525) - **RESOLVED** VS Code Dapr Extension Documentation Update [1533](https://github.com/dapr/docs/issues/1533) - **RESOLVED** GCP Pub/Sub Binding required fields [1534](https://github.com/dapr/docs/issues/1534) - **RESOLVED** gRPC service extension examples won't run [1542](https://github.com/dapr/docs/issues/1542) - **RESOLVED** Secrets getting started guide should clarify path to file [1544](https://github.com/dapr/docs/issues/1544) - **RESOLVED** Add gRPC proxy section [1548](https://github.com/dapr/docs/issues/1548) - **RESOLVED** Building blocks articles do not link to the SDK topic for that building block [1549](https://github.com/dapr/docs/issues/1549) - **RESOLVED** Add automation to create PR for submodule updates [1562](https://github.com/dapr/docs/issues/1562) - **RESOLVED** metadata missing consumerGroup [1575](https://github.com/dapr/docs/issues/1575) - **RESOLVED** Need topic that list all the **preview features** and when they were introduced [1592](https://github.com/dapr/docs/issues/1592) - **RESOLVED** Actors reminder and triggers support ISO 8601 intervals standard format [1600](https://github.com/dapr/docs/issues/1600) - **RESOLVED** Update info about supported Kubernetes versions [1603](https://github.com/dapr/docs/pull/1603) - **RESOLVED** Document kubernetes secret store [1622](https://github.com/dapr/docs/pull/1622) - **RESOLVED** Document how to use partitioning for actor reminders storage [1648](https://github.com/dapr/docs/issues/1648) - **RESOLVED** updated Actor How To docs for reminder intervals [1651](https://github.com/dapr/docs/pull/1651) - **RESOLVED** Document actor reminder partitioning [1658](https://github.com/dapr/docs/pull/1658) - **RESOLVED** Add gRPC proxying content [1671](https://github.com/dapr/docs/issues/1671) - **RESOLVED** Added a How-To section for VSCode debugging [1673](https://github.com/dapr/docs/pull/1673) - **RESOLVED** Fix profiling flag example [1675](https://github.com/dapr/docs/pull/1675) - **RESOLVED** Add a list of all current preview features [1678](https://github.com/dapr/docs/pull/1678) - **RESOLVED** Update the list of supported Dapr versions for v1.3 [1684](https://github.com/dapr/docs/issues/1684) ## Upgrading to Dapr 1.3.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.3.0 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.3.0) with: ```bash $ dapr --version CLI version: 1.3.0 Runtime version: 1.3.0 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.3.0 -k ``` To upgrade with high availability mode: ``` dapr upgrade --runtime-version 1.3.0 --enable-ha=true -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.3.0 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster Please see [how to deploy Dapr on a Kubernetes cluster](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/) for a complete guide to installing Dapr on Kubernetes You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.3.0 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.3.0 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.7.0 15s 2021-07-26 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.3.0 15s 2021-07-26 13:07.39 dapr-sentry dapr-system True Running 1 1.3.0 15s 2021-07-26 13:07.39 dapr-operator dapr-system True Running 1 1.3.0 15s 2021-07-26 13:07.39 dapr-placement dapr-system True Running 1 1.3.0 15s 2021-07-26 13:07.39 ``` After Dapr 1.3.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes ### Components - **RESOLVED** Update Zeebe to version 1.0 [875](https://github.com/dapr/components-contrib/issues/875)
mikeee/dapr
docs/release_notes/v1.3.0.md
Markdown
mit
20,305
# Dapr 1.4.0 We're happy to announce the release of Dapr 1.4.0! We would like to extend our thanks to all the new and existing contributors who helped make this release happen. **Highlights** If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. * **Service Invocation** - Added an HTTP proxy feature for service to service calls similar to gRPC proxy [#3546](https://github.com/dapr/dapr/issues/3546). Now it's easier to use Dapr features with existing HTTP client code. Simply add a line of metadata with your appid, and call the service (without using Dapr's special URLs or requiring Dapr SDK for service invoke). For more info, see the [docs](https://docs.dapr.io/developing-applications/building-blocks/service-invocation/howto-invoke-discover-services/#additional-url-formats). * **Pub/Sub** - Enabled pub/sub subscribers to perform message routing and filtering based on expressions applied to CloudEvents fields ([preview feature](https://docs.dapr.io/operations/support/support-preview-features)). [#2582](https://github.com/dapr/dapr/issues/2582). For more info, see the [docs](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-route-messages/). * **State Management** - Added automatic encryption of data with support for key rotation ([preview feature](https://docs.dapr.io/operations/support/support-preview-features)) [#1090](https://github.com/dapr/dapr/issues/1090). Enable automatic data-at-rest encryption of your state with support for bringing-your-own-key and key rotation. Supports all Dapr state stores. For more info, see the [docs](https://docs.dapr.io/developing-applications/building-blocks/state-management/howto-encrypt-state/). * **Bindings** - Added the option to specify an HTTP endpoint route for input bindings [#3520](https://github.com/dapr/dapr/issues/3520). For more info, see the [docs](https://docs.dapr.io/developing-applications/building-blocks/bindings/howto-triggers/#specifying-a-custom-route). * **New components** - [In memory Pub/Sub broker](https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-inmemory/) - [NATS JetStream Pub/Sub broker](https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-jetstream/) - [Alibaba Cloud Tablestore binding](https://docs.dapr.io/reference/components-reference/supported-bindings/alicloudtablestore/) Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). > **If you are upgrading from 1.3.0, check [these instructions](#Production-upgrade-from-130-to-140) before proceeding with the upgrade. Then, see [this](#Upgrading-to-Dapr-140) section on upgrading Dapr to version 1.4.0.** > **Note: This release contains a few [breaking changes](#Breaking-Changes).** ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @AaronCrawfis, @CodeMonkeyLeet, @Fabian-Schmidt, @ItalyPaleAle, @LLKennedy, @TomCools, @UmutComlekci, @amimimor, @artursouza, @beiwei30, @berndverst, @blackstorm, @cshi0, @daixiang0, @dmitsh, @fjvela, @greenie-msft, @halspang, @howlowck, @jigargandhi, @kevinten10, @l0ll098, @li1234yun, @luckyxiaoqiang, @marcmaranon, @marviniter, @matthewgaim, @msfussell, @mthmulders, @mukundansundar, @omidb, @orizohar, @paulyuk, @pkedy, @ravi-k4, @riezebosch, @tanvigour, @theonefx, @variadico, @vikborisov, @wcs1only, @weibubli, @willtsai, @yaron2, @yufan022, @jerrylisl, @variadico ## New in this release ### Dapr Runtime - **RESOLVED** Enable automatic encryption of state stores [1090](https://github.com/dapr/dapr/issues/1090) - **ADDED** Support for CloudEvent filtering in PubSub's subscriber [2582](https://github.com/dapr/dapr/issues/2582) - **RESOLVED** Dapr does not support Daemonset [2637](https://github.com/dapr/dapr/issues/2637) - **RESOLVED** Dapr Actors - "TTL" for timers / reminders [2906](https://github.com/dapr/dapr/issues/2906) - **BLOCKED** Cross Pods calls to Dapr sidecar by default in K8s [2914](https://github.com/dapr/dapr/issues/2914) - **RESOLVED** when component yaml format error but there no error log [3157](https://github.com/dapr/dapr/issues/3157) - **ADDED** body to error in case a binding fails [3220](https://github.com/dapr/dapr/issues/3220) - **RESOLVED** Imported components are now configurable. [3271](https://github.com/dapr/dapr/issues/3271) - **RESOLVED** Optimize: Support dashboard service annotation [3363](https://github.com/dapr/dapr/pull/3363) - **FIXED** Data races of placement member state. [3423](https://github.com/dapr/dapr/issues/3423) - **RESOLVED** Add an optional public dapr endpoint for healthz and metadata. [3475](https://github.com/dapr/dapr/issues/3475) - **RESOLVED** feat(diagnostics/binding): add binding reading event to report metrics for grpc protocol [3487](https://github.com/dapr/dapr/pull/3487) - **RESOLVED** Fetch secrets from Operator on Kubernetes and not from sidecar [3495](https://github.com/dapr/dapr/issues/3495) - **ENABLED** reduced sampler assignment times and support all service name of Invoke. [3508](https://github.com/dapr/dapr/pull/3508) - **RESOLVED** fix build error on Arm 32-bit [3509](https://github.com/dapr/dapr/pull/3509) - **RESOLVED** Allow input bindings to specify routes [3520](https://github.com/dapr/dapr/issues/3520) - **RESOLVED** Enable route based proxying for HTTP in addition to gRPC [3546](https://github.com/dapr/dapr/issues/3546) - **FIXED** Data races in placement. [3551](https://github.com/dapr/dapr/issues/3551) - **RESOLVED** Update to Go 1.17 [3556](https://github.com/dapr/dapr/issues/3556) - **RESOLVED** Correct ADR links [3584](https://github.com/dapr/dapr/pull/3584) - **RESOLVED** Add a bit more logging, and split up the binds tests [3612](https://github.com/dapr/dapr/pull/3612) - **RESOLVED** Setting initialOffset to oldest for e2e Kafka configurations [3614](https://github.com/dapr/dapr/pull/3614) - **RESOLVED** feat(components): add in-memory pub/sub [3616](https://github.com/dapr/dapr/pull/3616) - **RESOLVED** Allow unix domain socket mount path [3627](https://github.com/dapr/dapr/pull/3627) - **RESOLVED** Measure publish time E2E tests. [3630](https://github.com/dapr/dapr/pull/3630) - **RESOLVED** Fix actor reminders partitioning on CosmosDB. [3648](https://github.com/dapr/dapr/pull/3648) - **DELETED** Shudown GET API, following deprecation [3651](https://github.com/dapr/dapr/issues/3651) ### Dapr CLI - **RESOLVED** Improve Dapr download speed. [611](https://github.com/dapr/cli/pull/611) - **RESOLVED** dapr init failed [740](https://github.com/dapr/cli/issues/740) - **RESOLVED** Log error messages to stderr. [748](https://github.com/dapr/cli/issues/748) - **RESOLVED** dapr dashboard should add '--address' option for define listen address [780](https://github.com/dapr/cli/issues/780) ### Components - **RESOLVED** Add NATS JetStream pubsub component [870](https://github.com/dapr/components-contrib/issues/870) - **RESOLVED** Add Close() to Azure EventHubs binding to clean up client [894](https://github.com/dapr/components-contrib/issues/894) - **RESOLVED** Add Close() to Azure ServiceBusQueues binding to clean up client [895](https://github.com/dapr/components-contrib/issues/895) - **RESOLVED** Add Close() to GCP Bucket binding to clean up client [896](https://github.com/dapr/components-contrib/issues/896) - **RESOLVED** Add Close() to GCP Pubsub binding to clean up client [897](https://github.com/dapr/components-contrib/issues/897) - **RESOLVED** Add Close() to Postgres binding to clean up client [901](https://github.com/dapr/components-contrib/issues/901) - **RESOLVED** Alibaba Cloud TableStore binding [920](https://github.com/dapr/components-contrib/issues/920) - **RESOLVED** Client Credentials authN & authZ is supported by all Dapr components having an Azure implementation [970](https://github.com/dapr/components-contrib/issues/970) - **RESOLVED** Adds support for TTL in Memcached State Store [992](https://github.com/dapr/components-contrib/pull/992) - **FIXED** Dapr state store component is not handling FIRST_WRITE concurrency option correctly [994](https://github.com/dapr/components-contrib/issues/994) - **RESOLVED** Redis state store: using "first-write" and no etag updates the document if it exists [1010](https://github.com/dapr/components-contrib/issues/1010) - **RESOLVED** Fix Kafka pubsub use of AuthRequired metadata [1015](https://github.com/dapr/components-contrib/pull/1015) - **ADDED** SMTP binding added priority option [1017](https://github.com/dapr/components-contrib/issues/1017) - **ADDED** New binding AWS SES [1019](https://github.com/dapr/components-contrib/issues/1019) - **RESOLVED** daprd snssqs destroys SNS subscription upon termination [1029](https://github.com/dapr/components-contrib/issues/1029) - **UPDATED** Bump alibaba/sentinel-golang version. [1033](https://github.com/dapr/components-contrib/issues/1033) - **RESOLVED** SNS and SQS topic/queue names - replace SHA256 with AWS-sanitized names [1034](https://github.com/dapr/components-contrib/issues/1034) - **UPDATED** Bump go-mssqldb dependency version [1036](https://github.com/dapr/components-contrib/issues/1036) - **ADDED** Add Event Hubs pubsub and bindings conformance tests [1040](https://github.com/dapr/components-contrib/pull/1040) - **FIXED** binding SMTP multiple recipients [1048](https://github.com/dapr/components-contrib/issues/1048) - **RESOLVED** Bump go.mongodb.org/mongo-driver from 1.1.2 to 1.5.1 [1054](https://github.com/dapr/components-contrib/pull/1054) - **UPDATED** State.cosmosdb component for first-write with etag behavior. [1057](https://github.com/dapr/components-contrib/issues/1057) - **ADDED** support for default TTL in the Redis State Store component [1060](https://github.com/dapr/components-contrib/issues/1060) - **RESOLVED** pubsub/aws/snssqs component to support sqs dead-letters queue [1065](https://github.com/dapr/components-contrib/issues/1065) - **RESOLVED** Update S3 binding [1080](https://github.com/dapr/components-contrib/issues/1080) - **RESOLVED** Update S3 binding [1081](https://github.com/dapr/components-contrib/pull/1081) - **ENABLE** setup SMTP binding without user and password [1082](https://github.com/dapr/components-contrib/issues/1082) - **ADDED** Multi-valued secret support in the local file store [1090](https://github.com/dapr/components-contrib/issues/1090) - **RESOLVED** Support Azure AD auth for Cosmos DB [1104](https://github.com/dapr/components-contrib/pull/1104) - **RESOLVED** feat(pubsub): add in-memory pub/sub [1106](https://github.com/dapr/components-contrib/pull/1106) - **FIXED** Fix parseErr return in blobstorage Init() [1108](https://github.com/dapr/components-contrib/pull/1108) - **RESOLVED** Add Close() method to influx bindings [1114](https://github.com/dapr/components-contrib/pull/1114) - **RESOLVED** Patch regression in cosmosdb state component Init [1119](https://github.com/dapr/components-contrib/pull/1119) - **RESOLVED** Adding `initialOffset` option to Kafka binding and pubsub components [1120](https://github.com/dapr/components-contrib/pull/1120) - **RESOLVED** Support DefaultIdentificationHydrator in cosmosdb state component [1121](https://github.com/dapr/components-contrib/pull/1121) ### Dashboard - **RESOLVED** Several improvements to the dashboard layout [149](https://github.com/dapr/dashboard/pull/149) - **RESOLVED** Add a secondary port to try for metadata requests [160](https://github.com/dapr/dashboard/pull/160) ### .NET SDK - **RESOLVED** Expose http timeout in ActorProxy [728](https://github.com/dapr/dotnet-sdk/issues/728) - **ADDED** Add match and priority to TopicAttribute for PubSub routing. [746](https://github.com/dapr/dotnet-sdk/pull/746) - **ADDED** Add support for subscribing to raw messages [709](https://github.com/dapr/dotnet-sdk/issues/728) - **RESOLVED** Raspberry Pi4 build issue [729](https://github.com/dapr/dotnet-sdk/issues/729) - **ADDED** Add Dapr authentication handler [688](https://github.com/dapr/dotnet-sdk/pull/688) ### Java SDK - **FIXED** Pub/sub binding for Spring Boot properly reads @PostMapping value [575](https://github.com/dapr/java-sdk/issues/575) - **RESOLVED** Automatically unwrap pub/sub CloudEvent [576](https://github.com/dapr/java-sdk/issues/576) - **RESOLVED** Including in Spring Boot project [582](https://github.com/dapr/java-sdk/issues/582) - **DEPRECATED** Builder classes in favor of setters on SDK Request classes [587](https://github.com/dapr/java-sdk/issues/587) - **RESOLVED** Allow development with JDK 16 + add build with multiple JDK versions [594](https://github.com/dapr/java-sdk/issues/594) ### Python SDK - **RESOLVED** Invoking a service method inside an Actor method doesn't work [260](https://github.com/dapr/python-sdk/issues/260) - **RESOLVED** Adding optional Rule to subscription annotations for PubSub routing [266](https://github.com/dapr/python-sdk/pull/266) - **RESOLVED** Add matrix build for python versions [267](https://github.com/dapr/python-sdk/pull/267) - **FIXED** Actor Reminders do not honour period value, use due time instead [268](https://github.com/dapr/python-sdk/issues/268) - **RESOLVED** Dev container build breaks on Mac M1 [269](https://github.com/dapr/python-sdk/issues/269) ## Upgrading to Dapr 1.4.0 To upgrade to this release of Dapr, follow the steps here to upgrade. **Important: If you are running a production cluster and cannot handle some downtime there are special steps that required to upgrade from 1.3.0 to 1.4.0 to ensure no downtime. See [Production upgrade from 1.3.0 to 1.4.0](#Production-upgrade-from-130-to-140) for detailed steps** ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.4.0 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.4.0) with: ```bash $ dapr --version CLI version: 1.4.0 Runtime version: 1.4.0 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.4.0 -k ``` To upgrade with high availability mode: ``` dapr upgrade --runtime-version 1.4.0 --enable-ha=true -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.4.0 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster Please see [how to deploy Dapr on a Kubernetes cluster](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/) for a complete guide to installing Dapr on Kubernetes You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.4.0 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.4.0 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.8.0 15s 2021-09-13 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.4.0 15s 2021-09-13 13:07.39 dapr-sentry dapr-system True Running 1 1.4.0 15s 2021-09-13 13:07.39 dapr-operator dapr-system True Running 1 1.4.0 15s 2021-09-13 13:07.39 dapr-placement dapr-system True Running 1 1.4.0 15s 2021-09-13 13:07.39 ``` After Dapr 1.4.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Production upgrade from 1.3.0 to 1.4.0 In 1.3.0 a bug was introduced that prevented no downtime upgrades, meaning the upgrading from 1.3.0 to 1.4.0 causes all the Dapr sidecars in a cluster to restart at the same time. A new patch release v1.3.1 has been released to address this issue. For successful no downtime upgrade, you need to first deploy the v1.3.1 release. **Overview** This is a fix for a regression caused by making Dapr sidecar crash if it cannot reach the Dapr Operator. Dapr Operator can be down due to upgrades, for example, and should not impact running Dapr sidecars. Dapr guarantees zero downtime upgrades, and this bug violates this guarantee. DO NOT upgrade from 1.3.0 to 1.3.1 or any other version without performing the following steps first: First upgrade the sidecar injector ``` helm repo update helm upgrade dapr dapr/dapr --set-string dapr_sidecar_injector.image.name=docker.io/daprio/daprd:1.3.1 -n dapr-system ``` Then do a rollout deployment that use the Dapr sidecar ``` kubectl rollout restart deploy/<name> ``` Now, follow [instructions to upgrade to 1.4.0](#Upgrading-to-Dapr-140) as usual. ## Breaking Changes ### Dapr Runtime - **DELETED** GET shutdown API, following deprecation [3651](https://github.com/dapr/dapr/issues/3651) - **BLOCKED** Cross Pods calls to Dapr sidecar by default in K8s [2914](https://github.com/dapr/dapr/issues/2914)
mikeee/dapr
docs/release_notes/v1.4.0.md
Markdown
mit
18,518
# Dapr 1.4.1 ## Fixes * Sidecar-injector.dapr.io admission webhook deny access to Kubernetes nodes (https://github.com/dapr/dapr/issues/3699) * PubSub routing fails when using event more than once (https://github.com/dapr/dapr/issues/3693) ### Overview #### Issue #3699 When trying to connect to an Kubernetes node, using the `kubectl debug` command (for example, `kubectl debug node/ -it --image=mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.11`), the connection is denied due "sidecar-injector.dapr.io" admission webhook: ```txt Error from server: admission webhook "sidecar-injector.dapr.io" denied the request: service account 'xxxxxxx' not on the list of allowed controller accounts ``` #### Issue #3693 The following CEL expression for PubSub Routing fails: `has(event.data.important) && event.data.important == true` Using event more than once causes an error because it tries to compile an underlying CEL program with the variable defined multiple times.
mikeee/dapr
docs/release_notes/v1.4.1.md
Markdown
mit
979
# Dapr 1.4.2 ## Fixes * Sidecar-injector.dapr.io was blocking Pod admissions if sidecar could not be injected (https://github.com/dapr/dapr/issues/3709) ### Overview #### Issue #3709 When creating a new Pod where `sidecar-injector.dapr.io` cannot inject the Dapr sidecar, an error is thrown and the Pod cannot be created. This issue was surfaced in #3709 and #3699, although 1.4.1 fixes the issue in #3699 by allowing the Dapr sidecar to be injected. For example, deploying with Tekton CICD would display the following error with this bug. ``` - lastTransitionTime: '2021-09-24T07:48:19Z' message: >- failed to create task run pod "function-sample-builder-cgmn8-buildrun-nfkb8-nlbjs": admission webhook "sidecar-injector.dapr.io" denied the request: service account 'system:serviceaccount:tekton-pipelines:tekton-pipelines-controller' not on the list of allowed controller accounts. Maybe invalid TaskSpec reason: CouldntGetTask status: 'False' type: Succeeded ```
mikeee/dapr
docs/release_notes/v1.4.2.md
Markdown
mit
1,021
# Dapr 1.4.3 **Important**: If upgrading to this version using Helm instead of the Dapr CLI, you will need to update the Subscription CRD prior to performing the Helm upgrade. ```cli kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.4.3/charts/dapr/crds/subscription.yaml ``` ## Fixes * Subscription v1alpha1 applied in v2alpha1 (https://github.com/dapr/dapr/issues/3731) ### Issue #3731 #### Overview The Pub/Sub routing feature implemented in 1.4 introduced schema changes and therefore required a new version (`v2alpha1`) in the Subscriptions CRD. This was the first time a multi-version CRD was implemented in Dapr. When adding additional versions to a CRD, one version (typically the latest) must be marked as the storage version. In many cases, versions are added without schema changes to graduate features from alpha to beta or stable. However, the schema changes for Pub/Sub routing also required additional steps we were not fully aware of. #### Problem The assumed behavior of the Kubernetes API was that each version would return confirming to its own schema. Instead, Kubernetes converts the payload to match the schema of the storage version. For subscriptions, this created an issue. `v1alpha1` subscriptions were being returned as `v2alpha1` with the `route` property being stripped out. #### Root cause The Pub/Sub routing feature included conversion logic that intended to handle this, but it was not exposed through a required conversion webhook. Without the webhook configured in the CRD, Kubernetes was unaware that a translation was required. This resulted in Dapr using an empty string as the route instead of the user's configured value. There are e2e tests that cover declarative/CRD subscriptions; however, the issue was not caught because the CRD topics were also subscribed to programmatically by the test apps. Even though Pub/Sub routing is a preview feature, the behavior of the Kubernetes API could not be protected by the feature flag. This ultimately allowed the regression to surface to users of 1.4. Users could work around this issue by temporarily adjusting their subscription CRDs to conform to the `v2valpha1` structure. #### Solution This hotfix addresses the declarative subscription tests and configures the subscription CRD to use a conversion webhook to properly convert `v1alpha1` subscriptions to `v2alpha1`. The Helm chart was extended to create a CA and TLS certificate for future webhooks. Webhooks are served by the dapr operator. On startup, the operator patches the subscription CRD to set the `namespace` and `caBundle` fields of the webhook client configuration.
mikeee/dapr
docs/release_notes/v1.4.3.md
Markdown
mit
2,651
# Dapr 1.4.4 ## Summary This release addresses several issues with the following fixes: * Adds retry logic for TooManyRequests initialization error for CosmosDb State and Binding components (https://github.com/dapr/components-contrib/pull/1329) * Add scopes to Pub/Sub subscription conversion from `v1alpha1` to `v2alpha1` (https://github.com/dapr/dapr/issues/3914) * Upgrade `github.com/nhooyr/websocket` to > 1.8.6 with DoS vulnerability fixes (https://github.com/dapr/dapr/pull/3892) ## Upgrading **Important**: If upgrading to this version using Helm instead of the Dapr CLI, you will need to update the Subscription CRD prior to performing the Helm upgrade. ```cli kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.4.4/charts/dapr/crds/subscription.yaml ``` ## Details ### Initialization erros of Azure Cosmos DB components & Production Guidance #### Overview - New **strongly advised** production guidance for Azure Cosmos DB components have been established. - Dapr now retries connecting to Azure Cosmos DB during sidecar initialization. #### Problem Some sidecars with Azure Cosmos DB components (both Output Binding and State Store) fail to initialize, causing the sidecar to restart or hang (up to the `initTimeout` duration which is 5 seconds by default). Sidecar logs show a response from Cosmos DB with status `429 Request rate too large`. #### Root cause Every new connection to Azure Cosmos DB initially performs a large number of metadata requests ([Cosmos DB documentation](https://docs.microsoft.com/azure/cosmos-db/sql/troubleshoot-request-rate-too-large#rate-limiting-on-metadata-requests)). The metadata request rate limit for Azure Cosmos DB Accounts can easily be exceeded when multiple connections to the same Azure Cosmos DB account (even distinct datatabases within the same account) are made simultaneously. If the attempt to initialize the component and connect to Azure Cosmos DB fails due to this rate limit Dapr did not previously retry the connection until the sidecar restarts. #### Solution The following **production best practices** must be applied to minimize the likelihood this issue will occur: - Ensure applications and sidecars only load the Azure Cosmos DB component when it is required for that application, which avoid unnecessary database connections from other microservices or applications. This can be done by [scoping your components to specific applications](https://docs.dapr.io/operations/components/component-scopes/#application-access-to-components-with-scopes). - Choose deployment strategies that sequentially deploy or start all applications to minimize bursts in new connections to your Azure Cosmos DB accounts. - Avoid reusing the same Azure Cosmos DB account for unrelated databases or systems (even outside of Dapr). Distinct Azure Cosmos DB accounts have distinct rate limits. Additionally, **Dapr now retries establishing the initial Azure Cosmos DB connection for up to 5 minutes, when the component is configured by setting the `initTimeout` value**. The default component initialization timeout is 5 seconds. Please update your [component definitions](https://docs.dapr.io/operations/components/component-schema/) specifying a greater `initTimeout` duration value for the component to attempt reconnections. Note that this will delay the readiness of your sidecar. In Kubernetes you may need to [adjust your liveness and readiness probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/). ### Add scopes to Pub/Sub subscription conversion from `v1alpha1` to `v2alpha1` #### Overview In order to add the Pub/Sub routing preview feature, the subscriptions CRD required a new version `v2alpha1`. This requires the Dapr operator to provide a conversion webhook that converts `v1alpha1` to `v2alpha1`. #### Problem Subscriptions created as `v1alpha1` would drop the scopes when converted by the operator to `v2alpha1`. #### Root cause The conversion function was not copying the `Scopes` field from `v1apha1` to `v2alpha1`. #### Solution The conversion function was updated to include copying the `Scopes` field. ### Upgrade `github.com/nhooyr/websocket` to > 1.8.6 with DoS vulnerability fixes #### Overview From [https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNHOOYRWEBSOCKET-1244800](https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNHOOYRWEBSOCKET-1244800): [github.com/nhooyr/websocket](https://github.com/nhooyr/websocket) is a minimal and idiomatic WebSocket library for Go. Affected versions of this package are vulnerable to Denial of Service (DoS). A double channel close panic is possible if a peer sent back multiple pongs for every ping. If the second pong arrived before the ping goroutine deleted its channel from the map, the channel would be closed twice and a panic would occur. #### Root cause Dapr was using v1.8.6 of the package. #### Solution The package was upgrade to v1.8.7. ## Related releases Applications using the `1.5.x` release of Dapr should consider taking the related `1.5.1` release (or higher) that addresses a similar set of issues.
mikeee/dapr
docs/release_notes/v1.4.4.md
Markdown
mit
5,153
# Dapr 1.5.0 We're happy to announce the release of Dapr 1.5.0! We would like to extend our thanks to all the new and existing contributors who helped make this release happen. ## Highlights ### Components upgraded to `Stable` The Dapr Steering and Technical Committee (STC) [voted](https://github.com/dapr/community/issues/99) to change the components certification criteria and rename components from `GA` to `Stable`. The following components are now upgraded to `Stable` indicating that they are suitable for use in production scenarios: - [Kafka Pub/sub](https://v1-5.docs.dapr.io/reference/components-reference/supported-pubsub/) - [Azure KeyVault Secret store](https://v1-5.docs.dapr.io/reference/components-reference/supported-secret-stores/) - [Azure SQL Server State store](https://v1-5.docs.dapr.io/reference/components-reference/supported-state-stores/) In addition, multiple fixes have been made to other components including RabbitMQ pub/sub, MySQL state store, and PostgreSQL state store. For more information see the [Dapr components reference](https://v1-5.docs.dapr.io/reference/components-reference/). ### Query API for state management The state management building block API now includes a query API, currently in `Alpha` state. This API provides a way of querying the key/value data stored in state store components. It is not a replacement for a complete query language, and is focused on retrieving, filtering and sorting key/value data that you have saved through the state store APIs. Even though the state store is a key/value store, the value might be a JSON document with its own hierarchy, keys, and values. This query API allows you to use those keys and values to retrieve corresponding documents. For more information read the [state management query API docs](https://v1-5.docs.dapr.io/developing-applications/building-blocks/state-management/howto-state-query-api/). ### Configuration API building block Configuration is a new building block API introduced in this release and is currently in `Alpha` state. Consuming application configuration is a common task when writing applications and frequently configuration stores are used to manage this configuration data. A configuration item is often dynamic in nature and is tightly coupled to the needs of the application that consumes it. The Configuration API provides an abstraction over different stores and exposes key/value data and importantly with the ability to subscribe to configuration item update notfications. In this initial release this API can only be used over gRPC. HTTP will be made available before the final stable release (for example, `\v1.0\configuration\myconfigstore`). For more information read the [configuration overview](https://v1-5.docs.dapr.io/developing-applications/building-blocks/configuration/app-configuration-overview/). ### Actors in the Go SDK Virtual actors are now available in the Dapr Go SDK. See [go-sdk/21](https://github.com/dapr/go-sdk/issues/21) for details. For a Dapr actor example using the Go SDK, see [go-sdk/examples/actor](https://github.com/dapr/go-sdk/tree/main/examples/actor). ### Actors reliability improvement Enhancements to the actor runtime were released to improve reliability. See [dapr/1914](https://github.com/dapr/dapr/issues/1914) and [dapr/3533](https://github.com/dapr/dapr/issues/3533) for details. ### Support for ARM64 Macs (Preview) Dapr CLI, sidecar and Dashboard are now natively compiled for ARM64 Macs. Also, Dapr CLI installation via Homebrew was fixed. See the [Dapr CLI installation instructions](https://v1-5.docs.dapr.io/getting-started/install-dapr-cli/) for details. ### New components New components added to this release include: - [Azure CosmosDB Gremlin API Binding](https://v1-5.docs.dapr.io/reference/components-reference/supported-bindings/cosmosdbgremlinapi/) - [Alibaba Cloud Tablestore Binding](https://v1-5.docs.dapr.io/reference/components-reference/supported-bindings/alicloudtablestore/) ### Next steps If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). See [this](#upgrading-to-dapr-1.5.0) section on upgrading Dapr to version 1.5.0. ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @AaronCrawfis, @abhishek-galoda, @alvinhenrick, @amimimor, @anhldbk, @AnyISalIn, @apuzyrevsky, @artursouza, @beiwei30, @berndverst, @caogj, @CodeMonkeyLeet, @CrazyHZM, @cshi0, @cwdsuzhou, @daixiang0, @DarinShapiroMS, @Darquewarrior, @denis111, @dmitsh, @doddgu, @fjvela, @greenie-msft, @halspang, @hokandil, @huiyangz, @ItalyPaleAle, @jjcollinge, @Juneezee, @krutsko, @l0ll098, @LaurenceLiZhixin, @li1234yun, @marviniter, @mnussbaum, @msfussell, @mthmulders, @mukundansundar, @orizohar, @penghuima, @pkedy, @qmhu, @ravi-k4, @richgo, @swuecho, @Taction, @tanvigour, @theonefx, @tomkerkhove, @wcs1only, @willtsai, @wmeints, @workfigure, @XavierGeerinck, @yaron2 ## New in this release ### Dapr Runtime - **RESOLVED** Improve the reliability of partition table dissemination for actors [1914](https://github.com/dapr/dapr/issues/1914) - **ADDED** Configuration API [2988](https://github.com/dapr/dapr/issues/2988) - **FIXED** Http opa middleware crash [3216](https://github.com/dapr/dapr/issues/3216) - **RESOLVED** Pass ReadBufferSize argument to fasthttp server and grpc server [3319](https://github.com/dapr/dapr/issues/3319) - **ADDED** New parameters to add custom label at pod level [3435](https://github.com/dapr/dapr/issues/3435) - **FIXED** Dapr runtime sends InputBinding events to undesignated locations [3472](https://github.com/dapr/dapr/issues/3472) - **FIXED** Postgres support for actors [3533](https://github.com/dapr/dapr/issues/3533) - **RESOLVED** Add tolerations support to Helm Chart values. [3534](https://github.com/dapr/dapr/issues/3534) - **RESOLVED** Fixed typo in secret store init [3535](https://github.com/dapr/dapr/pull/3535) - **RESOLVED** Operator: hide debug log [3543](https://github.com/dapr/dapr/pull/3543) - **FIXED** Metadata headers not sent to server via dapr gRPC proxy [3561](https://github.com/dapr/dapr/issues/3561) - **FIXED** Put 'kubernetes-admin' in allow list [3571](https://github.com/dapr/dapr/issues/3571) - **ADDED** State Store Query API [3662](https://github.com/dapr/dapr/issues/3662) - **RESOLVED** Retriable pubsub error should include the topic in the logging [3675](https://github.com/dapr/dapr/issues/3675) - **RESOLVED** Make release notes script list authors while ignoring case [3684](https://github.com/dapr/dapr/pull/3684) - **RESOLVED** Support for PATCH request in service invocation [3696](https://github.com/dapr/dapr/issues/3696) - **RESOLVED** Create unit test for admission control [3708](https://github.com/dapr/dapr/issues/3708) - **FIXED** Fixed panic sending on a nil gRPC stream in the placement heartbeat loop [3727](https://github.com/dapr/dapr/issues/3727) - **ADDED** Support to override sidecar image per app in K8s via `dapr.io/sidecar-image` [3745](https://github.com/dapr/dapr/issues/3745) - **FIXED** Resource leak for grpc server connection [3752](https://github.com/dapr/dapr/pull/3752) - **FIXED** Crash backoff in dapr operator after upgrade to 1.4.3 (helm doesn't upgrade CRDs definitions) [3756](https://github.com/dapr/dapr/issues/3756) - **FIXED** gRPC inbound request metrics is empty [3768](https://github.com/dapr/dapr/pull/3768) - **RESOLVED** Default W3CString should not be passed down [3769](https://github.com/dapr/dapr/issues/3769) - **RESOLVED** Automatically set GOMAXPROCS to match Linux container CPU quota [3781](https://github.com/dapr/dapr/pull/3781) - **RESOLVED** Change API version of PodDisruptionBudget to policy/v1 when supported [3799](https://github.com/dapr/dapr/pull/3799) - **FIXED** Binding event panic [3804](https://github.com/dapr/dapr/pull/3804) - **ADDED** Support for Kafka version setting in Pubsub [3806](https://github.com/dapr/dapr/issues/3806) - **RESOLVED** Cleanly shutdown HTTP and gRPC servers when Dapr is shutdown [3810](https://github.com/dapr/dapr/issues/3810) - **ADDED** azure.cosmosdb.gremlinapi binding [3851](https://github.com/dapr/dapr/pull/3851) ### Dapr CLI - **ADDED** Support for unix domain socket [788](https://github.com/dapr/cli/pull/788) - **FIXED** use input param namespace when listing Pods [798](https://github.com/dapr/cli/pull/798) - **RESOLVED** Allow specifying of runtime-version via Env Var for `dapr init` [806](https://github.com/dapr/cli/pull/806) ### Components - **RESOLVED** Certify Azure SQL Server as stable in state store [949](https://github.com/dapr/components-contrib/issues/949) - **RESOLVED** Certify Apache Kafka as stable in pubsub [953](https://github.com/dapr/components-contrib/issues/953) [1241](https://github.com/dapr/components-contrib/pull/1241) - **RESOLVED** Certify Azure Key Vault w/ Managed Identity as stable in secret store [959](https://github.com/dapr/components-contrib/issues/959) - **ADDED** User agent header for Azure services [1014](https://github.com/dapr/components-contrib/issues/1014) - **ADDED** Azure Service Bus message metadata for Pubsub [1071](https://github.com/dapr/components-contrib/pull/1071) - **ADDED** Delay queue params for Pulsar [1107](https://github.com/dapr/components-contrib/pull/1107) - **FIXED** Postgres state store and add it to conformance tests [1117](https://github.com/dapr/components-contrib/issues/1117) - **ADDED** Mysql conformance test [1122](https://github.com/dapr/components-contrib/issues/1122) [1168](https://github.com/dapr/components-contrib/issues/1168) - **ADDED** Enhancements to CREATE operation GCP Storage Bucket binding + adds GET, DELETE and LIST [1125](https://github.com/dapr/components-contrib/issues/1125) - **FIXED** Azure Storage Queue resolving extra double quotation [1130](https://github.com/dapr/components-contrib/issues/1130) - **RESOLVED** Update Azure Service Bus Go SDK to latest [1141](https://github.com/dapr/components-contrib/issues/1141) - **RESOLVED** RabbitMQ binding uses text/plain as content type [1144](https://github.com/dapr/components-contrib/issues/1144) - **RESOLVED** Pass the message body in OPA middleware [1166](https://github.com/dapr/components-contrib/issues/1166) - **FIXED** RabbitMQ pubsub ignores 'durable' metadata [1181](https://github.com/dapr/components-contrib/issues/1181) - **FIXED** RabbitMQ pubsub does not handle channel closing properly [1187](https://github.com/dapr/components-contrib/issues/1187) - **FIXED** TLS with Kafka pubsub component [1188](https://github.com/dapr/components-contrib/issues/1188) - **UPDATED** paho.mqtt.golang to v1.3.5 [1192](https://github.com/dapr/components-contrib/pull/1192) - **RESOLVED** binding/mysql: optimize output error [1195](https://github.com/dapr/components-contrib/pull/1195) - **RESOLVED** Reconnect RabbitMQ on 'unexpected command received' error [1198](https://github.com/dapr/components-contrib/pull/1198) - **RESOLVED** add metadata to query request/response [1215](https://github.com/dapr/components-contrib/pull/1215) - **ADDED** Support message-id property from IoTHub device events in EventHubs [1221](https://github.com/dapr/components-contrib/pull/1221) - **RESOLVED** restrict sns/sqs pubsub subscription permissions [1230](https://github.com/dapr/components-contrib/issues/1230) - **FIXED** MQTT bindings can hang on Close() [1235](https://github.com/dapr/components-contrib/issues/1235) - **RESOLVED** Body of email empty in SMTP binding when invoking the binding over gRPC [1253](https://github.com/dapr/components-contrib/issues/1253) - **FIXED** Body content parsing for SMTP binding [1254](https://github.com/dapr/components-contrib/pull/1254) - **ADDED** Warning generated by SMTP binding when username and password are both set. [1255](https://github.com/dapr/components-contrib/issues/1255) - **ADDEDED** Option to override Kafka Broker version [1275](https://github.com/dapr/components-contrib/pull/1275) - **RESOLVED** Renamed package for CosmosDB.GramlinAPI binding component [1276](https://github.com/dapr/components-contrib/pull/1276) ### Dashboard - **ADDED** Configurable base URL [128](https://github.com/dapr/dashboard/issues/128) - **RESOLVED** Generate binaries for Darwin ARM64 (including M1 Macs) [174](https://github.com/dapr/dashboard/issues/174) ### .NET SDK - **RESOLVED** Support .net 6 preview 4 new Minimal APIs [695](https://github.com/dapr/dotnet-sdk/issues/695) - **RESOLVED** Response.BodyWriter on Net6.0 Required Call CompleteAsync()? [704](https://github.com/dapr/dotnet-sdk/issues/704) - **RESOLVED** Report error correctly for missing route key on [FromState] [706](https://github.com/dapr/dotnet-sdk/issues/706) - **ADDED** Support for gRPC proxying [741](https://github.com/dapr/dotnet-sdk/issues/741) - **RESOLVED** StateManager request don't have dapr-api-token header. [767](https://github.com/dapr/dotnet-sdk/issues/767) - **RESOLVED** Allow multiple topics to call the same endpoint [715](https://github.com/dapr/dotnet-sdk/issues/715) - **RESOLVED** IIS Express Problem - app returned http status code 400 from subscription endpoint [743](https://github.com/dapr/dotnet-sdk/issues/743) - **FIXED** Falsely logged default subscription message [760](https://github.com/dapr/dotnet-sdk/issues/760) ### Go SDK - **ADDED** Actor support [21](https://github.com/dapr/go-sdk/issues/21) - **RESOLVED** Add metadata support for PublishEvent API [164](https://github.com/dapr/go-sdk/issues/164) - **RESOLVED** Rationalize PublishEvent* APIs [174](https://github.com/dapr/go-sdk/issues/174) - **RESOLVED** By default, gRPC limits incoming messages to 4 MB and expose parameter to allow user to set the limit [189](https://github.com/dapr/go-sdk/issues/189) - **RESOLVED** Decode data_base64 cloudEvent for http service [201](https://github.com/dapr/go-sdk/pull/201) - **FIXED** HTTP service stop method doesn't do anything [208](https://github.com/dapr/go-sdk/issues/208) - **RESOLVED** Dapr client doesn't report failure when instantiated without a daprd connection [212](https://github.com/dapr/go-sdk/issues/212) - **RESOLVED** Make client init fail if server connection fails [213](https://github.com/dapr/go-sdk/pull/213) ### Python SDK - **RESOLVED** Data argument not sent to output binding when calling `DaprClient.invoke_binding` [274](https://github.com/dapr/python-sdk/issues/274) - **RESOLVED** DaprJSONEncoder bug [283](https://github.com/dapr/python-sdk/issues/283) ## Upgrading to Dapr 1.5.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.5.0 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.5.0) with: ```bash $ dapr --version CLI version: 1.5.0 Runtime version: 1.5.0 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.5.0 -k ``` To upgrade with high availability mode: ``` dapr upgrade --runtime-version 1.5.0 --enable-ha=true -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.5.0 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster See [how to deploy Dapr on a Kubernetes cluster](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/) for a complete guide to installing Dapr on Kubernetes You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.5.0 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.5.0 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.9.0 15s 2021-11-09 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.5.0 15s 2021-11-09 13:07.39 dapr-sentry dapr-system True Running 1 1.5.0 15s 2021-11-09 13:07.39 dapr-operator dapr-system True Running 1 1.5.0 15s 2021-11-09 13:07.39 dapr-placement dapr-system True Running 1 1.5.0 15s 2021-11-09 13:07.39 ``` After Dapr 1.5.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes None.
mikeee/dapr
docs/release_notes/v1.5.0.md
Markdown
mit
18,273
# Dapr 1.5.1 ## Summary This release addresses several issues with the following fixes: ### Runtime * Adds retry logic for TooManyRequests initialization error for CosmosDb State and Binding components (https://github.com/dapr/components-contrib/pull/1329) * Add scopes to Pub/Sub subscription conversion from `v1alpha1` to `v2alpha1` (https://github.com/dapr/dapr/issues/3914) * Upgrade `github.com/nhooyr/websocket` to > 1.8.6 with DoS vulnerability fixes (https://github.com/dapr/dapr/pull/3892) * Fixing race conditions in RabbitMQ Pub/Sub component (https://github.com/dapr/components-contrib/pull/1278) * Fixing crash on subscribe in Configuration API Preview (https://github.com/dapr/dapr/issues/3970) * Fix connection leak for gRPC connections in Dapr Operator (https://github.com/dapr/dapr/pull/3752) ### CLI - Fixing hanging shutdown calls when using Unix Domain Socket (https://github.com/dapr/dapr/issues/3894) ## Upgrading **Important**: If upgrading to this version using Helm instead of the Dapr CLI, you will need to update the Subscription CRD prior to performing the Helm upgrade. ```cli kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.4.4/charts/dapr/crds/subscription.yaml ``` ## Details ### Retry logic for TooManyRequests initialization error for CosmosDb State and Binding components & New production guidance #### Overview - New **strongly advised** production guidance for Azure Cosmos DB components have been established. - Dapr now retries connecting to Azure Cosmos DB during sidecar initialization. #### Problem Some sidecars with Azure Cosmos DB components (both Output Binding and State Store) fail to initialize, causing the sidecar to restart or hang (up to the `initTimeout` duration which is 5 seconds by default). Sidecar logs show a response from Cosmos DB with status `429 Request rate too large`. #### Root cause Every new connection to Azure Cosmos DB initially performs a large number of metadata requests ([Cosmos DB documentation](https://docs.microsoft.com/azure/cosmos-db/sql/troubleshoot-request-rate-too-large#rate-limiting-on-metadata-requests)). The metadata request rate limit for Azure Cosmos DB Accounts can easily be exceeded when multiple connections to the same Azure Cosmos DB account (even distinct datatabases within the same account) are made simultaneously. If the attempt to initialize the component and connect to Azure Cosmos DB fails due to this rate limit Dapr did not previously retry the connection until the sidecar restarts. #### Solution The following **production best practices** must be applied to minimize the likelihood this issue will occur: - Ensure applications and sidecars only load the Azure Cosmos DB component when it is required for that application, which avoid unnecessary database connections from other microservices or applications. This can be done by [scoping your components to specific applications](https://docs.dapr.io/operations/components/component-scopes/#application-access-to-components-with-scopes). - Choose deployment strategies that sequentially deploy or start all applications to minimize bursts in new connections to your Azure Cosmos DB accounts. - Avoid reusing the same Azure Cosmos DB account for unrelated databases or systems (even outside of Dapr). Distinct Azure Cosmos DB accounts have distinct rate limits. Additionally, **Dapr now retries establishing the initial Azure Cosmos DB connection for up to 5 minutes, when the component is configured by setting the `initTimeout` value**. The default component initialization timeout is 5 seconds. Please update your [component definitions](https://docs.dapr.io/operations/components/component-schema/) specifying a greater `initTimeout` duration value for the component to attempt reconnections. Note that this will delay the readiness of your sidecar. In Kubernetes you may need to [adjust your liveness and readiness probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/). ### Add scopes to Pub/Sub subscription conversion from `v1alpha1` to `v2alpha1` #### Overview In order to add the Pub/Sub routing preview feature, the subscriptions CRD required a new version `v2alpha1`. This requires the Dapr operator to provide a conversion webhook that converts `v1alpha1` to `v2alpha1`. #### Problem Subscriptions created as `v1alpha1` would drop the scopes when converted by the operator to `v2alpha1`. #### Root cause The conversion function was not copying the `Scopes` field from `v1apha1` to `v2alpha1`. #### Solution The conversion function was updated to include copying the `Scopes` field. ### Upgrade `github.com/nhooyr/websocket` to > 1.8.6 with DoS vulnerability fixes #### Overview From [https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNHOOYRWEBSOCKET-1244800](https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNHOOYRWEBSOCKET-1244800): [github.com/nhooyr/websocket](https://github.com/nhooyr/websocket) is a minimal and idiomatic WebSocket library for Go. Affected versions of this package are vulnerable to Denial of Service (DoS). A double channel close panic is possible if a peer sent back multiple pongs for every ping. If the second pong arrived before the ping goroutine deleted its channel from the map, the channel would be closed twice and a panic would occur. #### Root cause Dapr was using v1.8.6 of the package. #### Solution The package was upgrade to v1.8.7. ### Fixing race conditions in RabbitMQ Pub/Sub component #### Overview The implementation of RabbitMQ Pub/Sub component was not robust, especially when an application used multiple publishers/subscribers. #### Root cause Concurrent calls to the underlying AMQP layer caused race condition and failures in publishing and subscribing #### Solution This hotfix extends thread synchronization to span across entire "pubish" and "subscribe" operations. This eliminates race conditions between publishers and subscribers during access to the underlying AMQP layer. In addition this hotfix adds a comprehensive certification test for RabbitMQ Pub/Sub component. A successful completion of the test indicates that the component has reached the **stable** state. ### Fixing crash on subscribe in Configuration API Preview #### Overview The `SubscribeConfigurationAlpha1` method is used to subscribe to configuration updates. Invoking the `SubscribeConfigurationAlpha1` method causes Dapr to crash. #### Root cause The implementation had an uninitialized map which would cause a nil-memory panic. #### Solution The fix initializes the map properly and allows apps to be notified about changes to a configuration item. ### Fixing connection leak for gRPC connection to Dapr Operator #### Overview When a large number of pods are destroyed frequently, the server side needs to actively detect whether the connection is available to prevent the leakage of operator channel resources. Error message can look like: ```txt time="..." level=warning msg="error updating sidecar with component ...: rpc error: code = Unavailable desc = transport is closing" instance=dapr-operator-abc-xyz scope=dapr.operator.api type=log ver=unknown ``` #### Root cause Dapr operator does not close stale connections. #### Solution Dapr operator actively detects whether grpc connection to sidecar is active. ### [CLI] Fixing hanging shutdown calls when using Unix Domain Socket #### Overview When using Unix Domain Sockets the Shutdown call hangs requiring the app to be manually terminated. #### Root Cause The library used in the implementation of this feature did not automatically close idle HTTP connections. #### Solution Added shutdown logic to explicitly close idle HTTP connections. ## Related releases Applications using the `1.4.x` release of Dapr should consider taking the related `1.4.4` release (or higher) that addresses a similar set of issues.
mikeee/dapr
docs/release_notes/v1.5.1.md
Markdown
mit
7,922
# Dapr 1.5.2 ## Summary This hotfix release only updates the MongoDB State Store component to address a data serialization problem. An upgrade to this release is only recommended for users of this component. ### Runtime * MongoDB State Store Component: Fixes an issue where actor reminders are broken when using the MongoDB State Store component as actor state store https://github.com/dapr/components-contrib/issues/1355. * MongoDB State Store Component: Fixes an issue where array values could not be retrieved due to a serialization error. * MongoDB State Store Component: Fixes an issue where MongoDB internal data types are returned in the State Store API response. ## Upgrading from versions before v1.5.0 **Important**: If upgrading to this version using Helm instead of the Dapr CLI, you will need to update the Subscription CRD prior to performing the Helm upgrade. ```cli kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/v1.4.4/charts/dapr/crds/subscription.yaml ``` ## Details ### MongoDB Data serialization Problem #### Problem - When using MongoDB as actor state store actor reminders can no longer be loaded or written. - Array values (e.g. `[{'item1':'value1'},{'item2':'value2'}]`) can not be retrieved via the State Store API. - The JSON response includes unexpected artifacts from the internal BSON representation. For example `{"state":"OR","propertyType":"apartment","id":{"$numberDouble":"1003.1"},"city":"Portland"}` when `{"state":"OR","propertyType":"apartment","id":1003.1,"city":"Portland"}` is expected instead. #### Root cause With the introduction of the State Store Query API preview feature in release 1.5.1 data is no longer stored as a string encoded value, but instead as the MongoDB native BSON data types. Not all possible data types were being serialized correctly upon retrieval via the State Store API. Additionally, the internal BSON response was not correctly converted to JSON, thereby including BSON specific data type information in the final JSON representation. #### Solution These issues were resolved with an update to the MongoDB component data retrieval serialization to properly convert from MongoDB BSON to JSON representation, also adding a special serialization step for array values at the top level of the document. ## Related releases Release `1.6.1` also addresses these issues.
mikeee/dapr
docs/release_notes/v1.5.2.md
Markdown
mit
2,370
# Dapr 1.5.3 ### Fixes incorrect actor state-store configuration behavior #### Problem All Actor APIs return errors without an actor state store component being provided. This is the correct behavior for services that register actors, as they require state storage, but clients that invoke actors should operate with or without an actor state store. #### Root cause The code that initializes the Actor API raises an error when there is no actor state storage component available, regardless of whether or not the service registers actors. #### Solution This fix changes the actor runtime initialization logic such that, when there is no actor state store available, the API will initialize correctly as long as the service does not register actors. As a result, the Actor API will be available to services acting only as clients (i.e invoking actors) with or without an actor state store component; the Actor API will continue to be unavailable in those services that register actors without providing an actor state store component.
mikeee/dapr
docs/release_notes/v1.5.3.md
Markdown
mit
1,043
# Dapr 1.6.0 We're happy to announce the release of Dapr 1.6.0! We would like to extend our thanks to all the new and existing contributors who helped make this release happen. ## Highlights ### Component improvements This release focused on preparing the next set of components to be ready for `stable` designation per community feedback. This means certification tests are added and quality issues are addressed. Read [component certification lifecycle](https://docs.dapr.io/operations/components/certification-lifecycle/#certification-levels) for details. The following components are now officially designated `beta` status, several of which are candidates to become `stable` soon in an upcoming release: - [MQTT pub/sub](https://v1-6.docs.dapr.io/reference/components-reference/supported-pubsub/setup-mqtt/) (`stable` candidate) - [RabbitMQ pub/sub](https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-rabbitmq/) (`stable` candidate) - [Azure Blob Storage binding](https://docs.dapr.io/reference/components-reference/supported-bindings/blobstorage/) (`stable` candidate) - [Azure CosmosDB binding](https://docs.dapr.io/reference/components-reference/supported-bindings/cosmosdb/) (`stable` candidate) - [Azure Service Bus Queues binding](https://docs.dapr.io/reference/components-reference/supported-bindings/servicebusqueues/) (`stable` candidate) - [Azure Event Hubs pub/sub](https://v1-6.docs.dapr.io/reference/components-reference/supported-pubsub/setup-azure-eventhubs/) - [AWS SNS/SQS pub/sub](https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-aws-snssqs/) New capabilities were added to existing components: - Kafka OAuth 2.0 support for [pub/sub](https://v1-6.docs.dapr.io/reference/components-reference/supported-pubsub/setup-apache-kafka/#authentication) & [binding](https://v1-6.docs.dapr.io/reference/components-reference/supported-bindings/kafka/). - [Azure Event Hubs pub/sub](https://v1-6.docs.dapr.io/reference/components-reference/supported-pubsub/setup-azure-eventhubs/) improvements for topics and partitions. - Added numerous new capabilities to [Apache Pulsar pub/sub](https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-pulsar/) including: - Tenant namespace support. - Backoff policies. - Token authentication support. - Ability to disable batching. New components added in this release: - Added [Alibaba Cloud OOS Parameter Store ](https://v1-6.docs.dapr.io/reference/components-reference/supported-secret-stores/alicloud-oos-parameter-store/) - secret store - Added [Oracle Cloud Infrastructure (OCI) object storage](https://v1-6.docs.dapr.io/reference/components-reference/supported-state-stores/setup-oci-objectstorage/) - state store Components removed from release: - The [Cloudstate store](https://v1-4.docs.dapr.io/reference/components-reference/supported-state-stores/setup-cloudstate/) alpha component is no longer included. ### SDK Improvements - [Application Configuration API (Alpha)](https://docs.dapr.io/developing-applications/building-blocks/configuration/configuration-api-overview/) now available for Python, Java and .NET. - [Query and Filtering API (Alpha)](https://v1-6.docs.dapr.io/developing-applications/building-blocks/state-management/state-management-overview/#query-api) feature now available for Python, Javascript, Go and .NET. - [Pub/sub routing](https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-route-messages/) is now available in the Go SDK. ### Try it If you're new to Dapr, visit the [getting started](https://docs.dapr.io/getting-started/) page and familiarize yourself with Dapr. Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the [Concepts](https://docs.dapr.io/concepts/) and the [Developing applications](https://docs.dapr.io/developing-applications/). > **Note: This release contains a few [breaking changes](#breaking-changes).** See [this](#upgrading-to-dapr-1.6.0) section on upgrading Dapr to version 1.6.0. ## Details - new in this release ### Dapr Runtime - **ADDED** API for state store filtering and querying [1339](https://github.com/dapr/dapr/issues/1339) - **ADDED** Support Actor reminder renaming [3273](https://github.com/dapr/dapr/issues/3273) - **FIXED** Handle the error when creating http middleware other than ignore it [3657](https://github.com/dapr/dapr/pull/3657) - **RESOLVED** cosmosdb statestore partitioning broken under load [3716](https://github.com/dapr/dapr/issues/3716) - **FIXED** Multiple subscriber for a topic in Pub/Sub component with Event hub is not working as expected [3753](https://github.com/dapr/dapr/issues/3753) - **RESOLVED** Setting global.ha.enabled: true produces deployment yaml with 2 affinity elements [3788](https://github.com/dapr/dapr/issues/3788) - **FIXED** Cross namespace grpc proxy call in kubernetes fails [3807](https://github.com/dapr/dapr/issues/3807) - **FIXED** Retry /dapr/subscribe in case of failure or wait for app to get into Ready state [3839](https://github.com/dapr/dapr/issues/3839) - **FIXED** fix: add missing yaml tag for mtls spec config [3864](https://github.com/dapr/dapr/pull/3864) - **FIXED** optimize/operator: the server side actively detects whether grpc connection is available [3890](https://github.com/dapr/dapr/pull/3890) - **FIXED** Fix log output for "daprd --version" call [3895](https://github.com/dapr/dapr/issues/3895) - **FIXED** Remove Cloudstate state store [3897](https://github.com/dapr/dapr/pull/3897) - **FIXED** Bug in runtime. daprd does not respond to `shutdown` API command down in a timely fashion. [3930](https://github.com/dapr/dapr/issues/3930) - **FIXED** Operator logs - Version always shows "ver: unknown" [3948](https://github.com/dapr/dapr/issues/3948) - **FIXED** Operator unable to see secrets across namespaces when processing component updates - K8s [3949](https://github.com/dapr/dapr/issues/3949) - **FIXED** Add namespace check for component updates [3952](https://github.com/dapr/dapr/pull/3952) - **FIXED** daprd crashes if gRPC request arrives before runtime init completes [3982](https://github.com/dapr/dapr/issues/3982) - **ADDED** Make the grace period configurable [3983](https://github.com/dapr/dapr/issues/3983) - **FIXED** Reminders and Timer ISO-8601 off-by-one error [3995](https://github.com/dapr/dapr/issues/3995) - **ADDED** Add DCO requirements and updated code of conduct [4018](https://github.com/dapr/dapr/pull/4018) - **FIXED** logging of conflict when loading actor state store and fixes to actor reminders partitioning. [4021](https://github.com/dapr/dapr/pull/4021) - **FIXED** validation for AppID length. [4023](https://github.com/dapr/dapr/issues/4023) - **FIXED** Clarify message about app channel not initialized [4025](https://github.com/dapr/dapr/issues/4025) - **FIXED** bugfix: QueryStateAlpha1 return data nil [4039](https://github.com/dapr/dapr/pull/4039) - **ADDED** Charts - Supports to customize livenessProbe and readinessProbe [4049](https://github.com/dapr/dapr/pull/4049) - **FIXED** Error in component field causing daprd panic [4054](https://github.com/dapr/dapr/issues/4054) - **ADDED** Support stateful resource with corresponding service [4061](https://github.com/dapr/dapr/issues/4061) - **ADDED** Added hostNetwork setting to sidecar injector chart [4074](https://github.com/dapr/dapr/issues/4074) - **FIXED** Fixed create timer duetime [4075](https://github.com/dapr/dapr/pull/4075) - **FIXED** compare field causing daprd panic [4083](https://github.com/dapr/dapr/issues/4083) - **ADDED** Kill sidecar on init if duplicate actor state store. [4087](https://github.com/dapr/dapr/pull/4087) - **ADDED** Incorporate OCI StorageService state store component in daprd [4095](https://github.com/dapr/dapr/issues/4095) - **FIXED** Updated paho.mqtt.golang dependency to fix auto ack issue in MQTT v3 library [4111](https://github.com/dapr/dapr/pull/4111) - **FIXED** state store: client-side encryption and query api are mutually excluded [4126](https://github.com/dapr/dapr/issues/4126) - **ADDED** add alibaba cloud oos parameter store support [4142](https://github.com/dapr/dapr/pull/4142) - **REMOVED** Remove Cloudstate state store [1297](https://github.com/dapr/dapr/pull/3897) ### Dapr CLI - **FIXED** `dapr status -k` does not work on Windows with KUBECONFIG set [779](https://github.com/dapr/cli/issues/779) - **FIXED** Pass missing environment variables in CLI [860](https://github.com/dapr/cli/issues/860) - **FIXED** Detect publish events with CloudEvent envelopes [838](https://github.com/dapr/cli/issues/838) ### Components - **FIXED** incorrect queue to exchange binding [826](https://github.com/dapr/components-contrib/issues/826) - **ADDED** New implementation of Azure EventHub PubSub component [951](https://github.com/dapr/components-contrib/issues/951) - **ADDED** MQTT pubsub component as `stable` candidate [952](https://github.com/dapr/components-contrib/issues/952) - **ADDED** Azure Blob Storage output binding as `stable` candidate [956](https://github.com/dapr/components-contrib/issues/956) - **ADDED** Azure Service Bus Queues binding as `stable` candidate [957](https://github.com/dapr/components-contrib/issues/957) - **ADDED** Azure CosmosDB output binding as `stable` candidate [958](https://github.com/dapr/components-contrib/issues/958) - **FIXED** Azure Event Hub pubsub component properly handles topics. [964](https://github.com/dapr/components-contrib/issues/964) - **ADDED** Support OAuth2 authentication with Kafka for pub/sub binding [1084](https://github.com/dapr/components-contrib/issues/1084) - **ADDED** feature(middleware/routerchecker): avoid sending dirty data to opentelemetry system and logic servers. [1155](https://github.com/dapr/components-contrib/pull/1155) - **FIXED** Upgrade rocketmq for pubsub [1169](https://github.com/dapr/components-contrib/pull/1169) - **ADDED** common auth for Service Bus Pubsub/Binding [1201](https://github.com/dapr/components-contrib/pull/1201) - **ADDED** Support for partition key while publishing to Azure Event Hubs [1225](https://github.com/dapr/components-contrib/issues/1225) - **FIXED** Kinesis client library needs update [1231](https://github.com/dapr/components-contrib/issues/1231) - **FIXED** MQTT messages are always acked even if handler returns an error [1234](https://github.com/dapr/components-contrib/issues/1234) - **FIXED** GCP pub/sub subscription stops working after error [1250](https://github.com/dapr/components-contrib/issues/1250) - **FIXED** Route of subscription API does not work on pubsub.pulsar [1263](https://github.com/dapr/components-contrib/issues/1263) - **FIXED** MQTT output bindings sporadic failure on Create operation. [1282](https://github.com/dapr/components-contrib/issues/1282) - **REMOVED** Remove Cloudstate state store [1303](https://github.com/dapr/components-contrib/pull/1303) - **ADDED** PubSub AWS SNS/SQS - Disable Entity Management feature [1313](https://github.com/dapr/components-contrib/issues/1313) - **FIXED** Redis configuration API subscription [1315](https://github.com/dapr/components-contrib/pull/1315) - **ADDED** Add S3ForcePathStyle metadata key to S3 binding [1322](https://github.com/dapr/components-contrib/issues/1322) - **FIXED** Update azure-sdk-for-go to v59.3.0 for EventGrid [1325](https://github.com/dapr/components-contrib/pull/1325) - **FIXED** AWS SQS/SNS Wrong queue access policy (broken in last version (1.5.0)) [1335](https://github.com/dapr/components-contrib/issues/1335) - **FIXED** Panic on azure blob storage state store [1351](https://github.com/dapr/components-contrib/issues/1351) - **FIXED** pub/sub rocketmq:upgrade with v2 [1383](https://github.com/dapr/components-contrib/pull/1383) - **FIXED** Pub/Sub AWS SNS SQS - disableEntityManagement - SQS policy should not be created [1385](https://github.com/dapr/components-contrib/issues/1385) - **FIXED** Bind variables cannot be used for table names in cassandra state component [1387](https://github.com/dapr/components-contrib/issues/1387) - **FIXED** upgrade dgrijalva/jwt-go dependency [1391](https://github.com/dapr/components-contrib/pull/1391) - **ADDED** Add DCO requirements and updated code of conduct [1395](https://github.com/dapr/components-contrib/pull/1395) - **FIXED** kafka input binding infinite loop when no topics set [1399](https://github.com/dapr/components-contrib/issues/1399) - **FIXED** bindings.cron Input & Output communicates through a signal queue [1405](https://github.com/dapr/components-contrib/pull/1405) - **FIXED** update license to Apache v2.0 [1406](https://github.com/dapr/components-contrib/pull/1406) - **FIXED** hotfix: bindings.cron Input & Output communicates through a signal queue [1418](https://github.com/dapr/components-contrib/pull/1418) - **FIXED** Http StatusCode always 200 in middleware HTTP component [1425](https://github.com/dapr/components-contrib/issues/1425) - **ADDED** Pubsub AWS SNS/SQS - operations timeouts, retrying, backoffs [1426](https://github.com/dapr/components-contrib/issues/1426) ### .NET SDK - **FIXED** Actor state is reset if execution ends in exception. [762](https://github.com/dapr/dotnet-sdk/issues/762) - **ADDED** Support for statestore query API [777](https://github.com/dapr/dotnet-sdk/issues/777) - **ADDED** Support for Configuration API [787](https://github.com/dapr/dotnet-sdk/issues/787) ### Go SDK - **ADDED** add Unix domain socket support [206](https://github.com/dapr/go-sdk/pull/206) - **ADDED** add support for statestore query API [215](https://github.com/dapr/go-sdk/issues/215) - **ADDED** add support for TTL and time/interval formats in actor timers/reminders [222](https://github.com/dapr/go-sdk/issues/222) - **ADDED** Add Pub/Sub routing support [226](https://github.com/dapr/go-sdk/issues/226) - **FIXED** Inconsistent TopicEvent Data value between HTTP and gRPC service implementations. [228](https://github.com/dapr/go-sdk/issues/228) - **FIXED** Fix error saving actor state for readonly changes [233](https://github.com/dapr/go-sdk/pull/233) - **FIXED** bugfix/apptoken: missing app token verification codes [236](https://github.com/dapr/go-sdk/pull/236) ### Java SDK - **RESOLVED** Migrated out of JCenter as a Maven repository. [608](https://github.com/dapr/java-sdk/issues/608) - **FIXED** Spring security context added as additional http header to http request via service invocation [638](https://github.com/dapr/java-sdk/issues/638) - **ADDED** Support for Configuration API [659](https://github.com/dapr/java-sdk/issues/659) - **RESOLVED** Update copyright information to Apache 2.0 [665](https://github.com/dapr/java-sdk/issues/665) - **ADDED** Add DCO requirements and updated code of conduct [669](https://github.com/dapr/java-sdk/pull/669) ### Python SDK - **ADDED** support for statestore query API [296](https://github.com/dapr/python-sdk/issues/296) - **ADDED** support for Get Configuration API [308](https://github.com/dapr/python-sdk/issues/308) - **ADDED** Deprecation notice for gRPC metadata API field [324](https://github.com/dapr/python-sdk/issues/324) - **ADDED** Microseconds and milliseconds to timedelta conversion [327](https://github.com/dapr/python-sdk/pull/327) ### JavaScript SDK - **FIXED** Actors: Should not allow state manipulation outside Actor Runtime [136](https://github.com/dapr/js-sdk/issues/136) - **ADDED** Feature: Query State API [139](https://github.com/dapr/js-sdk/issues/139) ## Acknowledgements Thanks to everyone who made this release possible! @1046102779, @abelperezok, @amimimor, @amulyavarote, @andrey-dubnik, @anhldbk, @artursouza, @berndverst, @ceshihao, @ChethanUK, @chinzhiweiblank, @CodeMonkeyLeet, @CrazyHZM, @cshi0, @daixiang0, @dmitsh, @Gehhilfe, @greenie-msft, @guyzyl, @halspang, @haoxins, @jigargandhi, @jjcollinge, @Juneezee, @LaurenceLiZhixin, @LKI, @ls-2018, @lucasjellema, @marviniter, @mbimbij, @msfussell, @mthmulders, @mukundansundar, @paulyuk, @pkedy, @pravinpushkar, @rabollin, @rainfd, @robsondepaula, @shivamkm07, @sthussey, @Syuparn, @Taction, @tanvigour, @taojwmware, @theonefx, @timonwong, @uptutu, @victorp13, @wcs1only, @willtsai, @withinboredom, @x-shadow-man, @XavierGeerinck, @xj524598, @yaron2, @yordan-pavlov, @zach030, @zcong1993 ## Upgrading to Dapr 1.6.0 To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right? ### Local Machine / Self-hosted Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo: ```bash dapr uninstall --all ``` For RC releases like this, download the latest and greatest release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. Once you have installed the CLI, run: ```bash dapr init --runtime-version=1.6.0 ``` Wait for the update to finish, ensure you are using the latest version of Dapr(1.6.0) with: ```bash $ dapr --version CLI version: 1.6.0 Runtime version: 1.6.0 ``` ### Kubernetes #### Upgrading from previous version You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI. ##### Upgrade using the CLI Download the latest RC release from [here](https://github.com/dapr/cli/releases) and put the `dapr` binary in your PATH. To upgrade Dapr, run: ``` dapr upgrade --runtime-version 1.6.0 -k ``` To upgrade with high availability mode: ``` dapr upgrade --runtime-version 1.6.0 --enable-ha=true -k ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* ##### Upgrade using Helm To upgrade Dapr using Helm, run: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update helm upgrade dapr dapr/dapr --version 1.6.0 --namespace=dapr-system --wait ``` Wait until the operation is finished and check your status with `dapr status -k`. All done! *Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar* #### Starting a fresh install on a cluster Please see [how to deploy Dapr on a Kubernetes cluster](https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/) for a complete guide to installing Dapr on Kubernetes You can use Helm 3 to install Dapr: ``` helm repo add dapr https://dapr.github.io/helm-charts/ helm repo update kubectl create namespace dapr-system helm install dapr dapr/dapr --version 1.6.0 --namespace dapr-system --wait ``` Alternatively, you can use the latest version of CLI: ``` dapr init --runtime-version=1.6.0 -k ``` ##### Post installation Verify the control plane pods are running and are healthy: ``` $ dapr status -k NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED dapr-dashboard dapr-system True Running 1 0.9.0 15s 2022-01-18 13:07.39 dapr-sidecar-injector dapr-system True Running 1 1.6.0 15s 2022-01-18 13:07.39 dapr-sentry dapr-system True Running 1 1.6.0 15s 2022-01-18 13:07.39 dapr-operator dapr-system True Running 1 1.6.0 15s 2022-01-18 13:07.39 dapr-placement dapr-system True Running 1 1.6.0 15s 2022-01-18 13:07.39 ``` After Dapr 1.6.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with: ``` kubectl rollout restart deploy/<deployment-name> ``` ## Breaking Changes & Deprecations ### Dapr Runtime - **REMOVED** Remove Cloudstate state store [1303](https://github.com/dapr/components-contrib/pull/1303) ### Python SDK - Deprecation notice for gRPC metadata API field [324](https://github.com/dapr/python-sdk/issues/324) ### .NET SDK - **FIXED** Actor state is now reset if execution ends in an exception.
mikeee/dapr
docs/release_notes/v1.6.0.md
Markdown
mit
20,167
# Dapr 1.6.1 ## Summary This hotfix release only updates the MongoDB State Store component to address a data serialization problem. An upgrade to this release is only recommended for users of this component. ### Runtime * MongoDB State Store Component: Fixes an issue where actor reminders are broken when using the MongoDB State Store component as actor state store https://github.com/dapr/components-contrib/issues/1355. * MongoDB State Store Component: Fixes an issue where array values could not be retrieved due to a serialization error. * MongoDB State Store Component: Fixes an issue where MongoDB internal data types are returned in the State Store API response. ## Details ### MongoDB Data serialization Problem #### Problem - When using MongoDB as actor state store actor reminders can no longer be loaded or written. - Array values (e.g. `[{'item1':'value1'},{'item2':'value2'}]`) can not be retrieved via the State Store API. - The JSON response includes unexpected artifacts from the internal BSON representation. For example `{"state":"OR","propertyType":"apartment","id":{"$numberDouble":"1003.1"},"city":"Portland"}` when `{"state":"OR","propertyType":"apartment","id":1003.1,"city":"Portland"}` is expected instead. #### Root cause With the introduction of the State Store Query API preview feature in release 1.5.1 data is no longer stored as a string encoded value, but instead as the MongoDB native BSON data types. Not all possible data types were being serialized correctly upon retrieval via the State Store API. Additionally, the internal BSON response was not correctly converted to JSON, thereby including BSON specific data type information in the final JSON representation. #### Solution These issues were resolved with an update to the MongoDB component data retrieval serialization to properly convert from MongoDB BSON to JSON representation, also adding a special serialization step for array values at the top level of the document.
mikeee/dapr
docs/release_notes/v1.6.1.md
Markdown
mit
1,977
# Dapr 1.6.3 ### Fixes incorrect actor state-store configuration behavior #### Problem All Actor APIs return errors without an actor state store component being provided. This is the correct behavior for services that register actors, as they require state storage, but clients that invoke actors should operate with or without an actor state store. #### Root cause The code that initializes the Actor API raises an error when there is no actor state storage component available, regardless of whether or not the service registers actors. #### Solution This fix changes the actor runtime initialization logic such that, when there is no actor state store available, the API will initialize correctly as long as the service does not register actors. As a result, the Actor API will be available to services acting only as clients (i.e invoking actors) with or without an actor state store component; the Actor API will continue to be unavailable in those services that register actors without providing an actor state store component.
mikeee/dapr
docs/release_notes/v1.6.3.md
Markdown
mit
1,043
# Dapr 1.7.1 ## Summary This hotfix release addresses a change made in how actor timers are validated during creation. Specifically, `DueTime` can be set to 0 to have a reminder fire immediately. Additionally, this hotfix addresses an issue in the Apache Pulsar pubsub component preventing the use of namespaces when publishing to topics. Lastly, there is a fix to avoid a nil dereference crash on the sidecar when using API logging feature in gRPC API. ### Runtime * An Actor Timer with a `DueTime` of `0` will now pass validation allowing timers to fire immediately. ### Components * The correct value the Pulsar topic is now specified on publishing, allowing the use of namespaces. ## Details ### Actor Timer Creation #### Problem Registering an Actor Timer with a `DueTime` of `0` would fail and the Timer would not be started. #### Root cause A change introduced in release 1.6 caused Timers to be invalidated if their `DueTime` was in the past. However, when the `DueTime` is 0, signifying an immediate fire, it is set in Dapr to the current time. After it was set to the current time, it would later be compared to the current time again. As these time comparisons did not share the value for current time, it is almost guaranteed that the `DueTime` would now appear to be in the past. #### Solution Revert the code to pre-1.6 behavior which allows `DueTimes` to be in the past as that still equates to firing immediately. ### Panic: nil pointer dereference in API Logging #### Problem When enabling the API logging preview feature, a nil reference can occur and crash the sidecar. #### Root cause Logic for API logging in gRPC assumed gRPC `info` object was always not nil, however it has been reported that it could be nil when invoking an actor as per issue [#4527](https://github.com/dapr/dapr/issues/4527). #### Solution Add a nil check for API logging preview feature in gRPC API.
mikeee/dapr
docs/release_notes/v1.7.1.md
Markdown
mit
1,913
# Dapr 1.7.2 ### Fixes panic due to nil pointer dereference in API Logging #### Problem When enabling the API logging preview feature, a nil reference can occur and crash the sidecar. In addition, the logged API for gRPC is being fixed not to include a memory address but just the method's name. #### Root cause Logic for API logging in gRPC did not initialize logger object for internal service to service communication for Dapr sidecar.See [#4544](https://github.com/dapr/dapr/issues/4544). #### Solution Skip logging for internal gRPC invocation and print method name only for other gRPC API calls.
mikeee/dapr
docs/release_notes/v1.7.2.md
Markdown
mit
609
# Dapr 1.7.3 ### Fixes incorrect actor state-store configuration behavior #### Problem All Actor APIs return errors without an actor state store component being provided. This is the correct behavior for services that register actors, as they require state storage, but clients that invoke actors should operate with or without an actor state store. #### Root cause The code that initializes the Actor API raises an error when there is no actor state storage component available, regardless of whether or not the service registers actors. #### Solution This fix changes the actor runtime initialization logic such that, when there is no actor state store available, the API will initialize correctly as long as the service does not register actors. As a result, the Actor API will be available to services acting only as clients (i.e invoking actors) with or without an actor state store component; the Actor API will continue to be unavailable in those services that register actors without providing an actor state store component.
mikeee/dapr
docs/release_notes/v1.7.3.md
Markdown
mit
1,043
# Dapr 1.8.1 ### Fixes pubsub.mqtt component unable to subscribe to topics with wildcards #### Problem Dapr 1.8.0 introduced a regression in the MQTT PubSub component (`pubsub.mqtt`). When subscribing to a topic using wildcards (such as `orders/#`) or through a shared subscription, no messages would be delivered. ### Impact This issue impacts Dapr users that receive messages through the `pubsub.mqtt` component and want to subscribe to topics using wildcards or through shared subscriptions. #### Root cause The root cause can be found in changes in the runtime (daprd), which in the past used to re-route incoming PubSub messages to the applications' handlers. With multiple changes that started in the Dapr 1.7 branch and were then completed in 1.8.0, routing of messages to the correct handler is now solely a responsibility of each component. However, the MQTT PubSub component did not implement a logic to route messages when applications subscribed using a wildcard (`#` and/or `+`) or through a shared subscription (`$share/<groupname>/<topic>`). #### Solution The `pubsub.mqtt` component has been updated to include a new routing logic that accounts for wildcards (`#` and/or `+`) and shared subscriptions (`$share/<groupname>/<topic>`). Additionally, certification and unit tests have been created to prevent future regressions.
mikeee/dapr
docs/release_notes/v1.8.1.md
Markdown
mit
1,350
# Dapr 1.8.2 ### Fixes ineffective resiliency policies and panics in service and actor invocation #### Problem Dapr 1.8.0 introduced a regression in the direct messaging package, used internally within Dapr to invoke other services and actors, which adversely impacted the operation of resiliency and could, in some situations, cause `daprd` to panic. ### Impact This issue impacts all users that have enabled the `Resiliency` preview feature in Dapr 1.8.0–1.8.1, even when no resiliency policies are configured. #### Root cause Because of a mistaken import statement, an old version of a dependency was used in two occurrences, including in the direct messaging package. In the most critical scenario, when service or actor invocation was used and Dapr had the `Resiliency` feature enabled (even if no resiliency policies were configured), errors that should have been permanent (ie. that should not have caused Dapr to retry the operation) were instead considered transient. This had multiple consequences including having Dapr retry operations that should not have been retried and, in some occurrences, could have caused `daprd` to panic. #### Solution The incorrect import statements have been fixed, so Dapr now behaves as expected (and does not panic) when it encounters a non-retriable error in service and actor invocation.
mikeee/dapr
docs/release_notes/v1.8.2.md
Markdown
mit
1,345
# Dapr 1.8.3 ### Fixes panic when invoking a non-existent service with Resiliency enabled #### Problem Dapr 1.8.0 introduced an error that causes a panic in the runtime when attempting to invoke a service that does not exist (and with dealing with a few other error cases) and the `Resiliency` preview feature is enabled–even if no resiliency policies are configured. ### Impact This issue impacts all users that have enabled the `Resiliency` preview feature in Dapr 1.8.0–1.8.2, even when no resiliency policies are configured. #### Root cause Due to incorrect handling of errors in the direct messaging package, certain types of errors were discarded and the affected method returned a non-error response, eventually causing receivers to panic. #### Solution We have fixed the handling of the errors in the direct messaging package when `Resiliency` is enabled, resolving the issue that could have caused a panic in case of errors.
mikeee/dapr
docs/release_notes/v1.8.3.md
Markdown
mit
947
# Dapr 1.9.1 ### Fixes mDNS name resolver component not working on systems with IPv6 disabled #### Problem Users running Dapr in self-hosted mode and relying on the mDNS name resolver (the default when not running in Kubernetes) would encounter errors trying to perform service invocation if the system had IPv6 disabled. ### Impact This issue impacts users who are: - running Dapr in self-hosted mode, *and* - using the default mDNS name resolver, *and* - have disabled IPv6 on the operating system #### Root cause When initializing a zeroconf (mDNS) client, Dapr required using both IPv4 and IPv6, and failed if either one of the two protocols was disabled on the host system. #### Solution We have improved error handling so Dapr gracefully falls back to using IPv4 if binding to IPv6 fails.
mikeee/dapr
docs/release_notes/v1.9.1.md
Markdown
mit
805
# Dapr 1.9.2 ### Fixes panics when using pubsub subscriptions or input bindings via gRPC with tracing disabled #### Problem Users who disabled tracing and are subscribing to Dapr pubsub components via gRPC or using input bindings via gRPC will encounter panics when an event is attempted to be delivered. ### Impact This issue impacts users who: - Disabled tracing by setting samplingRate to "0" in Dapr's configuration (by default, the value is "1") - Use input bindings via gRPC and/or subscribe to pubsub components via gRPC #### Root cause Dapr 1.9.0 added support for tracing with OpenTelemetry, which uses a new SDK version. During the upgrade, an error was introduced causing a panic when tracing was disabled, due to a missing "nil-check". #### Solution We have added the missing `nil` checks to correctly handle the case where tracing is disabled.
mikeee/dapr
docs/release_notes/v1.9.2.md
Markdown
mit
867
# Dapr 1.9.3 ## Fixes traces not being reported in certain circumstances ### Problem With tracing enabled, Dapr operators can choose the sampling rate using the `spec.tracing.sampling` option in the Dapr configuration. In Dapr 1.9.0-1.9.2, when a request coming to the Dapr runtime contains a `traceparent` header, the decision on whether to sample the request or not is solely based on the "sampling bit" set in the header's value. This behavior was introduced with Dapr 1.9.0 during the transition to the new tracing framework based on the OpenTelemetry (OTEL) standard. Although this behavior is compliant with the W3C specs for distributed tracing, it caused Dapr to omit sending traces to the telemetry collector (e.g. Zipkin, Azure Monitor, etc) in many instances. ### Impact The issue impacts users on Dapr 1.9.0-1.9.2 who have enabled collection of traces. Based on reports from Dapr users, developers building apps with ASP.NET Core seem to be particularly impacted, as the .NET Core framework can automatically include a `traceparent` header in every request made to the Dapr sidecar which has the "sampling bit" set to `0` (disabled). ### Root cause Older versions of Dapr (before 1.9.0) ignored the "sampling bit" in the `traceparent` header when making decisions on whether to sample a request. That behavior changed in Dapr 1.9.0, where the decision made by the caller with the `traceparent` header determines the Dapr runtime's sampling choice too. ### Solution We have patched the way Dapr makes decisions on whether to sample a request and submit the trace to the telemetry collector (e.g. Zipkin, Azure Monitor, etc). The new behavior consists of: - If the `traceparent` header has the "sampling bit" set to `1` (enabled), the request is always sampled. - If the "sampling bit" is `0` (disabled), Dapr decides on whether to sample the request based on its own internal policies. For example, with `spec.tracing.sampling` set to `1`, all requests are traced; instead, a value of `0` generates no trace. Numbers in-between 0 and 1 cause Dapr to sample only a fraction of requests. This behavior, while more lax, remains compliant with the W3C specs for distributed tracing.
mikeee/dapr
docs/release_notes/v1.9.3.md
Markdown
mit
2,215
module github.com/dapr/dapr go 1.22.3 require ( contrib.go.opencensus.io/exporter/prometheus v0.4.2 github.com/PaesslerAG/jsonpath v0.1.1 github.com/PuerkitoBio/purell v1.2.1 github.com/alphadose/haxmap v1.4.0 github.com/argoproj/argo-rollouts v1.4.1 github.com/cenkalti/backoff/v4 v4.2.1 github.com/cloudevents/sdk-go/v2 v2.14.0 github.com/dapr/components-contrib v0.0.0-20240618132727-a385743e35c4 github.com/dapr/kit v0.13.1-0.20240523225705-106329e5839f github.com/evanphx/json-patch/v5 v5.8.1 github.com/go-chi/chi/v5 v5.0.11 github.com/go-chi/cors v1.2.1 github.com/go-logr/logr v1.4.1 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.4 github.com/google/cel-go v0.18.2 github.com/google/go-cmp v0.6.0 github.com/google/gofuzz v1.2.0 github.com/google/uuid v1.6.0 github.com/gorilla/mux v1.8.1 github.com/gorilla/websocket v1.5.1 github.com/grafana/k6-operator v0.0.8 github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 github.com/hashicorp/go-hclog v1.5.0 github.com/hashicorp/go-msgpack/v2 v2.1.1 github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/hashicorp/raft v1.4.0 github.com/hashicorp/raft-boltdb v0.0.0-20230125174641-2a8082862702 github.com/jackc/pgx/v5 v5.5.2 github.com/jhump/protoreflect v1.15.2 github.com/kelseyhightower/envconfig v1.4.0 github.com/lestrrat-go/jwx/v2 v2.0.20 github.com/microsoft/durabletask-go v0.4.1-0.20240122160106-fb5c4c05729d github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 github.com/prometheus/client_golang v1.17.0 github.com/prometheus/client_model v0.5.0 github.com/prometheus/common v0.45.0 github.com/redis/go-redis/v9 v9.2.1 github.com/sony/gobreaker v0.5.0 github.com/spf13/cast v1.6.0 github.com/spf13/pflag v1.0.5 github.com/spiffe/go-spiffe/v2 v2.1.7 github.com/stretchr/testify v1.9.0 github.com/valyala/fasthttp v1.51.0 go.mongodb.org/mongo-driver v1.12.1 go.opencensus.io v0.24.0 go.opentelemetry.io/otel v1.24.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 go.opentelemetry.io/otel/exporters/zipkin v1.21.0 go.opentelemetry.io/otel/sdk v1.22.0 go.opentelemetry.io/otel/trace v1.24.0 go.uber.org/automaxprocs v1.5.3 go.uber.org/ratelimit v0.3.0 golang.org/x/crypto v0.22.0 golang.org/x/exp v0.0.0-20240119083558-1b970713d09a golang.org/x/net v0.24.0 golang.org/x/sync v0.6.0 google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 google.golang.org/grpc v1.62.2 google.golang.org/protobuf v1.33.0 gopkg.in/yaml.v3 v3.0.1 k8s.io/api v0.28.4 k8s.io/apiextensions-apiserver v0.28.4 k8s.io/apimachinery v0.28.4 k8s.io/cli-runtime v0.28.4 k8s.io/client-go v0.28.4 k8s.io/code-generator v0.28.4 k8s.io/klog v1.0.0 k8s.io/metrics v0.26.3 k8s.io/utils v0.0.0-20240102154912-e7106e64919e modernc.org/sqlite v1.28.0 sigs.k8s.io/controller-runtime v0.16.3 sigs.k8s.io/yaml v1.4.0 ) require ( cloud.google.com/go v0.112.1 // indirect cloud.google.com/go/compute v1.25.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/datastore v1.15.0 // indirect cloud.google.com/go/iam v1.1.6 // indirect cloud.google.com/go/pubsub v1.36.1 // indirect cloud.google.com/go/secretmanager v1.11.5 // indirect cloud.google.com/go/storage v1.38.0 // indirect dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect github.com/AthenZ/athenz v1.10.39 // indirect github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai v0.3.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 // indirect github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig v1.1.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v1.0.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.1.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.1.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2 v2.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0 // indirect github.com/Azure/go-amqp v1.0.5 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect github.com/DataDog/zstd v1.5.2 // indirect github.com/IBM/sarama v1.42.2 // indirect github.com/OneOfOne/xxhash v1.2.8 // indirect github.com/PaesslerAG/gval v1.0.0 // indirect github.com/RoaringBitmap/roaring v1.1.0 // indirect github.com/Workiva/go-datastructures v1.0.53 // indirect github.com/aerospike/aerospike-client-go/v6 v6.12.0 // indirect github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 // indirect github.com/agnivade/levenshtein v1.1.1 // indirect github.com/alibaba/sentinel-golang v1.0.4 // indirect github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 // indirect github.com/alibabacloud-go/darabonba-openapi v0.2.1 // indirect github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 // indirect github.com/alibabacloud-go/endpoint-util v1.1.0 // indirect github.com/alibabacloud-go/oos-20190601 v1.0.4 // indirect github.com/alibabacloud-go/openapi-util v0.0.11 // indirect github.com/alibabacloud-go/tea v1.2.1 // indirect github.com/alibabacloud-go/tea-utils v1.4.5 // indirect github.com/alibabacloud-go/tea-xml v1.1.2 // indirect github.com/aliyun/aliyun-log-go-sdk v0.1.54 // indirect github.com/aliyun/aliyun-oss-go-sdk v2.2.9+incompatible // indirect github.com/aliyun/aliyun-tablestore-go-sdk v1.7.10 // indirect github.com/aliyun/credentials-go v1.1.2 // indirect github.com/andybalholm/brotli v1.0.6 // indirect github.com/antlr4-go/antlr/v4 v4.13.0 // indirect github.com/apache/dubbo-getty v1.4.9-0.20220610060150-8af010f3f3dc // indirect github.com/apache/dubbo-go-hessian2 v1.11.5 // indirect github.com/apache/pulsar-client-go v0.11.0 // indirect github.com/apache/rocketmq-client-go/v2 v2.1.2-0.20230412142645-25003f6f083d // indirect github.com/apache/thrift v0.13.0 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/aws/aws-msk-iam-sasl-signer-go v1.0.0 // indirect github.com/aws/aws-sdk-go v1.50.19 // indirect github.com/aws/aws-sdk-go-v2 v1.25.0 // indirect github.com/aws/aws-sdk-go-v2/config v1.18.28 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.13.27 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.5 // indirect github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.3.10 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.35 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.29 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.3.36 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.29 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.12.13 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.13 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.19.3 // indirect github.com/aws/smithy-go v1.20.0 // indirect github.com/awslabs/kinesis-aggregation/go v0.0.0-20210630091500-54e17340d32f // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/benbjohnson/clock v1.3.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bits-and-blooms/bitset v1.4.0 // indirect github.com/boltdb/bolt v1.3.1 // indirect github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874 // indirect github.com/bufbuild/protocompile v0.6.0 // indirect github.com/bytedance/gopkg v0.0.0-20220817015305-b879a72dc90f // indirect github.com/camunda/zeebe/clients/go/v8 v8.2.12 // indirect github.com/cenkalti/backoff v2.2.1+incompatible // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chebyrash/promise v0.0.0-20230709133807-42ec49ba1459 // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/choleraehyq/pid v0.0.18 // indirect github.com/clbanning/mxj/v2 v2.5.6 // indirect github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.14.0 // indirect github.com/cloudwego/fastpb v0.0.4-0.20230131074846-6fc453d58b96 // indirect github.com/cloudwego/frugal v0.1.14 // indirect github.com/cloudwego/kitex v0.5.0 // indirect github.com/cloudwego/netpoll v0.3.2 // indirect github.com/cloudwego/thriftgo v0.3.0 // indirect github.com/coreos/go-semver v0.3.1 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/creasty/defaults v1.5.2 // indirect github.com/cyphar/filepath-securejoin v0.2.4 // indirect github.com/dancannon/gorethink v4.0.0+incompatible // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/deepmap/oapi-codegen v1.11.0 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/didip/tollbooth/v7 v7.0.1 // indirect github.com/dubbogo/gost v1.13.1 // indirect github.com/dubbogo/triple v1.1.8 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/eapache/go-resiliency v1.5.0 // indirect github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect github.com/eapache/queue v1.1.0 // indirect github.com/eclipse/paho.mqtt.golang v1.4.3 // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/emirpasic/gods v1.12.0 // indirect github.com/evanphx/json-patch v5.7.0+incompatible // indirect github.com/fasthttp-contrib/sessions v0.0.0-20160905201309-74f6ac73d5d5 // indirect github.com/fatih/color v1.15.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 // indirect github.com/go-errors/errors v1.4.2 // indirect github.com/go-ini/ini v1.67.0 // indirect github.com/go-kit/kit v0.10.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-openapi/jsonpointer v0.20.0 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect github.com/go-openapi/swag v0.22.4 // indirect github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect github.com/go-pkgz/expirable-cache v0.1.0 // indirect github.com/go-playground/locales v0.14.0 // indirect github.com/go-playground/universal-translator v0.18.0 // indirect github.com/go-playground/validator/v10 v10.11.0 // indirect github.com/go-redis/redis/v8 v8.11.5 // indirect github.com/go-resty/resty/v2 v2.7.0 // indirect github.com/go-sql-driver/mysql v1.7.1 // indirect github.com/go-zookeeper/zk v1.0.3 // indirect github.com/gobwas/glob v0.2.3 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/gocql/gocql v1.5.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gofrs/uuid v4.4.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect github.com/golang-sql/sqlexp v0.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect github.com/google/flatbuffers v2.0.8+incompatible // indirect github.com/google/gnostic-models v0.6.8 // indirect github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 // indirect github.com/google/s2a-go v0.1.7 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect github.com/googleapis/gax-go/v2 v2.12.2 // indirect github.com/gorilla/css v1.0.0 // indirect github.com/grandcat/zeroconf v1.0.0 // indirect github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect github.com/hamba/avro/v2 v2.15.0 // indirect github.com/hashicorp/consul/api v1.25.1 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-msgpack v0.5.5 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/serf v0.10.1 // indirect github.com/hazelcast/hazelcast-go-client v0.0.0-20190530123621-6cf767c2f31a // indirect github.com/http-wasm/http-wasm-host-go v0.6.0 // indirect github.com/huaweicloud/huaweicloud-sdk-go-obs v3.23.4+incompatible // indirect github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.56 // indirect github.com/imdario/mergo v0.3.16 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/influxdata/influxdb-client-go/v2 v2.12.3 // indirect github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf // indirect github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa // indirect github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect github.com/jackc/puddle/v2 v2.2.1 // indirect github.com/jcmturner/aescts/v2 v2.0.0 // indirect github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect github.com/jcmturner/gofork v1.7.6 // indirect github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect github.com/jcmturner/rpc/v2 v2.0.3 // indirect github.com/jinzhu/copier v0.3.5 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/k0kubun/pp v3.0.1+incompatible // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/klauspost/compress v1.17.7 // indirect github.com/knadh/koanf v1.4.1 // indirect github.com/kubemq-io/kubemq-go v1.7.9 // indirect github.com/kubemq-io/protobuf v1.3.1 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/labd/commercetools-go-sdk v1.3.1 // indirect github.com/leodido/go-urn v1.2.1 // indirect github.com/lestrrat-go/blackmagic v1.0.2 // indirect github.com/lestrrat-go/httpcc v1.0.1 // indirect github.com/lestrrat-go/httprc v1.0.4 // indirect github.com/lestrrat-go/iter v1.0.2 // indirect github.com/lestrrat-go/option v1.0.1 // indirect github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect github.com/linkedin/goavro/v2 v2.12.0 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/machinebox/graphql v0.2.2 // indirect github.com/magiconair/properties v1.8.6 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/marusama/semaphore/v2 v2.5.0 // indirect github.com/matoous/go-nanoid/v2 v2.0.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/microsoft/go-mssqldb v1.6.0 // indirect github.com/miekg/dns v1.1.43 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/moby/spdystream v0.2.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect github.com/montanaflynn/stats v0.7.0 // indirect github.com/mrz1836/postmark v1.6.1 // indirect github.com/mschoch/smat v0.2.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/natefinch/lumberjack v2.0.0+incompatible // indirect github.com/nats-io/nats.go v1.28.0 // indirect github.com/nats-io/nkeys v0.4.6 // indirect github.com/nats-io/nuid v1.0.1 // indirect github.com/oleiade/lane v1.0.1 // indirect github.com/open-policy-agent/opa v0.55.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/openzipkin/zipkin-go v0.4.2 // indirect github.com/oracle/oci-go-sdk/v54 v54.0.0 // indirect github.com/panjf2000/ants/v2 v2.8.1 // indirect github.com/patrickmn/go-cache v2.1.0+incompatible // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/peterbourgon/diskv v2.0.1+incompatible // indirect github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pierrec/lz4/v4 v4.1.21 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/prometheus/statsd_exporter v0.22.7 // indirect github.com/puzpuzpuz/xsync/v3 v3.0.0 // indirect github.com/rabbitmq/amqp091-go v1.8.1 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/riferrei/srclient v0.6.0 // indirect github.com/rs/zerolog v1.28.0 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect github.com/segmentio/asm v1.2.0 // indirect github.com/sendgrid/rest v2.6.9+incompatible // indirect github.com/sendgrid/sendgrid-go v3.13.0+incompatible // indirect github.com/shirou/gopsutil/v3 v3.22.2 // indirect github.com/sijms/go-ora/v2 v2.7.18 // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/stealthrocket/wasi-go v0.8.1-0.20230912180546-8efbab50fb58 // indirect github.com/stoewer/go-strcase v1.2.0 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/supplyon/gremcos v0.1.40 // indirect github.com/tchap/go-patricia/v2 v2.3.1 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.732 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssm v1.0.732 // indirect github.com/tetratelabs/wazero v1.7.0 // indirect github.com/tidwall/gjson v1.13.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/tidwall/transform v0.0.0-20201103190739-32f242e2dbde // indirect github.com/tjfoc/gmsm v1.3.2 // indirect github.com/tklauser/go-sysconf v0.3.10 // indirect github.com/tklauser/numcpus v0.4.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/vmware/vmware-go-kcl v1.5.1 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/xlab/treeprint v1.2.0 // indirect github.com/yashtewari/glob-intersection v0.2.0 // indirect github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect github.com/yuin/gopher-lua v1.1.0 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect github.com/zeebo/errs v1.3.0 // indirect go.etcd.io/etcd/api/v3 v3.5.9 // indirect go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect go.etcd.io/etcd/client/v3 v3.5.9 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/proto/otlp v1.0.0 // indirect go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect go.uber.org/atomic v1.10.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.25.0 // indirect golang.org/x/arch v0.3.0 // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/oauth2 v0.18.0 // indirect golang.org/x/sys v0.19.0 // indirect golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.17.0 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect google.golang.org/api v0.169.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect google.golang.org/grpc/examples v0.0.0-20230224211313-3775f633ce20 // indirect gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect gopkg.in/couchbase/gocb.v1 v1.6.7 // indirect gopkg.in/couchbase/gocbcore.v7 v7.1.18 // indirect gopkg.in/couchbaselabs/gocbconnstr.v1 v1.0.4 // indirect gopkg.in/couchbaselabs/jsonx.v1 v1.0.1 // indirect gopkg.in/evanphx/json-patch.v5 v5.6.0 // indirect gopkg.in/fatih/pool.v2 v2.0.0 // indirect gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect gopkg.in/gorethink/gorethink.v4 v4.1.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect k8s.io/component-base v0.28.4 // indirect k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 // indirect k8s.io/klog/v2 v2.110.1 // indirect k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e // indirect lukechampine.com/uint128 v1.3.0 // indirect modernc.org/cc/v3 v3.41.0 // indirect modernc.org/ccgo/v3 v3.16.15 // indirect modernc.org/libc v1.38.0 // indirect modernc.org/mathutil v1.6.0 // indirect modernc.org/memory v1.7.2 // indirect modernc.org/opt v0.1.3 // indirect modernc.org/strutil v1.2.0 // indirect modernc.org/token v1.1.0 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/kustomize/api v0.15.0 // indirect sigs.k8s.io/kustomize/kyaml v0.15.0 // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect stathat.com/c/consistent v1.0.0 // indirect ) replace ( // this is a fork which addresses a performance issues due to go routines dubbo.apache.org/dubbo-go/v3 => dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3 gopkg.in/couchbaselabs/gocbconnstr.v1 => github.com/couchbaselabs/gocbconnstr v1.0.5 ) // the following lines are necessary to update to commits with proper licenses replace ( github.com/chenzhuoyu/iasm => github.com/chenzhuoyu/iasm v0.9.0 github.com/chzyer/logex => github.com/chzyer/logex v1.2.1 github.com/gobwas/pool => github.com/gobwas/pool v0.2.1 github.com/toolkits/concurrent => github.com/niean/gotools v0.0.0-20151221085310-ff3f51fc5c60 ) // update retracted indirect dependencies if necessary // check for retracted versions: go list -mod=mod -f '{{if .Retracted}}{{.}}{{end}}' -u -m all replace github.com/microcosm-cc/bluemonday => github.com/microcosm-cc/bluemonday v1.0.24 // Uncomment for local development for testing with changes in the components-contrib && kit repositories. // Don't commit with this uncommented! // // replace github.com/dapr/components-contrib => ../components-contrib // replace github.com/dapr/kit => ../kit // // Then, run `make modtidy-all` in this repository. // This ensures that go.mod and go.sum are up-to-date for each go.mod file.
mikeee/dapr
go.mod
mod
mit
25,098
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM= cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= cloud.google.com/go/compute v1.25.1/go.mod h1:oopOIR53ly6viBYxaDhBfJwzUAxf1zE//uf3IB011ls= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/datastore v1.15.0 h1:0P9WcsQeTWjuD1H14JIY7XQscIPQ4Laje8ti96IC5vg= cloud.google.com/go/datastore v1.15.0/go.mod h1:GAeStMBIt9bPS7jMJA85kgkpsMkvseWWXiaHya9Jes8= cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/iam v1.1.6 h1:bEa06k05IO4f4uJonbB5iAgKTPpABy1ayxaIZV/GHVc= cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= cloud.google.com/go/kms v1.15.7 h1:7caV9K3yIxvlQPAcaFffhlT7d1qpxjB1wHBtjWa13SM= cloud.google.com/go/kms v1.15.7/go.mod h1:ub54lbsa6tDkUwnu4W7Yt1aAIFLnspgh0kPGToDukeI= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= cloud.google.com/go/pubsub v1.36.1 h1:dfEPuGCHGbWUhaMCTHUFjfroILEkx55iUmKBZTP5f+Y= cloud.google.com/go/pubsub v1.36.1/go.mod h1:iYjCa9EzWOoBiTdd4ps7QoMtMln5NwaZQpK1hbRfBDE= cloud.google.com/go/secretmanager v1.11.5 h1:82fpF5vBBvu9XW4qj0FU2C6qVMtj1RM/XHwKXUEAfYY= cloud.google.com/go/secretmanager v1.11.5/go.mod h1:eAGv+DaCHkeVyQi0BeXgAHOU0RdrMeZIASKc+S7VqH4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.38.0 h1:Az68ZRGlnNTpIBbLjSMIV2BDcwwXYlRlQzis0llkpJg= cloud.google.com/go/storage v1.38.0/go.mod h1:tlUADB0mAb9BgYls9lq+8MGkfzOXuLrnHXlpHmvFJoY= contrib.go.opencensus.io/exporter/prometheus v0.4.1/go.mod h1:t9wvfitlUjGXG2IXAZsuFq26mDGid/JwCEXp+gTG/9U= contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg= contrib.go.opencensus.io/exporter/prometheus v0.4.2/go.mod h1:dvEHbiKmgvbr5pjaF9fpw1KeYcjrnC1J8B+JKjsZyRQ= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3 h1:j08GKvXilDMHuVuGy+X0CMTL+Wxrte5a4XrWGDypZf0= dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3/go.mod h1:bxe6StRQ4PVbZa+B5nsREuez4agzmWiELS9NhEoDscI= gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= github.com/AthenZ/athenz v1.10.39 h1:mtwHTF/v62ewY2Z5KWhuZgVXftBej1/Tn80zx4DcawY= github.com/AthenZ/athenz v1.10.39/go.mod h1:3Tg8HLsiQZp81BJY58JBeU2BR6B/H4/0MQGfCwhHNEA= github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU= github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai v0.3.0 h1:x7fb22Q43h2DRFCvp9rAua8PoV3gwtl1bK5+pihnihA= github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai v0.3.0/go.mod h1:zPJgGMjMheJJrYgrQ4W8NrNCWtWXAkjI3KWYFnTtwdA= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqbjDYsgN+RzP4q16yV5eM= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig v1.1.0 h1:AdaGDU3FgoUC2tsd3vsd9JblRrpFLUsS38yh1eLYfwM= github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig v1.1.0/go.mod h1:6tpINME7dnF7bLlb8Ubj6FtM9CFZrCn7aT02pcYrklM= github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v1.0.1 h1:qHihI/zqrModLU8vFbOzOHjw/HeYX/dNd8kE86zvOtU= github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v1.0.1/go.mod h1:7LBWaO4KRASAo9VpfhpxQKkdY6PBwkv9UDKzL9Sajuw= github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.1.0 h1:ONYihl/vbwtVAmEmqoVDCGyhad2CIMN2kg3BO8Y5cFk= github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.1.0/go.mod h1:PMB5kQ1apg/irrvpPryVdchapVIYP+VV9iHJQ2CHwG8= github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.1.0 h1:vEe09cdSBy7evqoVUvuitnsjyozsSzI4TbGgwu01+TI= github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.1.0/go.mod h1:PgOlzIlvwIagKI8N6hCsfFDpAijHCmlHqOwA5GsSh9w= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0 h1:QISzMrspEvZj4zrrN2wlNwfum5RmnKQhQNiSujwH7oU= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0/go.mod h1:xNjFERdhyMqZncbNJSPBsTCddk5kwsUVUzELQPMj/LA= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2 v2.2.0 h1:rK2PztrELX4EIQV1OWaM5zXPl9OAjv/+/jg2kmHKmG0= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2 v2.2.0/go.mod h1:GdZIPeg5TQxW50uJ8y9Eqz2FT9taolHoGawJg/KI2o4= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.2.0 h1:+dggnR89/BIIlRlQ6d19dkhhdd/mQUiQbXhyHUFiB4w= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.2.0/go.mod h1:tI9M2Q/ueFi287QRkdrhb9LHm6ZnXgkVYLRC3FhYkPw= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1 h1:7CBQ+Ei8SP2c6ydQTGCCrS35bDxgTMfoP2miAwK++OU= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1/go.mod h1:c/wcGeGx5FUPbM/JltUYHZcKmigwyVLJlDq+4HdtXaw= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0 h1:AifHbc4mg0x9zW52WOpKbsHaDKuRhlI7TVl47thgQ70= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0/go.mod h1:T5RfihdXtBDxt1Ch2wobif3TvzTdumDy29kahv6AV9A= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0 h1:DRiANoJTiW6obBQe3SqZizkuV1PEgfiiGivmVocDy64= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0/go.mod h1:qLIye2hwb/ZouqhpSD9Zn3SJipvpEnz1Ywl3VUk9Y0s= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0 h1:h4Zxgmi9oyZL2l8jeg1iRTqPloHktywWcu0nlJmo1tA= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0/go.mod h1:LgLGXawqSreJz135Elog0ywTJDsm0Hz2k+N+6ZK35u8= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 h1:D3occbWoio4EBLkbkevetNMAVX197GkzbUMtqjGWn80= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0/go.mod h1:bTSOgj05NGRuHHhQwAdPnYr9TOdNmKlZTgGLL6nyAdI= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 h1:YUUxeiOWgdAQE3pXt2H7QXzZs0q8UBjgRbl56qo8GYM= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2/go.mod h1:dmXQgZuiSubAecswZE+Sm8jkvEa7kQgTPVRvwL/nd0E= github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0 h1:lJwNFV+xYjHREUTHJKx/ZF6CJSt9znxmLw9DqSTvyRU= github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0/go.mod h1:GfT0aGew8Qj5yiQVqOO5v7N8fanbJGyUoHqXg56qcVY= github.com/Azure/go-amqp v1.0.5 h1:po5+ljlcNSU8xtapHTe8gIc8yHxCzC03E8afH2g1ftU= github.com/Azure/go-amqp v1.0.5/go.mod h1:vZAogwdrkbyK3Mla8m/CxSc/aKdnTZ4IbPxl51Y5WZE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.2 h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8= github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/IBM/sarama v1.42.2 h1:VoY4hVIZ+WQJ8G9KNY/SQlWguBQXQ9uvFPOnrcu8hEw= github.com/IBM/sarama v1.42.2/go.mod h1:FLPGUGwYqEs62hq2bVG6Io2+5n+pS6s/WOXVKWSLFtE= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/Netflix/go-env v0.0.0-20220526054621-78278af1949d h1:wvStE9wLpws31NiWUx+38wny1msZ/tm+eL5xmm4Y7So= github.com/Netflix/go-env v0.0.0-20220526054621-78278af1949d/go.mod h1:9XMFaCeRyW7fC9XJOWQ+NdAv8VLG7ys7l3x4ozEGLUQ= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/OneOfOne/xxhash v1.2.8 h1:31czK/TI9sNkxIKfaUfGlU47BAxQ0ztGgd9vPyqimf8= github.com/OneOfOne/xxhash v1.2.8/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= github.com/PaesslerAG/gval v1.0.0 h1:GEKnRwkWDdf9dOmKcNrar9EA1bz1z9DqPIO1+iLzhd8= github.com/PaesslerAG/gval v1.0.0/go.mod h1:y/nm5yEyTeX6av0OfKJNp9rBNj2XrGhAf5+v24IBN1I= github.com/PaesslerAG/jsonpath v0.1.0/go.mod h1:4BzmtoM/PI8fPO4aQGIusjGxGir2BzcV0grWtFzq1Y8= github.com/PaesslerAG/jsonpath v0.1.1 h1:c1/AToHQMVsduPAa4Vh6xp2U0evy4t8SWp8imEsylIk= github.com/PaesslerAG/jsonpath v0.1.1/go.mod h1:lVboNxFGal/VwW6d9JzIy56bUsYAP6tH/x80vjnCseY= github.com/PuerkitoBio/purell v1.2.1 h1:QsZ4TjvwiMpat6gBCBxEQI0rcS9ehtkKtSpiUnd9N28= github.com/PuerkitoBio/purell v1.2.1/go.mod h1:ZwHcC/82TOaovDi//J/804umJFFmbOHPngi8iYYv/Eo= github.com/RoaringBitmap/roaring v1.1.0 h1:b10lZrZXaY6Q6EKIRrmOF519FIyQQ5anPgGr3niw2yY= github.com/RoaringBitmap/roaring v1.1.0/go.mod h1:icnadbWcNyfEHlYdr+tDlOTih1Bf/h+rzPpv4sbomAA= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig= github.com/Workiva/go-datastructures v1.0.53/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A= github.com/aerospike/aerospike-client-go/v6 v6.12.0 h1:4RKpcUlfINyIsjyOK8DBKn6NaBUl5UaHrWVY07/R99Q= github.com/aerospike/aerospike-client-go/v6 v6.12.0/go.mod h1:sBqeA3mli2vT5JInbp+XGFbajxEFg4kANUHsOl3meUk= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/agiledragon/gomonkey v2.0.2+incompatible/go.mod h1:2NGfXu1a80LLr2cmWXGBDaHEjb1idR6+FVlX5T3D9hw= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU= github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY= github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= github.com/alibaba/sentinel-golang v1.0.4 h1:i0wtMvNVdy7vM4DdzYrlC4r/Mpk1OKUUBurKKkWhEo8= github.com/alibaba/sentinel-golang v1.0.4/go.mod h1:Lag5rIYyJiPOylK8Kku2P+a23gdKMMqzQS7wTnjWEpk= github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 h1:iC9YFYKDGEy3n/FtqJnOkZsene9olVspKmkX5A2YBEo= github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4/go.mod h1:sCavSAvdzOjul4cEqeVtvlSaSScfNsTQ+46HwlTL1hc= github.com/alibabacloud-go/darabonba-openapi v0.1.18/go.mod h1:PB4HffMhJVmAgNKNq3wYbTUlFvPgxJpTzd1F5pTuUsc= github.com/alibabacloud-go/darabonba-openapi v0.2.1 h1:WyzxxKvhdVDlwpAMOHgAiCJ+NXa6g5ZWPFEzaK/ewwY= github.com/alibabacloud-go/darabonba-openapi v0.2.1/go.mod h1:zXOqLbpIqq543oioL9IuuZYOQgHQ5B8/n5OPrnko8aY= github.com/alibabacloud-go/darabonba-string v1.0.0/go.mod h1:93cTfV3vuPhhEwGGpKKqhVW4jLe7tDpo3LUM0i0g6mA= github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 h1:NqugFkGxx1TXSh/pBcU00Y6bljgDPaFdh5MUSeJ7e50= github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68/go.mod h1:6pb/Qy8c+lqua8cFpEy7g39NRRqOWc3rOwAy8m5Y2BY= github.com/alibabacloud-go/endpoint-util v1.1.0 h1:r/4D3VSw888XGaeNpP994zDUaxdgTSHBbVfZlzf6b5Q= github.com/alibabacloud-go/endpoint-util v1.1.0/go.mod h1:O5FuCALmCKs2Ff7JFJMudHs0I5EBgecXXxZRyswlEjE= github.com/alibabacloud-go/oos-20190601 v1.0.4 h1:IhydPmon5M+ZywO9swx8TTOxy9M5qJewZjUvREcMkgw= github.com/alibabacloud-go/oos-20190601 v1.0.4/go.mod h1:4wmBcZmYoJMFc6LcBvGiAiUs6G+ty7F/eob/r2dOvFg= github.com/alibabacloud-go/openapi-util v0.0.11 h1:iYnqOPR5hyEEnNZmebGyRMkkEJRWUEjDiiaOHZ5aNhA= github.com/alibabacloud-go/openapi-util v0.0.11/go.mod h1:sQuElr4ywwFRlCCberQwKRFhRzIyG4QTP/P4y1CJ6Ws= github.com/alibabacloud-go/tea v1.1.0/go.mod h1:IkGyUSX4Ba1V+k4pCtJUc6jDpZLFph9QMy2VUPTwukg= github.com/alibabacloud-go/tea v1.1.7/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= github.com/alibabacloud-go/tea v1.1.8/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= github.com/alibabacloud-go/tea v1.1.11/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= github.com/alibabacloud-go/tea v1.1.17/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A= github.com/alibabacloud-go/tea v1.1.19/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A= github.com/alibabacloud-go/tea v1.2.1 h1:rFF1LnrAdhaiPmKwH5xwYOKlMh66CqRwPUTzIK74ask= github.com/alibabacloud-go/tea v1.2.1/go.mod h1:qbzof29bM/IFhLMtJPrgTGK3eauV5J2wSyEUo4OEmnA= github.com/alibabacloud-go/tea-utils v1.3.1/go.mod h1:EI/o33aBfj3hETm4RLiAxF/ThQdSngxrpF8rKUDJjPE= github.com/alibabacloud-go/tea-utils v1.4.3/go.mod h1:KNcT0oXlZZxOXINnZBs6YvgOd5aYp9U67G+E3R8fcQw= github.com/alibabacloud-go/tea-utils v1.4.5 h1:h0/6Xd2f3bPE4XHTvkpjwxowIwRCJAJOqY6Eq8f3zfA= github.com/alibabacloud-go/tea-utils v1.4.5/go.mod h1:KNcT0oXlZZxOXINnZBs6YvgOd5aYp9U67G+E3R8fcQw= github.com/alibabacloud-go/tea-xml v1.1.2 h1:oLxa7JUXm2EDFzMg+7oRsYc+kutgCVwm+bZlhhmvW5M= github.com/alibabacloud-go/tea-xml v1.1.2/go.mod h1:Rq08vgCcCAjHyRi/M7xlHKUykZCEtyBy9+DPF6GgEu8= github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a h1:HbKu58rmZpUGpz5+4FfNmIU+FmZg2P3Xaj2v2bfNWmk= github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc= github.com/alicebob/miniredis/v2 v2.30.5 h1:3r6kTHdKnuP4fkS8k2IrvSfxpxUTcW1SOL0wN7b7Dt0= github.com/alicebob/miniredis/v2 v2.30.5/go.mod h1:b25qWj4fCEsBeAAR2mlb0ufImGC6uH3VlUfb/HS5zKg= github.com/aliyun/alibaba-cloud-sdk-go v1.61.18/go.mod h1:v8ESoHo4SyHmuB4b1tJqDHxfTGEciD+yhvOU/5s1Rfk= github.com/aliyun/alibaba-cloud-sdk-go v1.61.1704/go.mod h1:RcDobYh8k5VP6TNybz9m++gL3ijVI5wueVr0EM10VsU= github.com/aliyun/aliyun-log-go-sdk v0.1.54 h1:ejQygZTGBqTs4V9qQUunWYtFwyKUWXYryfgrX9OhOlg= github.com/aliyun/aliyun-log-go-sdk v0.1.54/go.mod h1:/U0mxwX7uG2K2fbfsF92BR64zmbmJyx7WQtyKaCdRL8= github.com/aliyun/aliyun-oss-go-sdk v2.2.9+incompatible h1:Sg/2xHwDrioHpxTN6WMiwbXTpUEinBpHsN7mG21Rc2k= github.com/aliyun/aliyun-oss-go-sdk v2.2.9+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/aliyun/aliyun-tablestore-go-sdk v1.7.10 h1:C3MaKZfqqfVkA0LGli4j7XOz7wXfpxZ9RrsgiCpIPPQ= github.com/aliyun/aliyun-tablestore-go-sdk v1.7.10/go.mod h1:aVqKjL2cmkgs0JOUf++ayBLI5ChiUdrbRp1vcA77c64= github.com/aliyun/credentials-go v1.1.2 h1:qU1vwGIBb3UJ8BwunHDRFtAhS6jnQLnde/yk0+Ih2GY= github.com/aliyun/credentials-go v1.1.2/go.mod h1:ozcZaMR5kLM7pwtCMEpVmQ242suV6qTJya2bDq4X1Tw= github.com/alphadose/haxmap v1.4.0 h1:1yn+oGzy2THJj1DMuJBzRanE3sMnDAjJVbU0L31Jp3w= github.com/alphadose/haxmap v1.4.0/go.mod h1:rjHw1IAqbxm0S3U5tD16GoKsiAd8FWx5BJ2IYqXwgmM= github.com/andybalholm/brotli v1.0.6 h1:Yf9fFpf49Zrxb9NlQaluyE92/+X7UVHlhMNJN2sxfOI= github.com/andybalholm/brotli v1.0.6/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI= github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g= github.com/apache/dubbo-getty v1.4.9-0.20220610060150-8af010f3f3dc h1:NZRon3MDqT4vddR3UIRBnwbbhEerghAimCSBsiESs3g= github.com/apache/dubbo-getty v1.4.9-0.20220610060150-8af010f3f3dc/go.mod h1:cPJlbcHUTNTpiboMQjMHhE9XBni11LiBiG8FdrDuVzk= github.com/apache/dubbo-go-hessian2 v1.9.1/go.mod h1:xQUjE7F8PX49nm80kChFvepA/AvqAZ0oh/UaB6+6pBE= github.com/apache/dubbo-go-hessian2 v1.9.3/go.mod h1:xQUjE7F8PX49nm80kChFvepA/AvqAZ0oh/UaB6+6pBE= github.com/apache/dubbo-go-hessian2 v1.11.0/go.mod h1:7rEw9guWABQa6Aqb8HeZcsYPHsOS7XT1qtJvkmI6c5w= github.com/apache/dubbo-go-hessian2 v1.11.5 h1:rcK22+yMw2Hejm6GRG7WrdZ0DinW2QMZc01c7YVZjcQ= github.com/apache/dubbo-go-hessian2 v1.11.5/go.mod h1:QP9Tc0w/B/mDopjusebo/c7GgEfl6Lz8jeuFg8JA6yw= github.com/apache/pulsar-client-go v0.11.0 h1:fniyVbewAOcMSMLwxzhdrCFmFTorCW40jfnmQVcsrJw= github.com/apache/pulsar-client-go v0.11.0/go.mod h1:FoijqJwgjroSKptIWp1vvK1CXs8dXnQiL8I+MHOri4A= github.com/apache/rocketmq-client-go/v2 v2.1.2-0.20230412142645-25003f6f083d h1:bMkOgl4AMaJR0z6Bcxlyliwou/wZifxhRe/rK9TF5+A= github.com/apache/rocketmq-client-go/v2 v2.1.2-0.20230412142645-25003f6f083d/go.mod h1:6I6vgxHR3hzrvn+6n/4mrhS+UTulzK/X9LB2Vk1U5gE= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0 h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/appscode/go-querystring v0.0.0-20170504095604-0126cfb3f1dc/go.mod h1:w648aMHEgFYS6xb0KVMMtZ2uMeemhiKCuD2vj6gY52A= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/ardielle/ardielle-go v1.5.2 h1:TilHTpHIQJ27R1Tl/iITBzMwiUGSlVfiVhwDNGM3Zj4= github.com/ardielle/ardielle-go v1.5.2/go.mod h1:I4hy1n795cUhaVt/ojz83SNVCYIGsAFAONtv2Dr7HUI= github.com/ardielle/ardielle-tools v1.5.4/go.mod h1:oZN+JRMnqGiIhrzkRN9l26Cej9dEx4jeNG6A+AdkShk= github.com/argoproj/argo-rollouts v1.4.1 h1:P+aTqdjMmWJDJfAbyVkCbONIzoGXSRVRBvim6VWxMJo= github.com/argoproj/argo-rollouts v1.4.1/go.mod h1:KR9pcBicOYmPOu50bBLRQfp/UQVkRGoUkidHVsyjV1Q= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= github.com/armon/go-metrics v0.3.8/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-msk-iam-sasl-signer-go v1.0.0 h1:UyjtGmO0Uwl/K+zpzPwLoXzMhcN9xmnR2nrqJoBrg3c= github.com/aws/aws-msk-iam-sasl-signer-go v1.0.0/go.mod h1:TJAXuFs2HcMib3sN5L0gUC+Q01Qvy3DemvA55WuC+iA= github.com/aws/aws-sdk-go v1.19.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.32.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/aws/aws-sdk-go v1.50.19 h1:YSIDKRSkh/TW0RPWoocdLqtC/T5W6IGBVhFs6P7Qcac= github.com/aws/aws-sdk-go v1.50.19/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.9.2/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= github.com/aws/aws-sdk-go-v2 v1.19.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= github.com/aws/aws-sdk-go-v2 v1.25.0 h1:sv7+1JVJxOu/dD/sz/csHX7jFqmP001TIY7aytBWDSQ= github.com/aws/aws-sdk-go-v2 v1.25.0/go.mod h1:G104G1Aho5WqF+SR3mDIobTABQzpYV0WxMsKxlMggOA= github.com/aws/aws-sdk-go-v2/config v1.8.3/go.mod h1:4AEiLtAb8kLs7vgw2ZV3p2VZ1+hBavOc84hqxVNpCyw= github.com/aws/aws-sdk-go-v2/config v1.18.28 h1:TINEaKyh1Td64tqFvn09iYpKiWjmHYrG1fa91q2gnqw= github.com/aws/aws-sdk-go-v2/config v1.18.28/go.mod h1:nIL+4/8JdAuNHEjn/gPEXqtnS02Q3NXB/9Z7o5xE4+A= github.com/aws/aws-sdk-go-v2/credentials v1.4.3/go.mod h1:FNNC6nQZQUuyhq5aE5c7ata8o9e4ECGmS4lAXC7o1mQ= github.com/aws/aws-sdk-go-v2/credentials v1.13.27 h1:dz0yr/yR1jweAnsCx+BmjerUILVPQ6FS5AwF/OyG1kA= github.com/aws/aws-sdk-go-v2/credentials v1.13.27/go.mod h1:syOqAek45ZXZp29HlnRS/BNgMIW6uiRmeuQsz4Qh2UE= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.6.0/go.mod h1:gqlclDEZp4aqJOancXK6TN24aKhT0W0Ae9MHk3wzTMM= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.5 h1:kP3Me6Fy3vdi+9uHd7YLr6ewPxRL+PU6y15urfTaamU= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.5/go.mod h1:Gj7tm95r+QsDoN2Fhuz/3npQvcZbkEf5mL70n3Xfluc= github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.3.10 h1:z6fAXB4HSuYjrE/P8RU3NdCaN+EPaeq/+80aisCjuF8= github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.3.10/go.mod h1:PoPjOi7j+/DtKIGC58HRfcdWKBPYYXwdKnRG+po+hzo= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.35 h1:hMUCiE3Zi5AHrRNGf5j985u0WyqI6r2NULhUfo0N/No= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.35/go.mod h1:ipR5PvpSPqIqL5Mi82BxLnfMkHVbmco8kUwO2xrCi0M= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.29 h1:yOpYx+FTBdpk/g+sBU6Cb1H0U/TLEcYYp66mYqsPpcc= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.29/go.mod h1:M/eUABlDbw2uVrdAn+UsI6M727qp2fxkp8K0ejcBDUY= github.com/aws/aws-sdk-go-v2/internal/ini v1.2.4/go.mod h1:ZcBrrI3zBKlhGFNYWvju0I3TR93I7YIgAfy82Fh4lcQ= github.com/aws/aws-sdk-go-v2/internal/ini v1.3.36 h1:8r5m1BoAWkn0TDC34lUculryf7nUF25EgIMdjvGCkgo= github.com/aws/aws-sdk-go-v2/internal/ini v1.3.36/go.mod h1:Rmw2M1hMVTwiUhjwMoIBFWFJMhvJbct06sSidxInkhY= github.com/aws/aws-sdk-go-v2/service/appconfig v1.4.2/go.mod h1:FZ3HkCe+b10uFZZkFdvf98LHW21k49W8o8J366lqVKY= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.2/go.mod h1:72HRZDLMtmVQiLG2tLfQcaWLCssELvGl+Zf2WVxMmR8= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.29 h1:IiDolu/eLmuB18DRZibj77n1hHQT7z12jnGO7Ze3pLc= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.29/go.mod h1:fDbkK4o7fpPXWn8YAPmTieAMuB9mk/VgvW64uaUqxd4= github.com/aws/aws-sdk-go-v2/service/sso v1.4.2/go.mod h1:NBvT9R1MEF+Ud6ApJKM0G+IkPchKS7p7c2YPKwHmBOk= github.com/aws/aws-sdk-go-v2/service/sso v1.12.13 h1:sWDv7cMITPcZ21QdreULwxOOAmE05JjEsT6fCDtDA9k= github.com/aws/aws-sdk-go-v2/service/sso v1.12.13/go.mod h1:DfX0sWuT46KpcqbMhJ9QWtxAIP1VozkDWf8VAkByjYY= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.13 h1:BFubHS/xN5bjl818QaroN6mQdjneYQ+AOx44KNXlyH4= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.13/go.mod h1:BzqsVVFduubEmzrVtUFQQIQdFqvUItF8XUq2EnS8Wog= github.com/aws/aws-sdk-go-v2/service/sts v1.7.2/go.mod h1:8EzeIqfWt2wWT4rJVu3f21TfrhJ8AEMzVybRNSb/b4g= github.com/aws/aws-sdk-go-v2/service/sts v1.19.3 h1:e5mnydVdCVWxP+5rPAGi2PYxC7u2OZgH1ypC114H04U= github.com/aws/aws-sdk-go-v2/service/sts v1.19.3/go.mod h1:yVGZA1CPkmUhBdA039jXNJJG7/6t+G+EBWmFq23xqnY= github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/aws/smithy-go v1.20.0 h1:6+kZsCXZwKxZS9RfISnPc4EXlHoyAkm2hPuM8X2BrrQ= github.com/aws/smithy-go v1.20.0/go.mod h1:uo5RKksAl4PzhqaAbjd4rLgFoq5koTsQKYuGe7dklGc= github.com/awslabs/kinesis-aggregation/go v0.0.0-20210630091500-54e17340d32f h1:Pf0BjJDga7C98f0vhw+Ip5EaiE07S3lTKpIYPNS0nMo= github.com/awslabs/kinesis-aggregation/go v0.0.0-20210630091500-54e17340d32f/go.mod h1:SghidfnxvX7ribW6nHI7T+IBbc9puZ9kk5Tx/88h8P4= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932 h1:mXoPYz/Ul5HYEDvkta6I8/rnYM5gSdSV2tJ6XbZuEtY= github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932/go.mod h1:NOuUCSz6Q9T7+igc/hlvDOUdtWKryOrtFyIVABv/p7k= github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= github.com/bits-and-blooms/bitset v1.4.0 h1:+YZ8ePm+He2pU3dZlIZiOeAKfrBkXi1lSrXJ/Xzgbu8= github.com/bits-and-blooms/bitset v1.4.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874 h1:N7oVaKyGp8bttX0bfZGmcGkjz7DLQXhAn3DNd3T0ous= github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874/go.mod h1:r5xuitiExdLAJ09PR7vBVENGvp4ZuTBeWTGtxuX3K+c= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA= github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q= github.com/bytedance/gopkg v0.0.0-20220413063733-65bf48ffb3a7/go.mod h1:2ZlV9BaUH4+NXIBF0aMdKKAnHTzqH+iMU4KUjAbL23Q= github.com/bytedance/gopkg v0.0.0-20220817015305-b879a72dc90f h1:U3Bk6S9UyqFM5tU3bZ3pwqx5xyypHP7Bm2QCbOUwxSc= github.com/bytedance/gopkg v0.0.0-20220817015305-b879a72dc90f/go.mod h1:2ZlV9BaUH4+NXIBF0aMdKKAnHTzqH+iMU4KUjAbL23Q= github.com/bytedance/mockey v1.2.0 h1:847+X2fBSM4s/AIN4loO5d16PCgEj53j7Q8YVB+8P6c= github.com/bytedance/mockey v1.2.0/go.mod h1:+Jm/fzWZAuhEDrPXVjDf/jLM2BlLXJkwk94zf2JZ3X4= github.com/camunda/zeebe/clients/go/v8 v8.2.12 h1:VWkbyhcZFXLqrLXLjICFrKk7Y4Hia9ldKIFoO5V5M8o= github.com/camunda/zeebe/clients/go/v8 v8.2.12/go.mod h1:4mpOks0uLXPbOCW82g/H9ZHDfdr90ikvFBWGwDV+fG8= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/cenkalti/backoff v2.0.0+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chebyrash/promise v0.0.0-20230709133807-42ec49ba1459 h1:s7UrE2T8jRoriLIddT8fW5+Wf2sXcOgfteXUKD74SaU= github.com/chebyrash/promise v0.0.0-20230709133807-42ec49ba1459/go.mod h1:CQthfPdCoGmlBJAG/sP9Km5nfK1/jGpDf1RiG/LUxXw= github.com/chenzhuoyu/iasm v0.9.0 h1:9fhXjVzq5hUy2gkhhgHl95zG2cEAhw9OSGs8toWWAwo= github.com/chenzhuoyu/iasm v0.9.0/go.mod h1:Xjy2NpN3h7aUqeqM+woSuuvxmIe6+DDsiNLIrkAmYog= github.com/choleraehyq/pid v0.0.16/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U= github.com/choleraehyq/pid v0.0.18 h1:O7LLxPoOyt3YtonlCC8BmNrF9P6Hc8B509UOqlPSVhw= github.com/choleraehyq/pid v0.0.18/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U= github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/mxj/v2 v2.5.5/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s= github.com/clbanning/mxj/v2 v2.5.6 h1:Jm4VaCI/+Ug5Q57IzEoZbwx4iQFA6wkXv72juUSeK+g= github.com/clbanning/mxj/v2 v2.5.6/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.14.0 h1:dEopBSOSjB5fM9r76ufM44AVj9Dnz2IOM0Xs6FVxZRM= github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.14.0/go.mod h1:qDSbb0fgIfFNjZrNTPtS5MOMScAGyQtn1KlSvoOdqYw= github.com/cloudevents/sdk-go/v2 v2.14.0 h1:Nrob4FwVgi5L4tV9lhjzZcjYqFVyJzsA56CwPaPfv6s= github.com/cloudevents/sdk-go/v2 v2.14.0/go.mod h1:xDmKfzNjM8gBvjaF8ijFjM1VYOVUEeUfapHMUX1T5To= github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58 h1:F1EaeKL/ta07PY/k9Os/UFtwERei2/XzGemhpGnBKNg= github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80= github.com/cloudwego/fastpb v0.0.4-0.20230131074846-6fc453d58b96 h1:61PQT0CXNUuQDiDKv/QQ+pFi9uthExZLQz8b5WfS7Qw= github.com/cloudwego/fastpb v0.0.4-0.20230131074846-6fc453d58b96/go.mod h1:/V13XFTq2TUkxj2qWReV8MwfPC4NnPcy6FsrojnsSG0= github.com/cloudwego/frugal v0.1.6/go.mod h1:9ElktKsh5qd2zDBQ5ENhPSQV7F2dZ/mXlr1eaZGDBFs= github.com/cloudwego/frugal v0.1.14 h1:vkjQMb5OsPL779RfMdLI4YJZsOH8fR0ewJpTuAVSeiQ= github.com/cloudwego/frugal v0.1.14/go.mod h1:zFBA63ne4+Tz4qayRZFZf+ZVwGqTzb+1Xe3ZDCq+Wfc= github.com/cloudwego/kitex v0.5.0 h1:f/rip2gp8mdeTpi0WQFv7BdDdkdZn/Q0KvBCm9Mi+7c= github.com/cloudwego/kitex v0.5.0/go.mod h1:yhw7XikNVG4RstmlQAidBuxMlZYpIiCLsDU8eHPGEMo= github.com/cloudwego/kitex-examples v0.1.1 h1:5uGqbGEobl8pKSVKwaWgltuf/JAa8Fg2MioX4WmlCXw= github.com/cloudwego/kitex-examples v0.1.1/go.mod h1:5V7LsSJtY18KnceJdvpxYswOfgV3kXE0BGm5mRYyuAg= github.com/cloudwego/netpoll v0.3.2 h1:/998ICrNMVBo4mlul4j7qcIeY7QnEfuCCPPwck9S3X4= github.com/cloudwego/netpoll v0.3.2/go.mod h1:xVefXptcyheopwNDZjDPcfU6kIjZXZ4nY550k1yH9eQ= github.com/cloudwego/thriftgo v0.2.8/go.mod h1:dAyXHEmKXo0LfMCrblVEY3mUZsdeuA5+i0vF5f09j7E= github.com/cloudwego/thriftgo v0.3.0 h1:BBb9hVcqmu9p4iKUP/PSIaDB21Vfutgd7k2zgK37Q9Q= github.com/cloudwego/thriftgo v0.3.0/go.mod h1:AvH0iEjvKHu3cdxG7JvhSAaffkS4h2f4/ZxpJbm48W4= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4= github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/couchbaselabs/gocbconnstr v1.0.5 h1:e0JokB5qbcz7rfnxEhNRTKz8q1svoRvDoZihsiwNigA= github.com/couchbaselabs/gocbconnstr v1.0.5/go.mod h1:KV3fnIKMi8/AzX0O9zOrO9rofEqrRF1d2rG7qqjxC7o= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creasty/defaults v1.5.2 h1:/VfB6uxpyp6h0fr7SPp7n8WJBoV8jfxQXPCnkVSjyls= github.com/creasty/defaults v1.5.2/go.mod h1:FPZ+Y0WNrbqOVw+c6av63eyHUAl6pMHZwqLPvXUZGfY= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/dancannon/gorethink v4.0.0+incompatible h1:KFV7Gha3AuqT+gr0B/eKvGhbjmUv0qGF43aKCIKVE9A= github.com/dancannon/gorethink v4.0.0+incompatible/go.mod h1:BLvkat9KmZc1efyYwhz3WnybhRZtgF1K929FD8z1avU= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/dapr/components-contrib v0.0.0-20240618132727-a385743e35c4 h1:wzvmUrvKwnZHNAf/D0ipOQTU0WFJ4twgAizoKPQ7Tik= github.com/dapr/components-contrib v0.0.0-20240618132727-a385743e35c4/go.mod h1:nu+nC0WCWAg46zT/Y+mdW7i6HcabjqdwmO/PudNV4gc= github.com/dapr/kit v0.13.1-0.20240523225705-106329e5839f h1:X/QX+YP+2z/f5F5XGpUsZ7hfdwYTlcK6M3n7D/mkpcM= github.com/dapr/kit v0.13.1-0.20240523225705-106329e5839f/go.mod h1:LkPZyrSpa2xLBgYMwUhDbWZcZVt/WdL7FSPlN0PrSog= github.com/dave/jennifer v1.4.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d/go.mod h1:tmAIfUFEirG/Y8jhZ9M+h36obRZAk/1fcSpXwAVlfqE= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/deepmap/oapi-codegen v1.11.0 h1:f/X2NdIkaBKsSdpeuwLnY/vDI0AtPUrmB5LMgc7YD+A= github.com/deepmap/oapi-codegen v1.11.0/go.mod h1:k+ujhoQGxmQYBZBbxhOZNZf4j08qv5mC+OH+fFTnKxM= github.com/dgraph-io/badger/v3 v3.2103.5 h1:ylPa6qzbjYRQMU6jokoj4wzcaweHylt//CH0AKt0akg= github.com/dgraph-io/badger/v3 v3.2103.5/go.mod h1:4MPiseMeDQ3FNCYwRbbcBOGJLf5jsE0PPFzRiKjtcdw= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= github.com/didip/tollbooth/v7 v7.0.1 h1:TkT4sBKoQoHQFPf7blQ54iHrZiTDnr8TceU+MulVAog= github.com/didip/tollbooth/v7 v7.0.1/go.mod h1:VZhDSGl5bDSPj4wPsih3PFa4Uh9Ghv8hgacaTm5PRT4= github.com/dimfeld/httptreemux v5.0.1+incompatible h1:Qj3gVcDNoOthBAqftuD596rm4wg/adLLz5xh5CmpiCA= github.com/dimfeld/httptreemux v5.0.1+incompatible/go.mod h1:rbUlSV+CCpv/SuqUTP/8Bk2O3LyUV436/yaRGkhP6Z0= github.com/dubbogo/go-zookeeper v1.0.3/go.mod h1:fn6n2CAEer3novYgk9ULLwAjuV8/g4DdC2ENwRb6E+c= github.com/dubbogo/go-zookeeper v1.0.4-0.20211212162352-f9d2183d89d5/go.mod h1:fn6n2CAEer3novYgk9ULLwAjuV8/g4DdC2ENwRb6E+c= github.com/dubbogo/gost v1.9.0/go.mod h1:pPTjVyoJan3aPxBPNUX0ADkXjPibLo+/Ib0/fADXSG8= github.com/dubbogo/gost v1.11.18/go.mod h1:vIcP9rqz2KsXHPjsAwIUtfJIJjppQLQDcYaZTy/61jI= github.com/dubbogo/gost v1.11.23/go.mod h1:PhJ8+qZJx+Txjx1KthNPuVkCvUca0jRLgKWj/noGgeI= github.com/dubbogo/gost v1.11.25/go.mod h1:iovrPhv0hyakhQGVr4jwiECBL9HXNuBY4VV3HWK5pM0= github.com/dubbogo/gost v1.13.1 h1:71EJIwV6ev0CxWqWPwcDcHhzEq1Q5pUmCkLcLCBaqvM= github.com/dubbogo/gost v1.13.1/go.mod h1:9HMXBv+WBMRWhF3SklpqDjkS/01AKWm2SrVdz/A0xJI= github.com/dubbogo/grpc-go v1.42.9/go.mod h1:F1T9hnUvYGW4JLK1QNriavpOkhusU677ovPzLkk6zHM= github.com/dubbogo/jsonparser v1.0.1/go.mod h1:tYAtpctvSP/tWw4MeelsowSPgXQRVHHWbqL6ynps8jU= github.com/dubbogo/net v0.0.4/go.mod h1:1CGOnM7X3he+qgGNqjeADuE5vKZQx/eMSeUkpU3ujIc= github.com/dubbogo/triple v1.0.9/go.mod h1:1t9me4j4CTvNDcsMZy6/OGarbRyAUSY0tFXGXHCp7Iw= github.com/dubbogo/triple v1.1.8 h1:yE+J3W1NTZCEPa1FoX+VWZH6UF1c0+A2MGfERlU2zbI= github.com/dubbogo/triple v1.1.8/go.mod h1:9pgEahtmsY/avYJp3dzUQE8CMMVe1NtGBmUhfICKLJk= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.5.0 h1:dRsaR00whmQD+SgVKlq/vCRFNgtEb5yppyeVos3Yce0= github.com/eapache/go-resiliency v1.5.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws= github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/eclipse/paho.mqtt.golang v1.4.3 h1:2kwcUGn8seMUfWndX0hGbvH8r7crgcJguQNCyp70xik= github.com/eclipse/paho.mqtt.golang v1.4.3/go.mod h1:CSYvoAlsMkhYOXh/oKyxa8EcBci6dVkLCbo5tTC1RIE= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/emicklei/go-restful/v3 v3.8.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.0/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v5.7.0+incompatible h1:vgGkfT/9f8zE6tvSCe74nfpAVDQ2tG6yudJd8LBksgI= github.com/evanphx/json-patch v5.7.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch/v5 v5.5.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= github.com/evanphx/json-patch/v5 v5.8.1 h1:iPEdwg0XayoS+E7Mth9JxwUtOgyVxnDTXHtKhZPlZxA= github.com/evanphx/json-patch/v5 v5.8.1/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/fasthttp-contrib/sessions v0.0.0-20160905201309-74f6ac73d5d5 h1:M4CVMQ5ueVmGZAtkW2bsO+ftesCYpfxl27JTqtzKBzE= github.com/fasthttp-contrib/sessions v0.0.0-20160905201309-74f6ac73d5d5/go.mod h1:MQXNGeXkpojWTxbN7vXoE3f7EmlA11MlJbsrJpVBINA= github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239/go.mod h1:Gdwt2ce0yfBxPvZrHkprdPPTTS3N5rwmLE8T22KBXlw= github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/foxcpp/go-mockdns v1.0.0 h1:7jBqxd3WDWwi/6WhDvacvH1XsN3rOLXyHM1uhvIx6FI= github.com/foxcpp/go-mockdns v1.0.0/go.mod h1:lgRN6+KxQBawyIghpnl5CezHFGS9VLzvtVlwxvzXTQ4= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/frankban/quicktest v1.10.2/go.mod h1:K+q6oSqb0W0Ininfk863uOk1lMy69l/P6txr3mVT54s= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/gavv/httpexpect v2.0.0+incompatible h1:1X9kcRshkSKEjNJJxX9Y9mQ5BRfbxU5kORdjhlA1yX8= github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= github.com/getkin/kin-openapi v0.94.0/go.mod h1:LWZfzOd7PRy8GJ1dJ6mCU6tNdSfOwRac1BUPam4aw6Q= github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 h1:Mn26/9ZMNWSw9C9ERFA1PUxfmGpolnw2v0bKOREu5ew= github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32/go.mod h1:GIjDIg/heH5DOkXY3YJ/wNhfHsQHoXGjl8G8amsYQ1I= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.7.7/go.mod h1:axIBovoeJpVj8S3BwE0uPMTeReE4+AfFtqpqaZ1qq1U= github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-chi/chi/v5 v5.0.11 h1:BnpYbFZ3T3S1WMpD79r7R5ThWX40TaFB7L31Y8xqSwA= github.com/go-chi/chi/v5 v5.0.11/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4= github.com/go-chi/cors v1.2.1/go.mod h1:sSbTewc+6wYHBBCW7ytsFSn836hqM7JxpglAy2Vzc58= github.com/go-co-op/gocron v1.9.0/go.mod h1:DbJm9kdgr1sEvWpHCA7dFFs/PGHPMil9/97EXCRPr4k= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A= github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-jose/go-jose/v3 v3.0.1 h1:pWmKFVtt+Jl0vBZTIpz/eAKwsm6LkIxDVVbFHKkchhA= github.com/go-jose/go-jose/v3 v3.0.1/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0 h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= github.com/go-ldap/ldap/v3 v3.1.10/go.mod h1:5Zun81jBTabRaI8lzN7E1JjyEl1g6zI6u9pd8luAK4Q= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo= github.com/go-logr/zapr v1.2.4/go.mod h1:FyHWQIzQORZ0QVE1BtVHv3cKtNLuXsbNLtpuhNapBOA= github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= github.com/go-openapi/jsonpointer v0.20.0 h1:ESKJdU9ASRfaPNOPRx12IUyA1vn3R9GiE3KYD14BXdQ= github.com/go-openapi/jsonpointer v0.20.0/go.mod h1:6PGzBjjIIumbLYysB73Klnms1mwnU4G3YHOECG3CedA= github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU= github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es= github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew= github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= github.com/go-pkgz/expirable-cache v0.1.0 h1:3bw0m8vlTK8qlwz5KXuygNBTkiKRTPrAGXU0Ej2AC1g= github.com/go-pkgz/expirable-cache v0.1.0/go.mod h1:GTrEl0X+q0mPNqN6dtcQXksACnzCBQ5k/k1SwXJsZKs= github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= github.com/go-playground/validator/v10 v10.11.0 h1:0W+xRM511GY47Yy3bZUbJVitCNg2BOGlCyvTqsp/xIw= github.com/go-playground/validator/v10 v10.11.0/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= github.com/go-resty/resty/v2 v2.7.0 h1:me+K9p3uhSmXtrBZ4k9jcEAfJmuC8IivWHwaLZwPrFY= github.com/go-resty/resty/v2 v2.7.0/go.mod h1:9PWDzw47qPphMRFfhsyk0NnSgvluHcljSMVIq3w7q0I= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/go-test/deep v1.0.2/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/go-zookeeper/zk v1.0.3 h1:7M2kwOsc//9VeeFiPtf+uSJlVpU66x9Ba5+8XK7/TDg= github.com/go-zookeeper/zk v1.0.3/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/gocql/gocql v1.5.2 h1:WnKf8xRQImcT/KLaEWG2pjEeryDB7K0qQN9mPs1C58Q= github.com/gocql/gocql v1.5.2/go.mod h1:3gM2c4D3AnkISwBxGnMMsS8Oy4y2lhbPRsH4xnJrHG8= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0ktxqI+Sida1w446QrXBRJ0nee3SNZlA= github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A= github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac/go.mod h1:P32wAyui1PQ58Oce/KYkOqQv8cVw1zAapXOl+dRFGbc= github.com/gonum/floats v0.0.0-20181209220543-c233463c7e82/go.mod h1:PxC8OnwL11+aosOB5+iEPoV3picfs8tUpkVd0pDo+Kg= github.com/gonum/integrate v0.0.0-20181209220457-a422b5c0fdf2/go.mod h1:pDgmNM6seYpwvPos3q+zxlXMsbve6mOIPucUnUOrI7Y= github.com/gonum/internal v0.0.0-20181124074243-f884aa714029/go.mod h1:Pu4dmpkhSyOzRwuXkOgAvijx4o+4YMUJJo9OvPYMkks= github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9/go.mod h1:XA3DeT6rxh2EAE789SSiSJNqxPaC0aE9J8NTOI0Jo/A= github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP0HCqCz+K4ts155PXIlUywf0wqN+GfPZw= github.com/gonum/stat v0.0.0-20181125101827-41a0da705a5b/go.mod h1:Z4GIJBJO3Wa4gD4vbwQxXXZ+WHmW6E9ixmNrwvs0iZs= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/cel-go v0.18.2 h1:L0B6sNBSVmt0OyECi8v6VOS74KOc9W/tLiWKfZABvf4= github.com/google/cel-go v0.18.2/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/flatbuffers v2.0.8+incompatible h1:ivUb1cGomAB101ZM1T0nOiWz9pSrTMoa9+EiY7igmkM= github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3/go.mod h1:gSuNB+gJaOiQKLEZ+q+PK9Mq3SOzhRcw2GsGS/FhYDk= github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ= github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.12.2 h1:mhN09QQW1jEWeMF74zGR81R30z4VJzjZsfkUhuHF+DA= github.com/googleapis/gax-go/v2 v2.12.2/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20190910122728-9d188e94fb99/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0= github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY= github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= github.com/grafana/k6-operator v0.0.8 h1:T3i6eYY10jgXDirgYiuKT29x4/8Y44kf7QBTX3l90MI= github.com/grafana/k6-operator v0.0.8/go.mod h1:5HKB/+2FEQY1w9JgnkJM8JVmh/jQcILIeOZe11eYmRU= github.com/grandcat/zeroconf v1.0.0 h1:uHhahLBKqwWBV6WZUDAT71044vwOTL+McW0mBJvo6kE= github.com/grandcat/zeroconf v1.0.0/go.mod h1:lTKmG1zh86XyCoUeIHSA4FJMBwCJiQmGfcP2PdzytEs= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.14.6/go.mod h1:zdiPV4Yse/1gnckTHtghG4GkDEdKCRJduHpTxT3/jcw= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed h1:5upAirOpQc1Q53c0bnx2ufif5kANL7bfZWcc6VJWJd8= github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed/go.mod h1:tMWxXQ9wFIaZeTI9F+hmhFiGpFmhOHzyShyFUhRm0H4= github.com/hamba/avro/v2 v2.15.0 h1:pQT9LzSV6/VWmbl89QQKc+XsN9oAIOQAK2eA36MnfvQ= github.com/hamba/avro/v2 v2.15.0/go.mod h1:Q9YK+qxAhtVrNqOhwlZTATLgLA8qxG2vtvkhK8fJ7Jo= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= github.com/hashicorp/consul/api v1.25.1 h1:CqrdhYzc8XZuPnhIYZWH45toM0LB9ZeYr/gvpLVI3PE= github.com/hashicorp/consul/api v1.25.1/go.mod h1:iiLVwR/htV7mas/sy0O+XSuEnrdBUUydemjxcUrAt4g= github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.14.1 h1:ZiwE2bKb+zro68sWzZ1SgHF3kRMBZ94TwOCFRF4ylPs= github.com/hashicorp/consul/sdk v0.14.1/go.mod h1:vFt03juSzocLRFo59NkeQHHmQa6+g7oU0pfzdI1mUhg= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-kms-wrapping/entropy v0.1.0/go.mod h1:d1g9WGtAunDNpek8jUIEJnBlbgKS1N2Q61QkHiZyR1g= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI= github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-msgpack/v2 v2.1.1 h1:xQEY9yB2wnHitoSzk/B9UjXWRQ67QKu5AOm8aFp8N3I= github.com/hashicorp/go-msgpack/v2 v2.1.1/go.mod h1:upybraOAblm4S7rx0+jeNy+CWWhzywQsSRV5033mMu4= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-secure-stdlib/base62 v0.1.1/go.mod h1:EdWO6czbmthiwZ3/PUsDV+UD1D5IRU4ActiaWGwt0Yw= github.com/hashicorp/go-secure-stdlib/mlock v0.1.1/go.mod h1:zq93CJChV6L9QTfGKtfBxKqD7BqqXx5O04A/ns2p5+I= github.com/hashicorp/go-secure-stdlib/parseutil v0.1.1/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= github.com/hashicorp/go-secure-stdlib/password v0.1.1/go.mod h1:9hH302QllNwu1o2TGYtSk8I8kTAN0ca1EHpwhm5Mmzo= github.com/hashicorp/go-secure-stdlib/strutil v0.1.1/go.mod h1:gKOamz3EwoIoJq7mlMIRBpVTAUn8qPCrEclOKKWhD3U= github.com/hashicorp/go-secure-stdlib/tlsutil v0.1.1/go.mod h1:l8slYwnJA26yBz+ErHpp2IRCLr0vuOMGBORIz4rRiAs= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc= github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.1 h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI= github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/memberlist v0.5.0 h1:EtYPN8DpAURiapus508I4n9CzHs2W+8NZGbmmR/prTM= github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= github.com/hashicorp/raft v1.1.0/go.mod h1:4Ak7FSPnuvmb0GV6vgIAJ4vYT4bek9bb6Q+7HVbyzqM= github.com/hashicorp/raft v1.4.0 h1:tn28S/AWv0BtRQgwZv/1NELu8sCvI0FixqL8C8MYKeY= github.com/hashicorp/raft v1.4.0/go.mod h1:nz64BIjXphDLATfKGG5RzHtNUPioLeKFsXEm88yTVew= github.com/hashicorp/raft-boltdb v0.0.0-20230125174641-2a8082862702 h1:RLKEcCuKcZ+qp2VlaaZsYZfLOmIiuJNpEi48Rl8u9cQ= github.com/hashicorp/raft-boltdb v0.0.0-20230125174641-2a8082862702/go.mod h1:nTakvJ4XYq45UXtn0DbwR4aU9ZdjlnIenpbs6Cd+FM0= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY= github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= github.com/hashicorp/vault/api v1.0.4/go.mod h1:gDcqh3WGcR1cpF5AJz/B1UFheUEneMoIospckxBxk6Q= github.com/hashicorp/vault/sdk v0.1.13/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M= github.com/hashicorp/vault/sdk v0.3.0/go.mod h1:aZ3fNuL5VNydQk8GcLJ2TV8YCRVvyaakYkhZRoVuhj0= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hazelcast/hazelcast-go-client v0.0.0-20190530123621-6cf767c2f31a h1:j6SSiw7fWemWfrJL801xiQ6xRT7ZImika50xvmPN+tg= github.com/hazelcast/hazelcast-go-client v0.0.0-20190530123621-6cf767c2f31a/go.mod h1:VhwtcZ7sg3xq7REqGzEy7ylSWGKz4jZd05eCJropNzI= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/http-wasm/http-wasm-host-go v0.6.0 h1:Vd4XvcFB3NMgWp2VLCQaiqYgLneN2lChbyN9NGoNDro= github.com/http-wasm/http-wasm-host-go v0.6.0/go.mod h1:zQB3w+df4hryDEqBorGyA1DwPJ86LfKIASNLFuj6CuI= github.com/huaweicloud/huaweicloud-sdk-go-obs v3.23.4+incompatible h1:XRAk4HBDLCYEdPLWtKf5iZhOi7lfx17aY0oSO9+mcg8= github.com/huaweicloud/huaweicloud-sdk-go-obs v3.23.4+incompatible/go.mod h1:l7VUhRbTKCzdOacdT4oWCwATKyvZqUOlOqr0Ous3k4s= github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.56 h1:ULzGSSe95hkOdh17NsiPV3lw58D0SC6M/6askOwF12Q= github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.56/go.mod h1:bsqx6o47Kl4YsniIjPwuoeqiIB5Fc3JbSpB2b3o3WFQ= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/imkira/go-interpol v1.1.0 h1:KIiKr0VSG2CUW1hl1jpiyuzuJeKUUpC8iM1AIE7N1Vk= github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb-client-go/v2 v2.12.3 h1:28nRlNMRIV4QbtIUvxhWqaxn0IpXeMSkY/uJa/O/vC4= github.com/influxdata/influxdb-client-go/v2 v2.12.3/go.mod h1:IrrLUbCjjfkmRuaCiGQg4m2GbkaeJDcuWoxiWdQEbA0= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf h1:7JTmneyiNEwVBOHSjoMxiWAqB992atOeepeFYegn5RU= github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa h1:s+4MhCQ6YrzisK6hFJUX53drDT4UsSW3DEhKn0ifuHw= github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa/go.mod h1:a/s9Lp5W7n/DD0VrVoyJ00FbP2ytTPDVOivvn2bMlds= github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA= github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= github.com/jackc/pgx/v5 v5.5.2 h1:iLlpgp4Cp/gC9Xuscl7lFL1PhhW+ZLtXZcrfCt4C3tA= github.com/jackc/pgx/v5 v5.5.2/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A= github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk= github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= github.com/jawher/mow.cli v1.0.4/go.mod h1:5hQj2V8g+qYmLUVWqu4Wuja1pI57M83EChYLVZ0sMKk= github.com/jawher/mow.cli v1.2.0/go.mod h1:y+pcA3jBAdo/GIZx/0rFjw/K2bVEODP9rfZOfaiq8Ko= github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg= github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= github.com/jcmturner/goidentity/v6 v6.0.1 h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o= github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8= github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869/go.mod h1:cJ6Cj7dQo+O6GJNiMx+Pa94qKj+TG8ONdKHgMNIyyag= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= github.com/jhump/protoreflect v1.8.2/go.mod h1:7GcYQDdMU/O/BBrl/cX6PNHpXh6cenjd8pneu5yW7Tg= github.com/jhump/protoreflect v1.15.2 h1:7YppbATX94jEt9KLAc5hICx4h6Yt3SaavhQRsIUEHP0= github.com/jhump/protoreflect v1.15.2/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg= github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM= github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= github.com/k0kubun/pp v3.0.1+incompatible h1:3tqvf7QgUnZ5tXO6pNAZlrvHgl6DvifjDrd9g2S9Z40= github.com/k0kubun/pp v3.0.1+incompatible/go.mod h1:GWse8YhT0p8pT4ir3ZgBbfZild3tgzSScAn6HmfYukg= github.com/kataras/go-errors v0.0.3 h1:RQSGEb5AHjsGbwhNW8mFC7a9JrgoCLHC8CBQ4keXJYU= github.com/kataras/go-errors v0.0.3/go.mod h1:K3ncz8UzwI3bpuksXt5tQLmrRlgxfv+52ARvAu1+I+o= github.com/kataras/go-serializer v0.0.4 h1:isugggrY3DSac67duzQ/tn31mGAUtYqNpE2ob6Xt/SY= github.com/kataras/go-serializer v0.0.4/go.mod h1:/EyLBhXKQOJ12dZwpUZZje3lGy+3wnvG7QKaVJtm/no= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/knadh/koanf v1.4.1 h1:Z0VGW/uo8NJmjd+L1Dc3S5frq6c62w5xQ9Yf4Mg3wFQ= github.com/knadh/koanf v1.4.1/go.mod h1:1cfH5223ZeZUOs8FU2UdTmaNfHpqgtjV0+NHjRO43gs= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/koding/multiconfig v0.0.0-20171124222453-69c27309b2d7/go.mod h1:Y2SaZf2Rzd0pXkLVhLlCiAXFCLSXAIbTKDivVgff/AM= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kubemq-io/kubemq-go v1.7.9 h1:dGTcs+cwmoLnnBX1H3xrKU2qd37JODNO/LHRk6V2NlQ= github.com/kubemq-io/kubemq-go v1.7.9/go.mod h1:f6n4qByudW/018Ymol/3s5sjJvt6flEN+ZgP1VVVv0U= github.com/kubemq-io/protobuf v1.3.1 h1:b4QcnpujV8U3go8pa2+FTESl6ygU6hY8APYibRtyemo= github.com/kubemq-io/protobuf v1.3.1/go.mod h1:mzbGBI05R+GhFLD520xweEIvDM+m4nI7ruJDhgEncas= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/labd/commercetools-go-sdk v1.3.1 h1:EZnym91AutZXLZ+D1x52kZF35Wq51ZUEMewGCXdoje8= github.com/labd/commercetools-go-sdk v1.3.1/go.mod h1:I+KKNALlg6PcSertsVA7E442koO99GT7gldWqwZlUGo= github.com/labstack/echo/v4 v4.7.2/go.mod h1:xkCDAdFCIf8jsFQ5NnbK7oqaF/yU1A1X20Ltm0OvSks= github.com/labstack/gommon v0.3.1/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/lestrrat-go/backoff/v2 v2.0.8/go.mod h1:rHP/q/r9aT27n24JQLa7JhSQZCKBBOiM/uP402WwN8Y= github.com/lestrrat-go/blackmagic v1.0.0/go.mod h1:TNgH//0vYSs8VXDCfkZLgIrVTTXQELZffUV0tz3MtdQ= github.com/lestrrat-go/blackmagic v1.0.1/go.mod h1:UrEqBzIR2U6CnzVyUtfM6oZNMt/7O7Vohk2J0OGSAtU= github.com/lestrrat-go/blackmagic v1.0.2 h1:Cg2gVSc9h7sz9NOByczrbUvLopQmXrfFx//N+AkAr5k= github.com/lestrrat-go/blackmagic v1.0.2/go.mod h1:UrEqBzIR2U6CnzVyUtfM6oZNMt/7O7Vohk2J0OGSAtU= github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE= github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E= github.com/lestrrat-go/httprc v1.0.4 h1:bAZymwoZQb+Oq8MEbyipag7iSq6YIga8Wj6GOiJGdI8= github.com/lestrrat-go/httprc v1.0.4/go.mod h1:mwwz3JMTPBjHUkkDv/IGJ39aALInZLrhBp0X7KGUZlo= github.com/lestrrat-go/iter v1.0.1/go.mod h1:zIdgO1mRKhn8l9vrZJZz9TUMMFbQbLeTsbqPDrJ/OJc= github.com/lestrrat-go/iter v1.0.2 h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI= github.com/lestrrat-go/iter v1.0.2/go.mod h1:Momfcq3AnRlRjI5b5O8/G5/BvpzrhoFTZcn06fEOPt4= github.com/lestrrat-go/jwx v1.2.24/go.mod h1:zoNuZymNl5lgdcu6P7K6ie2QRll5HVfF4xwxBBK1NxY= github.com/lestrrat-go/jwx/v2 v2.0.20 h1:sAgXuWS/t8ykxS9Bi2Qtn5Qhpakw1wrcjxChudjolCc= github.com/lestrrat-go/jwx/v2 v2.0.20/go.mod h1:UlCSmKqw+agm5BsOBfEAbTvKsEApaGNqHAEUTv5PJC4= github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU= github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= github.com/lestrrat/go-envload v0.0.0-20180220120943-6ed08b54a570/go.mod h1:BLt8L9ld7wVsvEWQbuLrUZnCMnUmLZ+CGDzKtclrTlE= github.com/lestrrat/go-file-rotatelogs v0.0.0-20180223000712-d3151e2a480f/go.mod h1:UGmTpUd3rjbtfIpwAPrcfmGf/Z1HS95TATB+m57TPB8= github.com/lestrrat/go-strftime v0.0.0-20180220042222-ba3bf9c1d042/go.mod h1:TPpsiPUEh0zFL1Snz4crhMlBe60PYxRHr5oFF3rRYg0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linkedin/goavro/v2 v2.11.1/go.mod h1:UgQUb2N/pmueQYH9bfqFioWxzYCZXSfF8Jw03O5sjqA= github.com/linkedin/goavro/v2 v2.12.0 h1:rIQQSj8jdAUlKQh6DttK8wCRv4t4QO09g1C4aBWXslg= github.com/linkedin/goavro/v2 v2.12.0/go.mod h1:KXx+erlq+RPlGSPmLF7xGo6SAbh8sCQ53x064+ioxhk= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/machinebox/graphql v0.2.2 h1:dWKpJligYKhYKO5A2gvNhkJdQMNZeChZYyBbrZkBZfo= github.com/machinebox/graphql v0.2.2/go.mod h1:F+kbVMHuwrQ5tYgU9JXlnskM8nOaFxCAEolaQybkjWA= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/marusama/semaphore/v2 v2.5.0 h1:o/1QJD9DBYOWRnDhPwDVAXQn6mQYD0gZaS1Tpx6DJGM= github.com/marusama/semaphore/v2 v2.5.0/go.mod h1:z9nMiNUekt/LTpTUQdpp+4sJeYqUGpwMHfW0Z8V8fnQ= github.com/matoous/go-nanoid v1.5.0/go.mod h1:zyD2a71IubI24efhpvkJz+ZwfwagzgSO6UNiFsZKN7U= github.com/matoous/go-nanoid/v2 v2.0.0 h1:d19kur2QuLeHmJBkvYkFdhFBzLoo1XVm2GgTpL+9Tj0= github.com/matoous/go-nanoid/v2 v2.0.0/go.mod h1:FtS4aGPVfEkxKxhdWPAspZpZSh1cOjtM7Ej/So3hR0g= github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/matryer/moq v0.2.7/go.mod h1:kITsx543GOENm48TUAQyJ9+SAvFSr7iGQXPoth/VUBk= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/microcosm-cc/bluemonday v1.0.24 h1:NGQoPtwGVcbGkKfvyYk1yRqknzBuoMiUrO6R7uFTPlw= github.com/microcosm-cc/bluemonday v1.0.24/go.mod h1:ArQySAMps0790cHSkdPEJ7bGkF2VePWH773hsJNSHf8= github.com/microsoft/durabletask-go v0.4.1-0.20240122160106-fb5c4c05729d h1:CVjystOHucBzKExLHD8E96D4KUNbehP0ozgue/6Tq/Y= github.com/microsoft/durabletask-go v0.4.1-0.20240122160106-fb5c4c05729d/go.mod h1:OSZ4K7SgqBEsaouk3lAVdDzvanIzsdj7angZ0FTeSAU= github.com/microsoft/go-mssqldb v1.6.0 h1:mM3gYdVwEPFrlg/Dvr2DNVEgYFG7L42l+dGc67NNNpc= github.com/microsoft/go-mssqldb v1.6.0/go.mod h1:00mDtPbeQCRGC1HwOOR5K/gr30P1NcEG0vx6Kbv2aJU= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 h1:BpfhmLKZf+SjVanKKhCgf3bg+511DmU9eDQTen7LLbY= github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/montanaflynn/stats v0.7.0 h1:r3y12KyNxj/Sb/iOE46ws+3mS1+MZca1wlHQFPsY/JU= github.com/montanaflynn/stats v0.7.0/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/moul/http2curl v1.0.0 h1:dRMWoAtb+ePxMlLkrCbAqh4TlPHXvoGUSQ323/9Zahs= github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= github.com/mrz1836/postmark v1.6.1 h1:UHAs9WuZEBZj12MdZ/iVRyoC4tq3ODTdYhE17OhJeJ4= github.com/mrz1836/postmark v1.6.1/go.mod h1:6z5MxAH00Kj44owtQaryv9Pbqp5OKT3wWcRSydB0p0A= github.com/mschoch/smat v0.2.0 h1:8imxQsjDm8yFEAVBe7azKmKSgzSkZXDuKkSq9374khM= github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOlotKw= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/nacos-group/nacos-sdk-go v1.0.8/go.mod h1:hlAPn3UdzlxIlSILAyOXKxjFSvDJ9oLzTJ9hLAK1KzA= github.com/nacos-group/nacos-sdk-go v1.1.1/go.mod h1:UHOtQNQY/qpk2dhg6gDq8u5+/CEIc3+lWmrmxEzX0/g= github.com/nacos-group/nacos-sdk-go/v2 v2.1.2/go.mod h1:ys/1adWeKXXzbNWfRNbaFlX/t6HVLWdpsNDvmoWTw0g= github.com/natefinch/lumberjack v2.0.0+incompatible h1:4QJd3OLAMgj7ph+yZTuX13Ld4UpgHp07nNdFX7mqFfM= github.com/natefinch/lumberjack v2.0.0+incompatible/go.mod h1:Wi9p2TTF5DG5oU+6YfsmYQpsTIOm0B1VNzQg9Mw6nPk= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= github.com/nats-io/jwt v0.3.2 h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= github.com/nats-io/jwt/v2 v2.5.0 h1:WQQ40AAlqqfx+f6ku+i0pOVm+ASirD4fUh+oQsiE9Ak= github.com/nats-io/jwt/v2 v2.5.0/go.mod h1:24BeQtRwxRV8ruvC4CojXlx/WQ/VjuwlYiH+vu/+ibI= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= github.com/nats-io/nats-server/v2 v2.9.23 h1:6Wj6H6QpP9FMlpCyWUaNu2yeZ/qGj+mdRkZ1wbikExU= github.com/nats-io/nats-server/v2 v2.9.23/go.mod h1:wEjrEy9vnqIGE4Pqz4/c75v9Pmaq7My2IgFmnykc4C0= github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= github.com/nats-io/nats.go v1.28.0 h1:Th4G6zdsz2d0OqXdfzKLClo6bOfoI/b1kInhRtFIy5c= github.com/nats-io/nats.go v1.28.0/go.mod h1:XpbWUlOElGwTYbMR7imivs7jJj9GtK7ypv321Wp6pjc= github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.4.6 h1:IzVe95ru2CT6ta874rt9saQRkWfe2nFj1NtvYSLqMzY= github.com/nats-io/nkeys v0.4.6/go.mod h1:4DxZNzenSVd1cYQoAa8948QY3QDjrHfcfVADymtkpts= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/niean/gotools v0.0.0-20151221085310-ff3f51fc5c60/go.mod h1:gH2bvE9/eX49hWK7CwwL/+/y+dodduyxs5cTpBzF5v0= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso= github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnuG+zWp9L0Uk= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oleiade/lane v1.0.1 h1:hXofkn7GEOubzTwNpeL9MaNy8WxolCYb9cInAIeqShU= github.com/oleiade/lane v1.0.1/go.mod h1:IyTkraa4maLfjq/GmHR+Dxb4kCMtEGeb+qmhlrQ5Mk4= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/ginkgo/v2 v2.0.0/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0= github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= github.com/onsi/ginkgo/v2 v2.5.0/go.mod h1:Luc4sArBICYCS8THh8v3i3i5CuSZO+RaQRaJoeNwomw= github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo= github.com/onsi/ginkgo/v2 v2.8.1/go.mod h1:N1/NbDngAFcSLdyZ+/aYTYGSlq9qMCS/cNKGJjy+csc= github.com/onsi/ginkgo/v2 v2.9.0/go.mod h1:4xkjoL/tZv4SMWeww56BU5kAt19mVB47gTWxmrTcxyk= github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo= github.com/onsi/ginkgo/v2 v2.11.0 h1:WgqUCUt/lT6yXoQ8Wef0fsNn5cAuMK7+KT9UFRz2tcU= github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM= github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM= github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfadcIAw= github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw= github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ= github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/open-policy-agent/opa v0.55.0 h1:s7Vm4ph6zDqqP/KzvUSw9fsKVsm9lhbTZhYGxxTK7mo= github.com/open-policy-agent/opa v0.55.0/go.mod h1:2Vh8fj/bXCqSwGMbBiHGrw+O8yrho6T/fdaHt5ROmaQ= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.4.2 h1:zjqfqHjUpPmB3c1GlCvvgsM1G4LkvqQbBDueDOCg/jA= github.com/openzipkin/zipkin-go v0.4.2/go.mod h1:ZeVkFjuuBiSy13y8vpSDCjMi9GoI3hPpCJSBx/EYFhY= github.com/oracle/oci-go-sdk/v54 v54.0.0 h1:CDLjeSejv2aDpElAJrhKpi6zvT/zhZCZuXchUUZ+LS4= github.com/oracle/oci-go-sdk/v54 v54.0.0/go.mod h1:+t+yvcFGVp+3ZnztnyxqXfQDsMlq8U25faBLa+mqCMc= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/panjf2000/ants/v2 v2.8.1 h1:C+n/f++aiW8kHCExKlpX6X+okmxKXP7DWLutxuAPuwQ= github.com/panjf2000/ants/v2 v2.8.1/go.mod h1:KIBmYG9QQX5U2qzFP/yQJaq/nSb6rahS9iEHkrCMgM8= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pashagolub/pgxmock/v2 v2.12.0 h1:IVRmQtVFNCoq7NOZ+PdfvB6fwnLJmEuWDhnc3yrDxBs= github.com/pashagolub/pgxmock/v2 v2.12.0/go.mod h1:D3YslkN/nJ4+umVqWmbwfSXugJIjPMChkGBG47OJpNw= github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU= github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 h1:Ii+DKncOVM8Cu1Hc+ETb5K+23HdAMvESYE3ZJ5b5cMI= github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE= github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ= github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/polarismesh/polaris-go v1.1.0/go.mod h1:tquawfjEKp1W3ffNJQSzhfditjjoZ7tvhOCElN7Efzs= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.5.1/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.9.0/go.mod h1:FqZLKOZnGdFAhOK4nqGHa7D66IdsO+O441Eve7ptJDU= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= github.com/prometheus/common v0.28.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.35.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= github.com/prometheus/statsd_exporter v0.21.0/go.mod h1:rbT83sZq2V+p73lHhPZfMc3MLCHmSHelCh9hSGYNLTQ= github.com/prometheus/statsd_exporter v0.22.7 h1:7Pji/i2GuhK6Lu7DHrtTkFmNBCudCPT1pX2CziuyQR0= github.com/prometheus/statsd_exporter v0.22.7/go.mod h1:N/TevpjkIh9ccs6nuzY3jQn9dFqnUakOjnEuMPJJJnI= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/puzpuzpuz/xsync/v3 v3.0.0 h1:QwUcmah+dZZxy6va/QSU26M6O6Q422afP9jO8JlnRSA= github.com/puzpuzpuz/xsync/v3 v3.0.0/go.mod h1:VjzYrABPabuM4KyBh1Ftq6u8nhwY5tBPKP9jpmh0nnA= github.com/rabbitmq/amqp091-go v1.8.1 h1:RejT1SBUim5doqcL6s7iN6SBmsQqyTgXb1xMlH0h1hA= github.com/rabbitmq/amqp091-go v1.8.1/go.mod h1:+jPrT9iY2eLjRaMSRHUhc3z14E/l85kv/f+6luSD3pc= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/redis/go-redis/v9 v9.2.1 h1:WlYJg71ODF0dVspZZCpYmoF1+U1Jjk9Rwd7pq6QmlCg= github.com/redis/go-redis/v9 v9.2.1/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rhnvrm/simples3 v0.6.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA= github.com/riferrei/srclient v0.6.0 h1:60LWpQW66AAL5TtWuMPZEplwgWLUdCK3OBUbag/JWFg= github.com/riferrei/srclient v0.6.0/go.mod h1:e3nZcDdaOSsaYqiO18INPBK4qnJTjEEyL2rlJcsTtrA= github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.28.0 h1:MirSo27VyNi7RJYP3078AA1+Cyzd2GB66qy3aUHvsWY= github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= github.com/sendgrid/rest v2.6.9+incompatible h1:1EyIcsNdn9KIisLW50MKwmSRSK+ekueiEMJ7NEoxJo0= github.com/sendgrid/rest v2.6.9+incompatible/go.mod h1:kXX7q3jZtJXK5c5qK83bSGMdV6tsOE70KbHoqJls4lE= github.com/sendgrid/sendgrid-go v3.13.0+incompatible h1:HZrzc06/QfBGesY9o3n1lvBrRONA+57rbDRKet7plos= github.com/sendgrid/sendgrid-go v3.13.0+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shirou/gopsutil v3.20.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shirou/gopsutil/v3 v3.21.6/go.mod h1:JfVbDpIBLVzT8oKbvMg9P3wEIMDDpVn+LwHTKj0ST88= github.com/shirou/gopsutil/v3 v3.22.2 h1:wCrArWFkHYIdDxx/FSfF5RB4dpJYW6t7rcp3+zL8uks= github.com/shirou/gopsutil/v3 v3.22.2/go.mod h1:WapW1AOOPlHyXr+yOyw3uYx36enocrtSoSBy0L5vUHY= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sijms/go-ora/v2 v2.7.18 h1:xl9CUeBlFi261AOKekiiFnfcp3ojHFEedLxIzsj909E= github.com/sijms/go-ora/v2 v2.7.18/go.mod h1:EHxlY6x7y9HAsdfumurRfTd+v8NrEOTR3Xl4FWlH6xk= github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/assertions v1.1.0 h1:MkTeG1DMwsrdH7QtLXy5W+fUxWq+vmb6cLmyJ7aRtF0= github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/soheilhy/cmux v0.1.5-0.20210205191134-5ec6847320e5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sony/gobreaker v0.5.0 h1:dRCvqm0P490vZPmy7ppEk2qCnCieBooFJ+YoXGYB+yg= github.com/sony/gobreaker v0.5.0/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= github.com/spiffe/go-spiffe/v2 v2.1.7 h1:VUkM1yIyg/x8X7u1uXqSRVRCdMdfRIEdFBzpqoeASGk= github.com/spiffe/go-spiffe/v2 v2.1.7/go.mod h1:QJDGdhXllxjxvd5B+2XnhhXB/+rC8gr+lNrtOryiWeE= github.com/stealthrocket/wasi-go v0.8.1-0.20230912180546-8efbab50fb58 h1:mTC4gyv3lcJ1XpzZMAckqkvWUqeT5Bva4RAT1IoHAAA= github.com/stealthrocket/wasi-go v0.8.1-0.20230912180546-8efbab50fb58/go.mod h1:ZAYCOqLJkc9P6fcq14TV4cf+gJ2fHthp9kCGxBViagE= github.com/stealthrocket/wazergo v0.19.1 h1:BPrITETPgSFwiytwmToO0MbUC/+RGC39JScz1JmmG6c= github.com/stealthrocket/wazergo v0.19.1/go.mod h1:riI0hxw4ndZA5e6z7PesHg2BtTftcZaMxRcoiGGipTs= github.com/stoewer/go-strcase v1.2.0 h1:Z2iHWqGXH00XYgqDmNgQbIBxf3wrNq0F3feEy0ainaU= github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stvp/go-udp-testing v0.0.0-20201019212854-469649b16807/go.mod h1:7jxmlfBCDBXRzr0eAQJ48XC1hBu1np4CS5+cHEYfwpc= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/supplyon/gremcos v0.1.40 h1:OFJw3MV44HNE9N6SKYK0zRBbEwyugyyjjqeXiGi5E3w= github.com/supplyon/gremcos v0.1.40/go.mod h1:LI6lxKObicSoIw1N04rHyjz9tGSaevM6Ydbo3XfyZfA= github.com/tchap/go-patricia/v2 v2.3.1 h1:6rQp39lgIYZ+MHmdEq4xzuk1t7OdC35z/xm0BGhTkes= github.com/tchap/go-patricia/v2 v2.3.1/go.mod h1:VZRHKAb53DLaG+nA9EaYYiaEx6YztwDlLElMsnSHD4k= github.com/tebeka/strftime v0.1.3/go.mod h1:7wJm3dZlpr4l/oVK0t1HYIc4rMzQ2XJlOMIUJUJH6XQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.732 h1:19TNf4ATZQLFDSKNsJ+FE86rc2HlqkFeIO6wNw2Hj6g= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.732/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssm v1.0.732 h1:JcnkgQlkfUYWl21YHGXdQKmmfpvp+ynG/c8ClF/euIE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssm v1.0.732/go.mod h1:WRkZJqoHH9P4KixWWLdUng99v8X5sr0BQglhVffornM= github.com/tetratelabs/wazero v1.7.0 h1:jg5qPydno59wqjpGrHph81lbtHzTrWzwwtD4cD88+hQ= github.com/tetratelabs/wazero v1.7.0/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y= github.com/tevid/gohamcrest v1.1.1/go.mod h1:3UvtWlqm8j5JbwYZh80D/PVBt0mJ1eJiYgZMibh0H/k= github.com/tidwall/gjson v1.9.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.13.0 h1:3TFY9yxOQShrvmjdM76K+jc66zJeT6D3/VFFYCGQf7M= github.com/tidwall/gjson v1.13.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/transform v0.0.0-20201103190739-32f242e2dbde h1:AMNpJRc7P+GTwVbl8DkK2I9I8BBUzNiHuH/tlxrpan0= github.com/tidwall/transform v0.0.0-20201103190739-32f242e2dbde/go.mod h1:MvrEmduDUz4ST5pGZ7CABCnOU5f3ZiOAZzT6b1A6nX8= github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= github.com/tjfoc/gmsm v1.3.2 h1:7JVkAn5bvUJ7HtU08iW6UiD+UTmJTIToHCfeFzkcCxM= github.com/tjfoc/gmsm v1.3.2/go.mod h1:HaUcFuY0auTiaHB9MHFGCPx5IaLhTUd2atbCFBQXn9w= github.com/tklauser/go-sysconf v0.3.6/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= github.com/tklauser/go-sysconf v0.3.9/go.mod h1:11DU/5sG7UexIrp/O6g35hrWzu0JxlwQ3LSFUzyeuhs= github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw= github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= github.com/tklauser/numcpus v0.3.0/go.mod h1:yFGUr7TUHQRAhyqBcEg0Ge34zDBAsIvJJcyE6boqnA8= github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o= github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/uber/jaeger-client-go v2.29.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0= github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw= github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.51.0 h1:8b30A5JlZ6C7AS81RsWjYMQmrZG6feChmgAolCl1SqA= github.com/valyala/fasthttp v1.51.0/go.mod h1:oI2XroL+lI7vdXyYoQk03bXBThfFl2cVdIA3Xl7cH8g= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/vmware/vmware-go-kcl v1.5.1 h1:1rJLfAX4sDnCyatNoD/WJzVafkwST6u/cgY/Uf2VgHk= github.com/vmware/vmware-go-kcl v1.5.1/go.mod h1:kXJmQ6h0dRMRrp1uWU9XbIXvwelDpTxSPquvQUBdpbo= github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.1.2 h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY= github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8= github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 h1:6fRhSjgLCkTD3JnJxvaJ4Sj+TYblw757bqYgZaOq5ZY= github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= github.com/yashtewari/glob-intersection v0.2.0 h1:8iuHdN88yYuCzCdjt0gDe+6bAhUwBeEWqThExu54RFg= github.com/yashtewari/glob-intersection v0.2.0/go.mod h1:LK7pIC3piUjovexikBbJ26Yml7g8xa5bsjfx2v1fwok= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA= github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M= github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.30/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da/go.mod h1:E1AXubJBdNmFERAOucpDIxNzeGfLzg0mYh+UfMWdChA= github.com/yuin/gopher-lua v1.1.0 h1:BojcDhfyDWgU2f2TOzYK/g5p2gxMrku8oupLDqlnSqE= github.com/yuin/gopher-lua v1.1.0/go.mod h1:GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw= github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/zeebo/errs v1.3.0 h1:hmiaKqgYZzcVgRL1Vkc1Mn2914BbzB0IBxs+ebeutGs= github.com/zeebo/errs v1.3.0/go.mod h1:sgbWHsvVuTPHcqJJGQ1WhI5KbWlHYz+2+2C/LSEtCw4= github.com/zouyx/agollo/v3 v3.4.5 h1:7YCxzY9ZYaH9TuVUBvmI6Tk0mwMggikah+cfbYogcHQ= github.com/zouyx/agollo/v3 v3.4.5/go.mod h1:LJr3kDmm23QSW+F1Ol4TMHDa7HvJvscMdVxJ2IpUTVc= go.einride.tech/aip v0.66.0 h1:XfV+NQX6L7EOYK11yoHHFtndeaWh3KbD9/cN/6iWEt8= go.einride.tech/aip v0.66.0/go.mod h1:qAhMsfT7plxBX+Oy7Huol6YUvZ0ZzdUz26yZsQwfl1M= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= go.etcd.io/etcd/api/v3 v3.5.0-alpha.0/go.mod h1:mPcW6aZJukV6Aa81LSKpBjQXTWlXB5r74ymPoSWa3Sw= go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= go.etcd.io/etcd/api/v3 v3.5.9 h1:4wSsluwyTbGGmyjJktOf3wFQoTBIURXHnq9n/G/JQHs= go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/pkg/v3 v3.5.9 h1:oidDC4+YEuSIQbsR94rY9gur91UPL6DnxDCIYd2IGsE= go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= go.etcd.io/etcd/client/v2 v2.305.0-alpha.0/go.mod h1:kdV+xzCJ3luEBSIeQyB/OEKkWKd8Zkux4sbDeANrosU= go.etcd.io/etcd/client/v3 v3.5.0-alpha.0/go.mod h1:wKt7jgDgf/OfKiYmCq5WFGxOFAkVMLxiiXgLDFhECr8= go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= go.etcd.io/etcd/client/v3 v3.5.9 h1:r5xghnU7CwbUxD/fbUtRyJGaYNfDun8sp/gTr1hew6E= go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= go.etcd.io/etcd/pkg/v3 v3.5.0-alpha.0/go.mod h1:tV31atvwzcybuqejDoY3oaNRTtlD2l/Ot78Pc9w7DMY= go.etcd.io/etcd/raft/v3 v3.5.0-alpha.0/go.mod h1:FAwse6Zlm5v4tEWZaTjmNhe17Int4Oxbu7+2r0DiD3w= go.etcd.io/etcd/server/v3 v3.5.0-alpha.0/go.mod h1:tsKetYpt980ZTpzl/gb+UOJj9RkIyCb1u4wjzMg90BQ= go.mongodb.org/mongo-driver v1.12.0/go.mod h1:AZkxhPnFJUoH7kZlFkVKucV20K387miPfm7oimrSmK0= go.mongodb.org/mongo-driver v1.12.1 h1:nLkghSU8fQNaK7oUmDhQFsnrtcoNy7Z6LVFKsEecqgE= go.mongodb.org/mongo-driver v1.12.1/go.mod h1:/rGBTebI3XYboVmgz+Wv3Bcbl3aD0QF9zl6kDDw18rQ= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 h1:cl5P5/GIfFh4t6xyruOgJP5QiA1pw4fYYdv6nc6CBWw= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0/go.mod h1:zgBdWWAu7oEEMC06MMKc5NLbA/1YDXV1sMpSqEeLQLg= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 h1:tIqheXEFWAZ7O8A7m+J0aPTmpJN3YQ7qetUAdkkkKpk= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0/go.mod h1:nUeKExfxAQVbiVFn32YXpXZZHZ61Cc3s3Rn1pDBGAb0= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 h1:digkEZCJWobwBqMwC0cwCq8/wkkRy/OowZg5OArWZrM= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0/go.mod h1:/OpE/y70qVkndM0TrxT4KBoN3RsFZP0QaofcfYrj76I= go.opentelemetry.io/otel/exporters/zipkin v1.21.0 h1:D+Gv6lSfrFBWmQYyxKjDd0Zuld9SRXpIrEsKZvE4DO4= go.opentelemetry.io/otel/exporters/zipkin v1.21.0/go.mod h1:83oMKR6DzmHisFOW3I+yIMGZUTjxiWaiBI8M8+TU5zE= go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw= go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I= go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= go.starlark.net v0.0.0-20230525235612-a134d8f9ddca h1:VdD38733bfYv5tUZwEIskMM93VanwNIi5bIKnDrJdEY= go.starlark.net v0.0.0-20230525235612-a134d8f9ddca/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.5.1/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8= go.uber.org/automaxprocs v1.5.3/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/ratelimit v0.3.0 h1:IdZd9wqvFXnvLvSEBo0KPcGfkoBGNkpTHlrE3Rcjkjw= go.uber.org/ratelimit v0.3.0/go.mod h1:So5LG7CV1zWpY1sHe+DXTJqQvOx+FFPFaAs2SnoyBaI= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.25.0 h1:4Hvk6GtkucQ790dqmj7l1eEnRdKm3k3ZUrUMS2d5+5c= go.uber.org/zap v1.25.0/go.mod h1:JIAUzQIH94IC4fOJQm7gMmBJP5k7wQfdcnYdPoEXJYk= goji.io v2.0.2+incompatible h1:uIssv/elbKRLznFUy3Xj4+2Mz/qKhek/9aZQDUMae7c= goji.io v2.0.2+incompatible/go.mod h1:sbqFwrtqZACxLBTQcdgVjFh54yGVCvwq8+w49MVMMIk= golang.org/x/arch v0.0.0-20201008161808-52c3e6f60cff/go.mod h1:flIaEI6LNU6xOCD5PaJvn9wGP0agmIOqjrtsKGRguv4= golang.org/x/arch v0.2.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/crypto v0.0.0-20180820150726-614d502a4dac/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191219195013-becbf705a915/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220513210258-46612604a0f9/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/exp v0.0.0-20240119083558-1b970713d09a h1:Q8/wZp0KX97QFTc2ywcOE0YRjZPVIx+MXInMzdvQqcA= golang.org/x/exp v0.0.0-20240119083558-1b970713d09a/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= golang.org/x/image v0.0.0-20220302094943-723b81ca9867/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211105192438-b53810dc28af/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220513224357-95641704303c/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180828065106-d99a578cf41b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200509044756-6aff5f38e54f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201223074533-0d417f636930/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211106132015-ebca88c72f68/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220110181412-a018aaa089fe/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220111092808-5a964db01320/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220513210249-45d2b4557a2a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220817070843-5a390386f1f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20220411224347-583f2d630306/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200509030707-2212a7e161a5/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20201014170642-d1624618ad65/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= google.golang.org/api v0.169.0 h1:QwWPy71FgMWqJN/l6jVlFHUa29a7dcUy02I8o799nPY= google.golang.org/api v0.169.0/go.mod h1:gpNOiMA2tZ4mf5R9Iwf4rK/Dcz0fbdIgWYWVoxmsyLg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210106152847-07624b53cd92/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJTh+ah5wIMsBW5c4tQwGTN3thOW9Y= google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:mqHbVIp48Muh7Ywss/AD6I5kNVKZMmAa/QEW58Gxp2s= google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.62.2 h1:iEIj1U5qjyBjzkM5nk3Fq+S1IbjbXSyqeULZ1Nfo4AA= google.golang.org/grpc v1.62.2/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/grpc/examples v0.0.0-20230224211313-3775f633ce20 h1:MLBCGN1O7GzIx+cBiwfYPwtmZ41U3Mn/cotLJciaArI= google.golang.org/grpc/examples v0.0.0-20230224211313-3775f633ce20/go.mod h1:Nr5H8+MlGWr5+xX/STzdoEqJrO+YteqFbMyCsrb6mH0= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc h1:2gGKlE2+asNV9m7xrywl36YYNnBG5ZQ0r/BOOxqPpmk= gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc/go.mod h1:m7x9LTH6d71AHyAX77c9yqWCCa3UKHcVEj9y7hAtKDk= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/couchbase/gocb.v1 v1.6.7 h1:Za2KhMBdo00+CKg4C09QetVziU8/N4YmQNwaPQqZWPg= gopkg.in/couchbase/gocb.v1 v1.6.7/go.mod h1:Ri5Qok4ZKiwmPr75YxZ0uELQy45XJgUSzeUnK806gTY= gopkg.in/couchbase/gocbcore.v7 v7.1.18 h1:d4yfIXWdf/ZmyuJjwRVVlGT/yqx8ICy6fcT/ViaMZsI= gopkg.in/couchbase/gocbcore.v7 v7.1.18/go.mod h1:48d2Be0MxRtsyuvn+mWzqmoGUG9uA00ghopzOs148/E= gopkg.in/couchbaselabs/gojcbmock.v1 v1.0.4 h1:r5WoWGyeTJQiNGsoWAsMJfz0JFF14xc2TJrYSs09VXk= gopkg.in/couchbaselabs/gojcbmock.v1 v1.0.4/go.mod h1:jl/gd/aQ2S8whKVSTnsPs6n7BPeaAuw9UglBD/OF7eo= gopkg.in/couchbaselabs/jsonx.v1 v1.0.1 h1:giDAdTGcyXUuY+uFCWeJ2foukiqMTYl4ORSxCi/ybcc= gopkg.in/couchbaselabs/jsonx.v1 v1.0.1/go.mod h1:oR201IRovxvLW/eISevH12/+MiKHtNQAKfcX8iWZvJY= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/evanphx/json-patch.v5 v5.6.0 h1:BMT6KIwBD9CaU91PJCZIe46bDmBWa9ynTQgJIOpfQBk= gopkg.in/evanphx/json-patch.v5 v5.6.0/go.mod h1:/kvTRh1TVm5wuM6OkHxqXtE/1nUZZpihg29RtuIyfvk= gopkg.in/fatih/pool.v2 v2.0.0 h1:xIFeWtxifuQJGk/IEPKsTduEKcKvPmhoiVDGpC40nKg= gopkg.in/fatih/pool.v2 v2.0.0/go.mod h1:8xVGeu1/2jr2wm5V9SPuMht2H5AEmf5aFMGSQixtjTY= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= gopkg.in/gorethink/gorethink.v4 v4.1.0 h1:xoE9qJ9Ae9KdKEsiQGCF44u2JdnjyohrMBRDtts3Gjw= gopkg.in/gorethink/gorethink.v4 v4.1.0/go.mod h1:M7JgwrUAmshJ3iUbEK0Pt049MPyPK+CYDGGaEjdZb/c= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.56.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/kataras/go-serializer.v0 v0.0.4 h1:mVy3gjU4zZZBe+8JbZDRTMPJdrB0lzBNsLLREBcKGgU= gopkg.in/kataras/go-serializer.v0 v0.0.4/go.mod h1:v2jHg/3Wp7uncDNzenTsX75PRDxhzlxoo/qDvM4ZGxk= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/square/go-jose.v2 v2.4.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= k8s.io/api v0.28.4 h1:8ZBrLjwosLl/NYgv1P7EQLqoO8MGQApnbgH8tu3BMzY= k8s.io/api v0.28.4/go.mod h1:axWTGrY88s/5YE+JSt4uUi6NMM+gur1en2REMR7IRj0= k8s.io/apiextensions-apiserver v0.28.4 h1:AZpKY/7wQ8n+ZYDtNHbAJBb+N4AXXJvyZx6ww6yAJvU= k8s.io/apiextensions-apiserver v0.28.4/go.mod h1:pgQIZ1U8eJSMQcENew/0ShUTlePcSGFq6dxSxf2mwPM= k8s.io/apimachinery v0.28.4 h1:zOSJe1mc+GxuMnFzD4Z/U1wst50X28ZNsn5bhgIIao8= k8s.io/apimachinery v0.28.4/go.mod h1:wI37ncBvfAoswfq626yPTe6Bz1c22L7uaJ8dho83mgg= k8s.io/cli-runtime v0.28.4 h1:IW3aqSNFXiGDllJF4KVYM90YX4cXPGxuCxCVqCD8X+Q= k8s.io/cli-runtime v0.28.4/go.mod h1:MLGRB7LWTIYyYR3d/DOgtUC8ihsAPA3P8K8FDNIqJ0k= k8s.io/client-go v0.28.4 h1:Np5ocjlZcTrkyRJ3+T3PkXDpe4UpatQxj85+xjaD2wY= k8s.io/client-go v0.28.4/go.mod h1:0VDZFpgoZfelyP5Wqu0/r/TRYcLYuJ2U1KEeoaPa1N4= k8s.io/code-generator v0.28.4 h1:tcOSNIZQvuAvXhOwpbuJkKbAABJQeyCcQBCN/3uI18c= k8s.io/code-generator v0.28.4/go.mod h1:OQAfl6bZikQ/tK6faJ18Vyzo54rUII2NmjurHyiN1g4= k8s.io/component-base v0.28.4 h1:c/iQLWPdUgI90O+T9TeECg8o7N3YJTiuz2sKxILYcYo= k8s.io/component-base v0.28.4/go.mod h1:m9hR0uvqXDybiGL2nf/3Lf0MerAfQXzkfWhUY58JUbU= k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 h1:pWEwq4Asjm4vjW7vcsmijwBhOr1/shsbSYiWXmNGlks= k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= k8s.io/klog/v2 v2.110.1 h1:U/Af64HJf7FcwMcXyKm2RPM22WZzyR7OSpYj5tg3cL0= k8s.io/klog/v2 v2.110.1/go.mod h1:YGtd1984u+GgbuZ7e08/yBuAfKLSO0+uR1Fhi6ExXjo= k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e h1:snPmy96t93RredGRjKfMFt+gvxuVAncqSAyBveJtr4Q= k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA= k8s.io/metrics v0.26.3 h1:pHI8XtmBbGGdh7bL0s2C3v93fJfxyktHPAFsnRYnDTo= k8s.io/metrics v0.26.3/go.mod h1:NNnWARAAz+ZJTs75Z66fJTV7jHcVb3GtrlDszSIr3fE= k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCfRziVtos3ofG/sQ= k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= lukechampine.com/uint128 v1.3.0 h1:cDdUVfRwDUDovz610ABgFD17nXD4/uDgVHl2sC3+sbo= lukechampine.com/uint128 v1.3.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= modernc.org/cc/v3 v3.41.0 h1:QoR1Sn3YWlmA1T4vLaKZfawdVtSiGx8H+cEojbC7v1Q= modernc.org/cc/v3 v3.41.0/go.mod h1:Ni4zjJYJ04CDOhG7dn640WGfwBzfE0ecX8TyMB0Fv0Y= modernc.org/ccgo/v3 v3.16.15 h1:KbDR3ZAVU+wiLyMESPtbtE/Add4elztFyfsWoNTgxS0= modernc.org/ccgo/v3 v3.16.15/go.mod h1:yT7B+/E2m43tmMOT51GMoM98/MtHIcQQSleGnddkUNI= modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ= modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM= modernc.org/libc v1.38.0 h1:o4Lpk0zNDSdsjfEXnF1FGXWQ9PDi1NOdWcLP5n13FGo= modernc.org/libc v1.38.0/go.mod h1:YAXkAZ8ktnkCKaN9sw/UDeUVkGYJ/YquGO4FTi5nmHE= modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4= modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo= modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E= modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E= modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4= modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= modernc.org/sqlite v1.28.0 h1:Zx+LyDDmXczNnEQdvPuEfcFVA2ZPyaD7UCZDjef3BHQ= modernc.org/sqlite v1.28.0/go.mod h1:Qxpazz0zH8Z1xCFyi5GSL3FzbtZ3fvbjmywNogldEW0= modernc.org/strutil v1.2.0 h1:agBi9dp1I+eOnxXeiZawM8F4LawKv4NzGWSaLfyeNZA= modernc.org/strutil v1.2.0/go.mod h1:/mdcBmfOibveCTBxUl5B5l6W+TTH1FXPLHZE6bTosX0= modernc.org/tcl v1.15.2 h1:C4ybAYCGJw968e+Me18oW55kD/FexcHbqH2xak1ROSY= modernc.org/tcl v1.15.2/go.mod h1:3+k/ZaEbKrC8ePv8zJWPtBSW0V7Gg9g8rkmhI1Kfs3c= modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y= modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY= modernc.org/z v1.7.3/go.mod h1:Ipv4tsdxZRbQyLq9Q1M6gdbkxYzdlrciF2Hi/lS7nWE= nhooyr.io/websocket v1.8.10 h1:mv4p+MnGrLDcPlBoWsvPP7XCzTYMXP9F9eIGoKbgx7Q= nhooyr.io/websocket v1.8.10/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c= nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/controller-runtime v0.16.3 h1:2TuvuokmfXvDUamSx1SuAOO3eTyye+47mJCigwG62c4= sigs.k8s.io/controller-runtime v0.16.3/go.mod h1:j7bialYoSn142nv9sCOJmQgDXQXxnroFU4VnX/brVJ0= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/kustomize/api v0.15.0 h1:6Ca88kEOBVotHDw+y2IsIMYtg9Pvv7MKpW9JMyF/OH4= sigs.k8s.io/kustomize/api v0.15.0/go.mod h1:p19kb+E14gN7zcIBR/nhByJDAfUa7N8mp6ZdH/mMXbg= sigs.k8s.io/kustomize/kyaml v0.15.0 h1:ynlLMAxDhrY9otSg5GYE2TcIz31XkGZ2Pkj7SdolD84= sigs.k8s.io/kustomize/kyaml v0.15.0/go.mod h1:+uMkBahdU1KNOj78Uta4rrXH+iH7wvg+nW7+GULvREA= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= stathat.com/c/consistent v1.0.0 h1:ezyc51EGcRPJUxfHGSgJjWzJdj3NiMU9pNfLNGiXV0c= stathat.com/c/consistent v1.0.0/go.mod h1:QkzMWzcbB+yQBL2AttO6sgsQS/JSTapcDISJalmCDS0=
mikeee/dapr
go.sum
sum
mit
239,810
# Monitoring Dashboard This includes dashboard templates to monitor Dapr system services and sidecars. For more detailed information, please read [Dapr Observability](https://docs.dapr.io/concepts/observability-concept/). ## Grafana You can set up [Prometheus](https://docs.dapr.io/operations/monitoring/prometheus/) and [Grafana](https://docs.dapr.io/operations/monitoring/grafana/) and import the templates to your Grafana dashboard to monitor Dapr. 1. [Dapr System Service Dashboard](./grafana-system-services-dashboard.json) - Shows Dapr system service status - dapr-operator, dapr-sidecar-injector, dapr-sentry, and dapr-placement 2. [Dapr Sidecar Dashboard](./grafana-sidecar-dashboard.json) - Shows Dapr sidecar status - sidecar health/resources, throughput/latency of HTTP and gRPC, Actor, mTLS, etc. 3. [Dapr Actor Dashboard](./grafana-actor-dashboard.json) - Shows Dapr sidecar status - actor invocation throughput/latency, timer/reminder triggers, and turn-based concurrency. ## Reference * [Supported Dapr metrics](../docs/development/dapr-metrics.md) * [Dapr Observability](https://docs.dapr.io/concepts/observability-concept) * [Setup Prometheus](https://docs.dapr.io/operations/monitoring/prometheus/) * [Setup Grafana](https://docs.dapr.io/operations/monitoring/grafana/)
mikeee/dapr
grafana/README.md
Markdown
mit
1,308
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "Dapr", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "limit": 100, "name": "Annotations & Alerts", "showIn": 0, "type": "dashboard" } ] }, "description": "This is the dashboard for Dapr Actor", "editable": true, "gnetId": null, "graphTooltip": 0, "id": 4, "iteration": 1607134103927, "links": [], "panels": [ { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 21, "panels": [], "title": "Throughput/latency", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows the turn-around latency when user app calls Dapr Actor API. For example, you can understand each statestore and service invocation performance.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 1 }, "hiddenSeries": false, "id": 19, "legend": { "alignAsTable": false, "avg": false, "current": true, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(dapr_http_server_latency_bucket{path=~\"/v1.0/actors/$dapr_actor_type/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "[95p] {{method}} {{path}} ({{app_id}})", "refId": "A" }, { "expr": "histogram_quantile(0.75, sum(rate(dapr_http_server_latency_bucket{path=~\"/v1.0/actors/$dapr_actor_type/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "[75p] {{method}} {{path}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor API Latency (App->Dapr) (95p, 75p)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "ms", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows completed request rate (rps) when User app calls Dapr Actor APIs.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 1 }, "hiddenSeries": false, "id": 31, "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum by (app_id, method, path) (rate(dapr_http_server_response_count{path=~\"/v1.0/actors/$dapr_actor_type/.*\", namespace=\"$namespace\"}[5m]))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{method}} {{path}} ({{app_id}})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor API request rate (App -> Dapr) (RPS)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "reqps", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows the inbound request latency from Dapr to App. You can analyze App's API endpoint performance.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 9 }, "hiddenSeries": false, "id": 18, "legend": { "avg": false, "current": true, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(dapr_http_client_roundtrip_latency_bucket{path=~\"actors/$dapr_actor_type/.*/method/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "[95p] {{method}} /{{path}} ({{app_id}})", "refId": "A" }, { "expr": "histogram_quantile(0.75, sum(rate(dapr_http_client_roundtrip_latency_bucket{path=~\"actors/$dapr_actor_type/.*/method/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "[75p] {{method}} /{{path}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor Callback latency (Dapr -> App) (95p, 75p)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "ms", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows request rate (rps) when Dapr runtime calls User app HTTP endpoints.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 9 }, "hiddenSeries": false, "id": 32, "interval": "", "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum by (app_id, method, path) (rate(dapr_http_client_completed_count{path=~\"actors/$dapr_actor_type/.*/method/.*\", namespace=\"$namespace\"}[5m]))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{method}} {{path}} ({{app_id}})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor Callback request rate (Dapr -> App) (RPS)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "reqps", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 17 }, "id": 71, "panels": [], "title": "Timer & Reminder", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "Timer trigger status", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 18 }, "hiddenSeries": false, "id": 72, "legend": { "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": false }, "lines": true, "linewidth": 2, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(dapr_http_client_roundtrip_latency_bucket{path=~\"actors/$dapr_actor_type/.*/method/timer/.*\", namespace=\"$namespace\"}[5m])) by (path)", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{path}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor timer trigger", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 1, "format": "none", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "Reminder trigger status", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 18 }, "hiddenSeries": false, "id": 73, "legend": { "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": false }, "lines": true, "linewidth": 2, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(dapr_http_client_roundtrip_latency_bucket{path=~\"actors/$dapr_actor_type/.*/method/remind/.*\", namespace=\"$namespace\"}[5m])) by (path)", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{path}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor reminder trigger", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 1, "format": "none", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 26 }, "id": 69, "panels": [], "title": "Concurrency", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "It contains the number of pending actor calls that are waiting to acquire the per-actor lock that enforces turn-based concurrency.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 27 }, "hiddenSeries": false, "id": 67, "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "dapr_runtime_actor_pending_actor_calls{actor_type=~\"$dapr_actor_type\"}", "interval": "", "legendFormat": "{{actor_type}}.{{actor_id}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Pending locks Per Actor", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "Pending Locks", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "refresh": "10s", "schemaVersion": 26, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": { "selected": false, "text": "pipeline", "value": "pipeline" }, "datasource": "Dapr", "definition": "label_values(dapr_runtime_component_loaded,namespace)", "error": null, "hide": 0, "includeAll": false, "label": "NAMESPACE", "multi": false, "name": "namespace", "options": [], "query": "label_values(dapr_runtime_component_loaded,namespace)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "selected": false, "text": "StateActor", "value": "StateActor" }, "datasource": "Dapr", "definition": "label_values(dapr_runtime_actor_pending_actor_calls,actor_type)", "error": null, "hide": 0, "includeAll": false, "label": "ACTOR TYPE", "multi": true, "name": "dapr_actor_type", "options": [], "query": "label_values(dapr_runtime_actor_pending_actor_calls,actor_type)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-14d", "to": "now" }, "timepicker": { "refresh_intervals": [ "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Dapr Actor Dashboard", "uid": "Ym9RqIuWk1", "version": 3 }
mikeee/dapr
grafana/grafana-actor-dashboard.json
JSON
mit
21,048
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "Dapr", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "limit": 100, "name": "Annotations & Alerts", "showIn": 0, "type": "dashboard" } ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "id": 3, "iteration": 1607134134143, "links": [], "panels": [ { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 16, "panels": [], "title": "Health monitor", "type": "row" }, { "cacheTimeout": null, "datasource": "Dapr", "description": "This shows the uptime of dapr runtime sidecar. If the sidecar is running for less than 10 minutes, the color will turn into RED.", "fieldConfig": { "defaults": { "custom": {}, "decimals": 2, "displayName": "", "mappings": [ { "id": 0, "op": "=", "text": "N/A", "type": 1, "value": "null" } ], "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 600 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 4, "w": 12, "x": 0, "y": 1 }, "id": 70, "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "7.3.3", "targets": [ { "expr": "time() - max(process_start_time_seconds{service=~\"($dapr_app_id)-dapr\", namespace=\"$namespace\"}) by (service)", "legendFormat": "{{service}}", "refId": "A" } ], "timeFrom": "5m", "timeShift": null, "title": "Sidecar uptime", "type": "stat" }, { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 72, "panels": [], "title": "Resource usage", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This shows total amount of Kernel and user CPU usage for Daprd.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 6 }, "hiddenSeries": false, "id": 9, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(container_cpu_usage_seconds_total{pod=~\"($dapr_app_id).*\", namespace=\"$namespace\"}[5m])) by (pod)", "interval": "", "legendFormat": "{{pod}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Total CPU usage (Kernel and User)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "s", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 6 }, "hiddenSeries": false, "id": 11, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(go_goroutines{service=~\"($dapr_app_id)-dapr.*\", namespace=\"$namespace\"}) by (service)", "legendFormat": "{{service}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Number of GO routines", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "The amount of heap memory that belongs specifically to that process in bytes.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 6 }, "hiddenSeries": false, "id": 10, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(go_memstats_alloc_bytes{service=~\"($dapr_app_id)-dapr\", namespace=\"$namespace\"}) by (service)", "interval": "", "legendFormat": "{{service}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Heap memory usage in bytes", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "decbytes", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "The amount of address space that a process is managing. This includes all types of memory, both in RAM and swapped out.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 6 }, "hiddenSeries": false, "id": 12, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(process_virtual_memory_bytes{service=~\"($dapr_app_id)-dapr\", namespace=\"$namespace\"}) by (service)", "interval": "", "legendFormat": "{{service}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Managed virtual memory in bytes", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 1, "format": "decbytes", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 21, "panels": [], "title": "Throughput/Latency - HTTP", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows the turn-around latency when user app calls Dapr API. For example, you can understand each statestore and service invocation performance.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 15 }, "hiddenSeries": false, "id": 19, "legend": { "alignAsTable": false, "avg": false, "current": true, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(dapr_http_server_latency_bucket{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "legendFormat": "[95p] {{method}} {{path}} ({{app_id}})", "refId": "A" }, { "expr": "histogram_quantile(0.75, sum(rate(dapr_http_server_latency_bucket{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "legendFormat": "[75p] {{method}} {{path}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Outbound request latency (App->Dapr) (95p, 75p)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "ms", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows completed request rate (rps) when User app calls Dapr.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 15 }, "hiddenSeries": false, "id": 31, "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum by (app_id, method, path) (rate(dapr_http_server_response_count{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m]))", "format": "time_series", "instant": false, "legendFormat": "{{method}} {{path}} ({{app_id}})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Outbound request rate (App -> Dapr) (RPS)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "reqps", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows the inbound request latency from Dapr to App. You can analyze App's API endpoint performance.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 23 }, "hiddenSeries": false, "id": 18, "legend": { "avg": false, "current": true, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(dapr_http_client_roundtrip_latency_bucket{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "legendFormat": "[95p] {{method}} /{{path}} ({{app_id}})", "refId": "A" }, { "expr": "histogram_quantile(0.75, sum(rate(dapr_http_client_roundtrip_latency_bucket{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])) by (le, app_id, method, path))", "format": "time_series", "instant": false, "legendFormat": "[75p] {{method}} /{{path}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Inbound request latency (Dapr -> App) (95p, 75p)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "ms", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows request rate (rps) when Dapr runtime calls User app HTTP endpoints.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 23 }, "hiddenSeries": false, "id": 32, "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "sideWidth": 150, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum by (app_id, method, path) (rate(dapr_http_client_completed_count{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m]))", "format": "time_series", "instant": false, "legendFormat": "{{method}} {{path}} ({{app_id}})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Inbound request rate (Dapr -> App) (RPS)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "decimals": 2, "format": "reqps", "label": "", "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 31 }, "id": 34, "panels": [], "title": "Throughput/Latency - gRPC", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows the turn-around latency when user app calls Dapr API. For example, you can understand each statestore and service invocation performance.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "hiddenSeries": false, "id": 36, "legend": { "avg": false, "current": true, "max": false, "min": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(dapr_grpc_io_server_server_latency_bucket{app_id=~\"$dapr_app_id\", grpc_server_method=~\".*.Dapr/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, grpc_server_method))", "interval": "", "legendFormat": "[95p] - {{grpc_server_method}} ({{app_id}})", "refId": "A" }, { "expr": "histogram_quantile(0.75, sum(rate(dapr_grpc_io_server_server_latency_bucket{app_id=~\"$dapr_app_id\", grpc_server_method=~\".*.Dapr/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, grpc_server_method))", "interval": "", "legendFormat": "[75p] {{grpc_server_method}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Outbound request latency (App->Dapr) (95p, 75p)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ms", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows completed request rate (rps) when User app calls Dapr.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, "hiddenSeries": false, "id": 38, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum by (app_id, grpc_server_method, grpc_server_status) (rate(dapr_grpc_io_server_completed_rpcs{app_id=~\"$dapr_app_id\", grpc_server_method=~\".*.Dapr/.*\"}[5m]))", "interval": "", "legendFormat": "{{grpc_server_status}} {{grpc_server_method}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Outbound request rate (App -> Dapr) (RPS)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "reqps", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows the inbound request latency from Dapr to App. You can analyze App's API endpoint performance.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 40 }, "hiddenSeries": false, "id": 40, "legend": { "avg": false, "current": true, "max": false, "min": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(dapr_grpc_io_client_roundtrip_latency_bucket{app_id=~\"$dapr_app_id\", grpc_client_method=~\".*.AppCallback/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, grpc_client_method))", "interval": "", "legendFormat": "[95p] {{grpc_client_method}} ({{app_id}})", "refId": "A" }, { "expr": "histogram_quantile(0.75, sum(rate(dapr_grpc_io_client_roundtrip_latency_bucket{app_id=~\"$dapr_app_id\", grpc_client_method=~\".*.AppCallback/.*\", namespace=\"$namespace\"}[5m])) by (le, app_id, grpc_client_method))", "interval": "", "legendFormat": "[75p] {{grpc_client_method}} ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Inbound request latency (Dapr -> App) (95p, 75p)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ms", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This charts shows request rate (rps) when Dapr runtime calls User app gRPC endpoints.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 40 }, "hiddenSeries": false, "id": 42, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum by (app_id, grpc_client_method, grpc_client_status) (rate(dapr_grpc_io_client_completed_rpcs{app_id=~\"$dapr_app_id\", grpc_client_method=~\".*.AppCallback/.*\", namespace=\"$namespace\"}[5m]))", "interval": "", "legendFormat": "{{grpc_client_status}} {{grpc_client_method}} ({{app_id}})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Inbound request rate (Dapr -> App) (RPS)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "reqps", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": true, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 48 }, "id": 52, "panels": [ { "datasource": "Dapr", "description": "This shows the number of configured components. For example, it will shows \"2\" if you configure redis statestore and redis pubsub components. ", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 33 }, "id": 56, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "7.3.3", "targets": [ { "expr": "sum(dapr_runtime_component_loaded{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id)", "legendFormat": "{{app_id}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Loaded component configurations", "type": "stat" }, { "cacheTimeout": null, "datasource": "Dapr", "description": "This shows the number of initialized components. This number must be the same as loaded components. Otherwise, Daprd fails to initialize some of components.", "fieldConfig": { "defaults": { "custom": {}, "mappings": [ { "id": 0, "op": "=", "text": "N/A", "type": 1, "value": "null" } ], "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 33 }, "id": 54, "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "7.3.3", "targets": [ { "expr": "sum(dapr_runtime_component_init_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id)", "legendFormat": "{{app_id}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Initialized components", "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This chart shows the number component initialization failures with the reasons.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 33 }, "hiddenSeries": false, "id": 58, "legend": { "avg": false, "current": false, "max": false, "min": false, "rightSide": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(dapr_runtime_component_init_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id, reason)", "legendFormat": "{{app_id}} - {{reason}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Component failures", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } } ], "title": "Components", "type": "row" }, { "collapsed": true, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 49 }, "id": 44, "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This shows when Daprd reports host status to placement service. Non-Actor service reports host status in the beginning. Actor service reports host status to placement periodically. If there is a failure, virtual actors will not be distributed properly.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 9, "x": 0, "y": 42 }, "hiddenSeries": false, "id": 46, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": true, "targets": [ { "expr": "rate(dapr_runtime_actor_status_report_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])", "legendFormat": "OK ({{app_id}})", "refId": "A" }, { "expr": "rate(dapr_runtime_actor_status_report_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])", "legendFormat": "Error ({{app_id}})", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Status report status", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", "label": null, "logBase": 1, "max": null, "min": null, "show": false }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "cacheTimeout": null, "datasource": "Dapr", "description": "This shows the failures when Daprd reports host status to placement.", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 10 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 5, "x": 9, "y": 42 }, "id": 59, "links": [], "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "max" ], "fields": "", "values": false }, "showUnfilled": true }, "pluginVersion": "7.3.3", "targets": [ { "expr": "sum(dapr_runtime_actor_status_report_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id, operation)", "legendFormat": "{{operation}} ({{app_id}})", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Report status error reasons", "type": "bargauge" }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This shows the placement table update status based on the response from placement service. Daprd maintains the actor placement table in its memory. This table is periodically updated.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 10, "x": 14, "y": 42 }, "hiddenSeries": false, "id": 61, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": false, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 1, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum(dapr_runtime_actor_table_operation_recv_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id, operation)", "format": "time_series", "intervalFactor": 3, "legendFormat": "{{operation}} ({{app_id}})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Placement table operation", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This chart shows how many actors are deactivated.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 9, "x": 0, "y": 49 }, "hiddenSeries": false, "id": 65, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": false, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 1, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { "expr": "dapr_runtime_actor_deactivated_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}", "legendFormat": "OK {{actor_type}}", "refId": "A" }, { "expr": "dapr_runtime_actor_deactivated_failed_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}", "legendFormat": "Error {{actor_type}}", "refId": "C" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor Deactivation", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This shows when actor is rebalanced. This operation can make the activated actors deactivated and move actor to the other hosts.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 7, "x": 9, "y": 49 }, "hiddenSeries": false, "id": 63, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": false, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 1, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { "expr": "dapr_runtime_actor_rebalanced_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}", "intervalFactor": 1, "legendFormat": "{{app_id}}", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Actor table rebalancing", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "title": "Actor", "type": "row" }, { "collapsed": true, "datasource": "Dapr", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 50 }, "id": 50, "panels": [ { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This chart shows when mTLS is initialized, which means root cert is loaded and workload cert is issued from sentry, when runtime starts.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 7, "x": 0, "y": 57 }, "hiddenSeries": false, "id": 48, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": false, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(dapr_runtime_mtls_init_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])", "intervalFactor": 2, "legendFormat": "OK {{app_id}}", "refId": "A" }, { "expr": "rate(dapr_runtime_mtls_init_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])", "intervalFactor": 2, "legendFormat": "Error {{app_id}}", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "mTLS initialization status", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "cacheTimeout": null, "datasource": "Dapr", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 10 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 7, "y": 57 }, "id": 67, "links": [], "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "showUnfilled": true }, "pluginVersion": "7.3.3", "targets": [ { "expr": "sum(dapr_runtime_mtls_init_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id, reason)", "legendFormat": "{{reason}} ({{app_id}})", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "mTLS Initialization Errors", "type": "bargauge" }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This chart shows when workload certificate is rotated.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 7, "x": 12, "y": 57 }, "hiddenSeries": false, "id": 66, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": false, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(dapr_runtime_mtls_workload_cert_rotated_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])", "format": "time_series", "instant": false, "intervalFactor": 2, "legendFormat": "OK {{app_id}}", "refId": "A" }, { "expr": "rate(dapr_runtime_mtls_workload_cert_rotated_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}[5m])", "intervalFactor": 2, "legendFormat": "Error {{app_id}}", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Workload certificate rotation status", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "cacheTimeout": null, "datasource": "Dapr", "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 10 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 19, "y": 57 }, "id": 68, "links": [], "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "showUnfilled": true }, "pluginVersion": "7.3.3", "targets": [ { "expr": "sum(dapr_runtime_mtls_workload_cert_rotated_fail_total{app_id=~\"$dapr_app_id\", namespace=\"$namespace\"}) by (app_id, reason)", "legendFormat": "{{reason}} ({{app_id}})", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Cert rotation error reasons", "type": "bargauge" } ], "title": "Security", "type": "row" } ], "refresh": "10s", "schemaVersion": 26, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": { "selected": false, "text": "pipeline", "value": "pipeline" }, "datasource": "Dapr", "definition": "label_values(dapr_runtime_component_loaded,namespace)", "error": null, "hide": 0, "includeAll": false, "label": "NAMESPACE", "multi": false, "name": "namespace", "options": [], "query": "label_values(dapr_runtime_component_loaded,namespace)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "selected": true, "tags": [], "text": [ "loadtestclient", "stateactor" ], "value": [ "loadtestclient", "stateactor" ] }, "datasource": "Dapr", "definition": "label_values(dapr_runtime_component_loaded,app_id)", "error": null, "hide": 0, "includeAll": false, "label": "APPID", "multi": true, "name": "dapr_app_id", "options": [], "query": "label_values(dapr_runtime_component_loaded,app_id)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-14d", "to": "now" }, "timepicker": { "refresh_intervals": [ "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Dapr Sidecar Dashboard", "uid": "Ym9RqIuWk", "version": 8 }
mikeee/dapr
grafana/grafana-sidecar-dashboard.json
JSON
mit
63,862
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "This dashboard shows the metrics of Dapr control plane services", "editable": true, "gnetId": null, "graphTooltip": 0, "id": 2, "links": [], "panels": [ { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 18, "panels": [], "title": "Health & Resource", "type": "row" }, { "cacheTimeout": null, "datasource": "Dapr", "fieldConfig": { "defaults": { "custom": {}, "decimals": 1, "mappings": [ { "id": 0, "op": "=", "text": "N/A", "type": 1, "value": "null" } ], "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 600 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 1 }, "id": 20, "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "7.3.3", "targets": [ { "expr": "time() - max(process_start_time_seconds{app=~\"dapr-sentry|dapr-placement-server|dapr-sidecar-injector|dapr-operator\"}) by (app)", "interval": "", "intervalFactor": 2, "legendFormat": "{{app}}", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "Uptime", "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This shows total amount of kernel and user CPU usage time.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 7, "x": 4, "y": 1 }, "hiddenSeries": false, "id": 22, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(container_cpu_usage_seconds_total{pod=~\"(dapr-sentry|dapr-sidecar-injector|dapr-placement-server|dapr-operator).*\"}[5m])) by (pod)", "interval": "", "legendFormat": "{{pod}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Total CPU usage (kernel and user)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "s", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "The amount of allocated heap memory that belongs specifically to that process in bytes.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 7, "x": 11, "y": 1 }, "hiddenSeries": false, "id": 24, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(go_memstats_alloc_bytes{app=~\"(dapr-sentry|dapr-sidecar-injector|dapr-placement-server|dapr-operator)\"}) by (app)", "interval": "", "legendFormat": "{{app}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Heap Memory usage in bytes", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "decbytes", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 1 }, "hiddenSeries": false, "id": 26, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "max(go_goroutines{app=~\"(dapr-sentry|dapr-sidecar-injector|dapr-placement-server|dapr-operator)\"}) by (app)", "interval": "", "legendFormat": "{{app}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Number of GO routines", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 9 }, "id": 12, "panels": [], "title": "Sidecar Injector", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "description": "The total number of sidecar injection requests.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 10 }, "hiddenSeries": false, "id": 8, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "dapr_injector_sidecar_injection_requests_total", "legendFormat": "sidecars requests", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "# sidecar injection requests", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "The total number of successful sidecar injection requests.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 10 }, "hiddenSeries": false, "id": 10, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "dapr_injector_sidecar_injection_succeeded_total", "legendFormat": "{{app_id}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "# successful sidecar injected", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 19 }, "id": 42, "panels": [], "title": "CA Sentry", "type": "row" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": true, "colors": [ "#F2495C", "#FADE2A", "#73BF69" ], "datasource": null, "decimals": null, "description": "", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "format": "s", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 7, "w": 3, "x": 0, "y": 20 }, "id": 44, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "pluginVersion": "6.6.2", "postfix": " left", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": true, "ymax": null, "ymin": null }, "tableColumn": "", "targets": [ { "expr": "min(dapr_sentry_issuercert_expiry_timestamp) - time()", "refId": "A" } ], "thresholds": "2628000, 5256000", "timeFrom": "1m", "timeShift": null, "title": "Root/Issuer cert expiry", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" } ], "valueName": "current" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "description": "Certificate Signing Request ( CSR ) from Dapr runtime", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 0, "fillGradient": 0, "gridPos": { "h": 7, "w": 9, "x": 3, "y": 20 }, "hiddenSeries": false, "id": 34, "legend": { "alignAsTable": true, "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "CSR Requests", "color": "rgb(60, 33, 166)", "dashes": true }, { "alias": "CSR Success", "color": "#73BF69" }, { "alias": "CSR Failure", "color": "#F2495C" } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(dapr_sentry_cert_sign_request_received_total{app=\"dapr-sentry\"})", "legendFormat": "CSR Requests", "refId": "A" }, { "expr": "sum(dapr_sentry_cert_sign_success_total{app=\"dapr-sentry\"})", "instant": false, "legendFormat": "CSR Success", "refId": "B" }, { "expr": "sum(dapr_sentry_cert_sign_failure_total{app=\"dapr-sentry\"})", "instant": false, "legendFormat": "CSR Failure", "refId": "C" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Certificate Signing Requests (CSR) from Daprd", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "description": "This chart shows the failure reason of Certificate Sign Request.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 20 }, "hiddenSeries": false, "id": 38, "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(dapr_sentry_cert_sign_failure_total{app=\"dapr-sentry\"}) by (reason)", "legendFormat": "{{reason}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "CSR Failures", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "cacheTimeout": null, "dashLength": 10, "dashes": false, "datasource": "Dapr", "description": "This will be counted when issuer cert and key are changed.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 27 }, "hiddenSeries": false, "id": 36, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(dapr_sentry_issuercert_changed_total{app=\"dapr-sentry\"})", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Issuer cert and key changed total", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "description": "This chart shows the reason of gRPC server TLS certificate issuance failures.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 27 }, "hiddenSeries": false, "id": 40, "legend": { "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(dapr_sentry_servercert_issue_failed_total{app=\"dapr-sentry\"}) by (reason)", "legendFormat": "{{reason}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Server TLS certificate issuance failures", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 34 }, "id": 16, "panels": [], "title": "Placement", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "description": "The total number of Dapr sidecars connected to placement service.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 35 }, "hiddenSeries": false, "id": 28, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "dapr_placement_runtimes_total", "interval": "", "legendFormat": "sidecar", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Number of connected Dapr sidecars", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "description": "The total number of actor sidecars and non-actor sidecars.", "fieldConfig": { "defaults": { "custom": {}, "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 35 }, "hiddenSeries": false, "id": 30, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.3.3", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "dapr_placement_actor_runtimes_total", "interval": "", "legendFormat": "actor sidecars", "refId": "A" }, { "expr": "dapr_placement_runtimes_total-dapr_placement_actor_runtimes_total", "interval": "", "legendFormat": "nonactor sidecars", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "actor sidecars vs non-actor sidecars", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "refresh": "5s", "schemaVersion": 26, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-14d", "to": "now" }, "timepicker": { "refresh_intervals": [ "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Dapr System Services Dashboard", "uid": "RHSwiHXWk", "version": 7 }
mikeee/dapr
grafana/grafana-system-services-dashboard.json
JSON
mit
31,673
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ //nolint:nosnakecase package acl import ( "context" "fmt" "strings" "github.com/PuerkitoBio/purell" "github.com/dapr/kit/logger" "github.com/dapr/dapr/pkg/config" diag "github.com/dapr/dapr/pkg/diagnostics" commonv1pb "github.com/dapr/dapr/pkg/proto/common/v1" "github.com/dapr/dapr/pkg/security/spiffe" ) var log = logger.NewLogger("dapr.acl") // ParseAccessControlSpec creates an in-memory copy of the Access Control Spec for fast lookup. func ParseAccessControlSpec(accessControlSpec *config.AccessControlSpec, isHTTP bool) (*config.AccessControlList, error) { if accessControlSpec == nil || (accessControlSpec.TrustDomain == "" && accessControlSpec.DefaultAction == "" && len(accessControlSpec.AppPolicies) == 0) { // No ACL has been specified log.Debugf("No Access control policy specified") return nil, nil } accessControlList := config.AccessControlList{ PolicySpec: make(map[string]config.AccessControlListPolicySpec), DefaultAction: strings.ToLower(accessControlSpec.DefaultAction), TrustDomain: accessControlSpec.TrustDomain, } if accessControlSpec.TrustDomain == "" { accessControlList.TrustDomain = config.DefaultTrustDomain } if accessControlSpec.DefaultAction == "" { if accessControlSpec.AppPolicies == nil || len(accessControlSpec.AppPolicies) > 0 { // Some app level policies have been specified but not default global action is set. Default to more secure option - Deny log.Warnf("No global default action has been specified. Setting default global action as Deny") accessControlList.DefaultAction = config.DenyAccess } else { // An empty ACL has been specified. Set default global action to Allow accessControlList.DefaultAction = config.AllowAccess } } var invalidTrustDomain []string var invalidNamespace []string var invalidAppName bool accessControlList.PolicySpec = make(map[string]config.AccessControlListPolicySpec) for _, appPolicySpec := range accessControlSpec.AppPolicies { invalid := false if appPolicySpec.AppName == "" { invalidAppName = true } if appPolicySpec.TrustDomain == "" { invalidTrustDomain = append(invalidTrustDomain, appPolicySpec.AppName) invalid = true } if appPolicySpec.Namespace == "" { invalidNamespace = append(invalidNamespace, appPolicySpec.AppName) invalid = true } if invalid || invalidAppName { // An invalid config was found for this app. No need to continue parsing the spec for this app continue } operationPolicy := config.NewTrie() // Iterate over all the operations and create a map for fast lookup for _, appPolicy := range appPolicySpec.AppOperationActions { // The operation name might be specified as /invoke/* // Store the prefix as the key and use the remainder as post fix for faster lookups // Also, prepend "/" in case it is missing in the operation name operationName := appPolicy.Operation if !strings.HasPrefix(operationName, "/") { operationName = "/" + operationName } if isHTTP { operationName = strings.ToLower(operationName) } operationActions := config.AccessControlListOperationAction{ OperationName: operationName, VerbAction: make(map[string]string), } // Iterate over all the http verbs and create a map and set the action for fast lookup for _, verb := range appPolicy.HTTPVerb { operationActions.VerbAction[verb] = appPolicy.Action } // Store the operation action for grpc invocations where no http verb is specified operationActions.OperationAction = appPolicy.Action operationPolicy.PutOperationAction(operationName, &operationActions) } aclPolicySpec := config.AccessControlListPolicySpec{ AppName: appPolicySpec.AppName, DefaultAction: appPolicySpec.DefaultAction, TrustDomain: appPolicySpec.TrustDomain, Namespace: appPolicySpec.Namespace, AppOperationActions: operationPolicy, } // The policy spec can have the same appID which belongs to different namespaces key := getKeyForAppID(aclPolicySpec.AppName, aclPolicySpec.Namespace) accessControlList.PolicySpec[key] = aclPolicySpec } if len(invalidTrustDomain) > 0 || len(invalidNamespace) > 0 || invalidAppName { return nil, fmt.Errorf( "invalid access control spec. missing trustdomain for apps: %v, missing namespace for apps: %v, missing app name on at least one of the app policies: %v", invalidTrustDomain, invalidNamespace, invalidAppName) } return &accessControlList, nil } func normalizeOperation(operation string) (string, error) { s, err := purell.NormalizeURLString(operation, purell.FlagsUsuallySafeGreedy|purell.FlagRemoveDuplicateSlashes) if err != nil { return "", err } return s, nil } func ApplyAccessControlPolicies(ctx context.Context, operation string, httpVerb commonv1pb.HTTPExtension_Verb, isHTTP bool, acl *config.AccessControlList) (bool, string) { // Apply access control list filter spiffeID, ok, err := spiffe.FromGRPCContext(ctx) if err != nil { log.Debugf("failed to get SPIFFE ID from gRPC connection context: %v", err) return false, err.Error() } if !ok { // Apply the default action log.Debugf("Error while reading spiffe id from client cert. applying default global policy action") } operation, err = normalizeOperation(operation) var errMessage string if err != nil { errMessage = fmt.Sprintf("error in method normalization: %v", err) log.Debugf(errMessage) return false, errMessage } action, actionPolicy := isOperationAllowedByAccessControlPolicy(spiffeID, operation, httpVerb, isHTTP, acl) emitACLMetrics(spiffeID, actionPolicy, action) if !action { errMessage = fmt.Sprintf("access control policy has denied access to id: %s operation: %s verb: %s", spiffeID.URL(), operation, httpVerb) log.Debug(errMessage) } return action, errMessage } func emitACLMetrics(spiffeID *spiffe.Parsed, actionPolicy string, action bool) { if action { switch actionPolicy { case config.ActionPolicyApp: diag.DefaultMonitoring.RequestAllowedByAppAction(spiffeID) case config.ActionPolicyGlobal: diag.DefaultMonitoring.RequestAllowedByGlobalAction(spiffeID) } } else { switch actionPolicy { case config.ActionPolicyApp: diag.DefaultMonitoring.RequestBlockedByAppAction(spiffeID) case config.ActionPolicyGlobal: diag.DefaultMonitoring.RequestBlockedByGlobalAction(spiffeID) } } } // isOperationAllowedByAccessControlPolicy determines if access control policies allow the operation on the target app. func isOperationAllowedByAccessControlPolicy(spiffeID *spiffe.Parsed, inputOperation string, httpVerb commonv1pb.HTTPExtension_Verb, isHTTP bool, accessControlList *config.AccessControlList) (bool, string) { if accessControlList == nil { // No access control list is provided. Do nothing return isActionAllowed(config.AllowAccess), "" } action := accessControlList.DefaultAction actionPolicy := config.ActionPolicyGlobal if spiffeID == nil { // Could not retrieve spiffe id or it is invalid. Apply global default action return isActionAllowed(action), actionPolicy } // Look up the src app id in the in-memory table. The key is appID||namespace key := getKeyForAppID(spiffeID.AppID(), spiffeID.Namespace()) appPolicy, found := accessControlList.PolicySpec[key] if !found { // no policies found for this src app id. Apply global default action return isActionAllowed(action), actionPolicy } // Match trust domain if appPolicy.TrustDomain != spiffeID.TrustDomain().String() { return isActionAllowed(action), actionPolicy } // Match namespace if appPolicy.Namespace != spiffeID.Namespace() { return isActionAllowed(action), actionPolicy } if appPolicy.DefaultAction != "" { // Since the app has specified a default action, this point onwards, // default action is the default action specified in the spec for the app action = appPolicy.DefaultAction actionPolicy = config.ActionPolicyApp } // the in-memory table has operations stored in the format "/operation name". // Prepend a "/" in case missing so that the match works if !strings.HasPrefix(inputOperation, "/") { inputOperation = "/" + inputOperation } // If HTTP, make case-insensitive if isHTTP { inputOperation = strings.ToLower(inputOperation) } operationPolicy := appPolicy.AppOperationActions.Search(inputOperation) if operationPolicy != nil { // Operation prefix and postfix match. Now check the operation specific policy if isHTTP { if httpVerb != commonv1pb.HTTPExtension_NONE { verbAction, found := operationPolicy.VerbAction[httpVerb.String()] if found { // An action for a specific verb is matched action = verbAction } else { verbAction, found = operationPolicy.VerbAction["*"] if found { // The verb matched the wildcard "*" action = verbAction } } } else { // No matching verb found in the operation specific policies. action = appPolicy.DefaultAction } } else { // No http verb match is needed. action = operationPolicy.OperationAction } } return isActionAllowed(action), actionPolicy } func isActionAllowed(action string) bool { return strings.EqualFold(action, config.AllowAccess) } func getKeyForAppID(appID, namespace string) string { return appID + "||" + namespace }
mikeee/dapr
pkg/acl/acl.go
GO
mit
9,889
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ //nolint:nosnakecase package acl import ( "testing" "github.com/spiffe/go-spiffe/v2/spiffeid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/dapr/dapr/pkg/config" "github.com/dapr/dapr/pkg/proto/common/v1" "github.com/dapr/dapr/pkg/security/spiffe" ) const ( app1 = "app1" app2 = "app2" app3 = "app3" app4 = "app4" app1Ns1 = "app1||ns1" app2Ns2 = "app2||ns2" app3Ns1 = "app3||ns1" app1Ns4 = "app1||ns4" ) func initializeAccessControlList(isHTTP bool) (*config.AccessControlList, error) { inputSpec := config.AccessControlSpec{ DefaultAction: config.DenyAccess, TrustDomain: "abcd", AppPolicies: []config.AppPolicySpec{ { AppName: app1, DefaultAction: config.AllowAccess, TrustDomain: "public", Namespace: "ns1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"POST", "GET"}, Operation: "/op1", }, { Action: config.DenyAccess, HTTPVerb: []string{"*"}, Operation: "/op2", }, }, }, { AppName: app2, DefaultAction: config.DenyAccess, TrustDomain: "domain1", Namespace: "ns2", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"PUT", "GET"}, Operation: "/op3/a/*", }, { Action: config.AllowAccess, HTTPVerb: []string{"POST"}, Operation: "/op4", }, }, }, { AppName: app3, TrustDomain: "domain1", Namespace: "ns1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"POST"}, Operation: "/op5", }, }, }, { AppName: app4, DefaultAction: config.DenyAccess, TrustDomain: "domain1", Namespace: "ns2", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, Operation: "/op6", }, { Action: config.AllowAccess, Operation: "/op7/a/b/*", }, { Action: config.AllowAccess, Operation: "/op7/a/b/c/f", }, { Action: config.AllowAccess, Operation: "/op7/a/b*", }, { Action: config.AllowAccess, Operation: "/op7/c/**", }, }, }, { AppName: app1, // Duplicate app id with a different namespace DefaultAction: config.AllowAccess, TrustDomain: "public", Namespace: "ns4", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"*"}, Operation: "/op6", }, }, }, }, } accessControlList, err := ParseAccessControlSpec(&inputSpec, isHTTP) return accessControlList, err } func TestParseAccessControlSpec(t *testing.T) { t.Run("translate to in-memory rules", func(t *testing.T) { accessControlList, err := initializeAccessControlList(true) require.NoError(t, err) assert.Equal(t, config.DenyAccess, accessControlList.DefaultAction) assert.Equal(t, "abcd", accessControlList.TrustDomain) // App1 assert.Equal(t, app1, accessControlList.PolicySpec[app1Ns1].AppName) assert.Equal(t, config.AllowAccess, accessControlList.PolicySpec[app1Ns1].DefaultAction) assert.Equal(t, "public", accessControlList.PolicySpec[app1Ns1].TrustDomain) assert.Equal(t, "ns1", accessControlList.PolicySpec[app1Ns1].Namespace) op1Actions := config.AccessControlListOperationAction{ OperationName: "/op1", VerbAction: make(map[string]string), } op1Actions.VerbAction["POST"] = config.AllowAccess op1Actions.VerbAction["GET"] = config.AllowAccess op1Actions.OperationAction = config.AllowAccess op2Actions := config.AccessControlListOperationAction{ OperationName: "/op2", VerbAction: make(map[string]string), } op2Actions.VerbAction["*"] = config.DenyAccess op2Actions.OperationAction = config.DenyAccess assert.Equal(t, op1Actions.VerbAction, accessControlList.PolicySpec[app1Ns1].AppOperationActions.Search("/op1").VerbAction) assert.Equal(t, op1Actions.OperationAction, accessControlList.PolicySpec[app1Ns1].AppOperationActions.Search("/op1").OperationAction) assert.Equal(t, op1Actions.OperationName, accessControlList.PolicySpec[app1Ns1].AppOperationActions.Search("/op1").OperationName) assert.Equal(t, op2Actions.VerbAction, accessControlList.PolicySpec[app1Ns1].AppOperationActions.Search("/op2").VerbAction) assert.Equal(t, op2Actions.OperationAction, accessControlList.PolicySpec[app1Ns1].AppOperationActions.Search("/op2").OperationAction) assert.Equal(t, op2Actions.OperationName, accessControlList.PolicySpec[app1Ns1].AppOperationActions.Search("/op2").OperationName) // App2 assert.Equal(t, app2, accessControlList.PolicySpec[app2Ns2].AppName) assert.Equal(t, config.DenyAccess, accessControlList.PolicySpec[app2Ns2].DefaultAction) assert.Equal(t, "domain1", accessControlList.PolicySpec[app2Ns2].TrustDomain) assert.Equal(t, "ns2", accessControlList.PolicySpec[app2Ns2].Namespace) op3Actions := config.AccessControlListOperationAction{ OperationName: "/op3/a/*", VerbAction: make(map[string]string), } op3Actions.VerbAction["PUT"] = config.AllowAccess op3Actions.VerbAction["GET"] = config.AllowAccess op3Actions.OperationAction = config.AllowAccess op4Actions := config.AccessControlListOperationAction{ OperationName: "/op4", VerbAction: make(map[string]string), } op4Actions.VerbAction["POST"] = config.AllowAccess op4Actions.OperationAction = config.AllowAccess assert.Equal(t, op3Actions.VerbAction, accessControlList.PolicySpec[app2Ns2].AppOperationActions.Search("/op3/a/*").VerbAction) assert.Equal(t, op3Actions.OperationName, accessControlList.PolicySpec[app2Ns2].AppOperationActions.Search("/op3/a/*").OperationName) assert.Equal(t, op3Actions.OperationAction, accessControlList.PolicySpec[app2Ns2].AppOperationActions.Search("/op3/a/*").OperationAction) assert.Equal(t, op4Actions.VerbAction, accessControlList.PolicySpec[app2Ns2].AppOperationActions.Search("/op4").VerbAction) assert.Equal(t, op4Actions.OperationName, accessControlList.PolicySpec[app2Ns2].AppOperationActions.Search("/op4").OperationName) assert.Equal(t, op4Actions.OperationAction, accessControlList.PolicySpec[app2Ns2].AppOperationActions.Search("/op4").OperationAction) // App3 assert.Equal(t, app3, accessControlList.PolicySpec[app3Ns1].AppName) assert.Equal(t, "", accessControlList.PolicySpec[app3Ns1].DefaultAction) assert.Equal(t, "domain1", accessControlList.PolicySpec[app3Ns1].TrustDomain) assert.Equal(t, "ns1", accessControlList.PolicySpec[app3Ns1].Namespace) op5Actions := config.AccessControlListOperationAction{ OperationName: "/op5", VerbAction: make(map[string]string), } op5Actions.VerbAction["POST"] = config.AllowAccess op5Actions.OperationAction = config.AllowAccess assert.Equal(t, op5Actions.VerbAction, accessControlList.PolicySpec[app3Ns1].AppOperationActions.Search("/op5").VerbAction) assert.Equal(t, op5Actions.OperationName, accessControlList.PolicySpec[app3Ns1].AppOperationActions.Search("/op5").OperationName) assert.Equal(t, op5Actions.OperationAction, accessControlList.PolicySpec[app3Ns1].AppOperationActions.Search("/op5").OperationAction) // App1 with a different namespace assert.Equal(t, app1, accessControlList.PolicySpec[app1Ns4].AppName) assert.Equal(t, config.AllowAccess, accessControlList.PolicySpec[app1Ns4].DefaultAction) assert.Equal(t, "public", accessControlList.PolicySpec[app1Ns4].TrustDomain) assert.Equal(t, "ns4", accessControlList.PolicySpec[app1Ns4].Namespace) op6Actions := config.AccessControlListOperationAction{ OperationName: "/op6", VerbAction: make(map[string]string), } op6Actions.VerbAction["*"] = config.AllowAccess op6Actions.OperationAction = config.AllowAccess assert.Equal(t, op6Actions.VerbAction, accessControlList.PolicySpec[app1Ns4].AppOperationActions.Search("/op6").VerbAction) assert.Equal(t, op6Actions.OperationName, accessControlList.PolicySpec[app1Ns4].AppOperationActions.Search("/op6").OperationName) assert.Equal(t, op6Actions.OperationAction, accessControlList.PolicySpec[app1Ns4].AppOperationActions.Search("/op6").OperationAction) }) t.Run("test when no trust domain and namespace specified in app policy", func(t *testing.T) { invalidAccessControlSpec := &config.AccessControlSpec{ DefaultAction: config.DenyAccess, TrustDomain: "public", AppPolicies: []config.AppPolicySpec{ { AppName: app1, DefaultAction: config.AllowAccess, Namespace: "ns1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"POST", "GET"}, Operation: "/op1", }, { Action: config.DenyAccess, HTTPVerb: []string{"*"}, Operation: "/op2", }, }, }, { AppName: app2, DefaultAction: config.DenyAccess, TrustDomain: "domain1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"PUT", "GET"}, Operation: "/op3/a/*", }, { Action: config.AllowAccess, HTTPVerb: []string{"POST"}, Operation: "/op4", }, }, }, { AppName: "", DefaultAction: config.DenyAccess, TrustDomain: "domain1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"PUT", "GET"}, Operation: "/op3/a/*", }, { Action: config.AllowAccess, HTTPVerb: []string{"POST"}, Operation: "/op4", }, }, }, }, } _, err := ParseAccessControlSpec(invalidAccessControlSpec, true) require.Error(t, err, "invalid access control spec. missing trustdomain for apps: [%s], missing namespace for apps: [%s], missing app name on at least one of the app policies: true", app1, app2) }) t.Run("test when no trust domain is specified for the app", func(t *testing.T) { accessControlSpec := &config.AccessControlSpec{ DefaultAction: config.DenyAccess, TrustDomain: "", AppPolicies: []config.AppPolicySpec{ { AppName: app1, DefaultAction: config.AllowAccess, TrustDomain: "public", Namespace: "ns1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"POST", "GET"}, Operation: "/op1", }, { Action: config.DenyAccess, HTTPVerb: []string{"*"}, Operation: "/op2", }, }, }, }, } accessControlList, _ := ParseAccessControlSpec(accessControlSpec, true) assert.Equal(t, "public", accessControlList.PolicySpec[app1Ns1].TrustDomain) }) t.Run("test when no access control policy has been specified", func(t *testing.T) { accessControlList, err := ParseAccessControlSpec(nil, true) require.NoError(t, err) assert.Nil(t, accessControlList) invalidAccessControlSpec := &config.AccessControlSpec{ DefaultAction: "", TrustDomain: "", AppPolicies: []config.AppPolicySpec{}, } accessControlList, _ = ParseAccessControlSpec(invalidAccessControlSpec, true) require.NoError(t, err) assert.Nil(t, accessControlList) }) t.Run("test when no default global action has been specified", func(t *testing.T) { invalidAccessControlSpec := &config.AccessControlSpec{ TrustDomain: "public", AppPolicies: []config.AppPolicySpec{ { AppName: app1, DefaultAction: config.AllowAccess, TrustDomain: "domain1", Namespace: "ns1", AppOperationActions: []config.AppOperation{ { Action: config.AllowAccess, HTTPVerb: []string{"POST", "GET"}, Operation: "/op1", }, { Action: config.DenyAccess, HTTPVerb: []string{"*"}, Operation: "/op2", }, }, }, }, } accessControlList, _ := ParseAccessControlSpec(invalidAccessControlSpec, true) assert.Equal(t, config.DenyAccess, accessControlList.DefaultAction) }) } func Test_isOperationAllowedByAccessControlPolicy(t *testing.T) { td := spiffeid.RequireTrustDomainFromString("public") privateTD := spiffeid.RequireTrustDomainFromString("private") t.Run("test when no acl specified", func(t *testing.T) { srcAppID := app1 spiffeID, err := spiffe.FromStrings(td, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op1", common.HTTPExtension_POST, true, nil) // Action = Allow the operation since no ACL is defined assert.True(t, isAllowed) }) t.Run("test when no matching app in acl found", func(t *testing.T) { srcAppID := "appX" accessControlList, _ := initializeAccessControlList(true) spiffeID, err := spiffe.FromStrings(td, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op1", common.HTTPExtension_POST, true, accessControlList) // Action = Default global action assert.False(t, isAllowed) }) t.Run("test when trust domain does not match", func(t *testing.T) { srcAppID := app1 accessControlList, _ := initializeAccessControlList(true) spiffeID, err := spiffe.FromStrings(privateTD, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op1", common.HTTPExtension_POST, true, accessControlList) // Action = Ignore policy and apply global default action assert.False(t, isAllowed) }) t.Run("test when namespace does not match", func(t *testing.T) { srcAppID := app1 accessControlList, _ := initializeAccessControlList(true) spiffeID, err := spiffe.FromStrings(td, "abcd", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op1", common.HTTPExtension_POST, true, accessControlList) // Action = Ignore policy and apply global default action assert.False(t, isAllowed) }) t.Run("test when spiffe id is nil", func(t *testing.T) { accessControlList, _ := initializeAccessControlList(true) isAllowed, _ := isOperationAllowedByAccessControlPolicy(nil, "op1", common.HTTPExtension_POST, true, accessControlList) // Action = Default global action assert.False(t, isAllowed) }) t.Run("test when src app id is empty", func(t *testing.T) { accessControlList, _ := initializeAccessControlList(true) isAllowed, _ := isOperationAllowedByAccessControlPolicy(nil, "op1", common.HTTPExtension_POST, true, accessControlList) // Action = Default global action assert.False(t, isAllowed) }) t.Run("test when operation is not found in the policy spec", func(t *testing.T) { srcAppID := app1 accessControlList, _ := initializeAccessControlList(true) spiffeID, err := spiffe.FromStrings(td, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "opX", common.HTTPExtension_POST, true, accessControlList) // Action = Ignore policy and apply default action for app assert.True(t, isAllowed) }) t.Run("test http case-sensitivity when matching operation post fix", func(t *testing.T) { srcAppID := app1 accessControlList, _ := initializeAccessControlList(true) spiffeID, err := spiffe.FromStrings(td, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "Op2", common.HTTPExtension_POST, true, accessControlList) // Action = Ignore policy and apply default action for app assert.False(t, isAllowed) }) t.Run("test when http verb is not found", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op4", common.HTTPExtension_PUT, true, accessControlList) // Action = Default action for the specific app assert.False(t, isAllowed) }) t.Run("test when default action for app is not specified and no matching http verb found", func(t *testing.T) { srcAppID := app3 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op5", common.HTTPExtension_PUT, true, accessControlList) // Action = Global Default action assert.False(t, isAllowed) }) t.Run("test when http verb matches *", func(t *testing.T) { srcAppID := app1 accessControlList, _ := initializeAccessControlList(true) spiffeID, err := spiffe.FromStrings(td, "ns1", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op2", common.HTTPExtension_PUT, true, accessControlList) // Action = Default action for the specific verb assert.False(t, isAllowed) }) t.Run("test when http verb matches a specific verb", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op4", common.HTTPExtension_POST, true, accessControlList) // Action = Default action for the specific verb assert.True(t, isAllowed) }) t.Run("test when operation is invoked with /", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "/op4", common.HTTPExtension_POST, true, accessControlList) // Action = Default action for the specific verb assert.True(t, isAllowed) }) t.Run("test when http verb is not specified", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op4", common.HTTPExtension_NONE, true, accessControlList) // Action = Default action for the app assert.False(t, isAllowed) }) t.Run("test when matching operation post fix is specified in policy spec", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "/op3/a", common.HTTPExtension_PUT, true, accessControlList) // Action = Default action for the specific verb assert.True(t, isAllowed) }) t.Run("test grpc case-sensitivity when matching operation post fix", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(false) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "/OP4", common.HTTPExtension_NONE, false, accessControlList) // Action = Default action for the specific verb assert.False(t, isAllowed) }) t.Run("test when non-matching operation post fix is specified in policy spec", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "/op3/b/b", common.HTTPExtension_PUT, true, accessControlList) // Action = Default action for the app assert.False(t, isAllowed) }) t.Run("test when non-matching operation post fix is specified in policy spec", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(true) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "/op3/a/b", common.HTTPExtension_PUT, true, accessControlList) // Action = Default action for the app assert.True(t, isAllowed) }) t.Run("test with grpc invocation", func(t *testing.T) { srcAppID := app2 accessControlList, _ := initializeAccessControlList(false) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op4", common.HTTPExtension_NONE, false, accessControlList) // Action = Default action for the app assert.True(t, isAllowed) }) t.Run("when testing grpc calls, acl is not configured with http verb", func(t *testing.T) { srcAppID := app4 accessControlList, _ := initializeAccessControlList(false) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op6", common.HTTPExtension_NONE, false, accessControlList) // Action = Default action for the app assert.True(t, isAllowed) }) t.Run("when testing grpc calls, acl configured with wildcard * for full matching", func(t *testing.T) { srcAppID := app4 accessControlList, _ := initializeAccessControlList(false) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op7/a/b/c", common.HTTPExtension_NONE, false, accessControlList) assert.True(t, isAllowed) isAllowed, _ = isOperationAllowedByAccessControlPolicy(spiffeID, "op7/a/b/c/d", common.HTTPExtension_NONE, false, accessControlList) assert.False(t, isAllowed) isAllowed, _ = isOperationAllowedByAccessControlPolicy(spiffeID, "op7/a/b/c/f", common.HTTPExtension_NONE, false, accessControlList) assert.True(t, isAllowed) }) t.Run("when testing grpc calls, acl is configured with wildcards", func(t *testing.T) { srcAppID := app4 accessControlList, _ := initializeAccessControlList(false) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op7/a/bc", common.HTTPExtension_NONE, false, accessControlList) assert.True(t, isAllowed) }) t.Run("when testing grpc calls, acl configured with wildcard ** for full matching", func(t *testing.T) { srcAppID := app4 accessControlList, _ := initializeAccessControlList(false) domain1TD := spiffeid.RequireTrustDomainFromString("domain1") spiffeID, err := spiffe.FromStrings(domain1TD, "ns2", srcAppID) require.NoError(t, err) isAllowed, _ := isOperationAllowedByAccessControlPolicy(spiffeID, "op7/c/d/e", common.HTTPExtension_NONE, false, accessControlList) assert.True(t, isAllowed) }) } func TestNormalizeOperation(t *testing.T) { t.Run("normal path no slash", func(t *testing.T) { p := "path" p, _ = normalizeOperation(p) assert.Equal(t, "path", p) }) t.Run("normal path caps", func(t *testing.T) { p := "Path" p, _ = normalizeOperation(p) assert.Equal(t, "Path", p) }) t.Run("single slash", func(t *testing.T) { p := "/path" p, _ = normalizeOperation(p) assert.Equal(t, "/path", p) }) t.Run("multiple slashes", func(t *testing.T) { p := "///path" p, _ = normalizeOperation(p) assert.Equal(t, "/path", p) }) t.Run("prefix", func(t *testing.T) { p := "../path" p, _ = normalizeOperation(p) assert.Equal(t, "path", p) }) t.Run("encoded", func(t *testing.T) { p := "path%72" p, _ = normalizeOperation(p) assert.Equal(t, "pathr", p) }) t.Run("normal multiple paths", func(t *testing.T) { p := "path1/path2/path3" p, _ = normalizeOperation(p) assert.Equal(t, "path1/path2/path3", p) }) t.Run("normal multiple paths leading slash", func(t *testing.T) { p := "/path1/path2/path3" p, _ = normalizeOperation(p) assert.Equal(t, "/path1/path2/path3", p) }) }
mikeee/dapr
pkg/acl/acl_test.go
GO
mit
25,493
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "errors" "sync" "sync/atomic" "time" "k8s.io/utils/clock" diag "github.com/dapr/dapr/pkg/diagnostics" "github.com/dapr/kit/ptr" ) // ErrActorDisposed is the error when runtime tries to hold the lock of the disposed actor. var ErrActorDisposed = errors.New("actor is already disposed") // actor represents single actor object and maintains its turn-based concurrency. type actor struct { // actorType is the type of actor. actorType string // actorID is the ID of actorType. actorID string // actorLock is the lock to maintain actor's turn-based concurrency with allowance for reentrancy if configured. actorLock *ActorLock // pendingActorCalls is the number of the current pending actor calls by turn-based concurrency. pendingActorCalls atomic.Int32 // idleTimeout is the configured max idle time for actors of this kind. idleTimeout time.Duration // idleAt is the time after which this actor is considered to be idle. // When the actor is locked, idleAt is updated by adding the idleTimeout to the current time. idleAt atomic.Pointer[time.Time] // disposeLock guards disposed and disposeCh. disposeLock sync.RWMutex // disposed is true when actor is already disposed. disposed bool // disposeCh is the channel to signal when all pending actor calls are completed. This channel // is used when runtime drains actor. disposeCh chan struct{} clock clock.Clock } func newActor(actorType, actorID string, maxReentrancyDepth *int, idleTimeout time.Duration, cl clock.Clock) *actor { if cl == nil { cl = &clock.RealClock{} } a := &actor{ actorType: actorType, actorID: actorID, actorLock: NewActorLock(int32(*maxReentrancyDepth)), clock: cl, idleTimeout: idleTimeout, } a.idleAt.Store(ptr.Of(cl.Now().Add(idleTimeout))) return a } // Key returns the key for this unique actor. // This is implemented to comply with the queueable interface. func (a *actor) Key() string { return a.actorType + daprSeparator + a.actorID } // ScheduledTime returns the time the actor becomes idle at. // This is implemented to comply with the queueable interface. func (a *actor) ScheduledTime() time.Time { return *a.idleAt.Load() } // isBusy returns true when pending actor calls are ongoing. func (a *actor) isBusy() bool { a.disposeLock.RLock() disposed := a.disposed a.disposeLock.RUnlock() return !disposed && a.pendingActorCalls.Load() > 0 } // channel creates or get new dispose channel. This channel is used for draining the actor. func (a *actor) channel() chan struct{} { a.disposeLock.RLock() disposeCh := a.disposeCh a.disposeLock.RUnlock() if disposeCh == nil { // If disposeCh is nil, acquire a write lock and retry // We need to retry after acquiring a write lock because another goroutine could race us a.disposeLock.Lock() disposeCh = a.disposeCh if disposeCh == nil { disposeCh = make(chan struct{}) a.disposeCh = disposeCh } a.disposeLock.Unlock() } return disposeCh } // lock holds the lock for turn-based concurrency. func (a *actor) lock(reentrancyID *string) error { pending := a.pendingActorCalls.Add(1) diag.DefaultMonitoring.ReportActorPendingCalls(a.actorType, pending) err := a.actorLock.Lock(reentrancyID) if err != nil { return err } a.disposeLock.RLock() disposed := a.disposed a.disposeLock.RUnlock() if disposed { a.unlock() return ErrActorDisposed } a.idleAt.Store(ptr.Of(a.clock.Now().Add(a.idleTimeout))) return nil } // unlock releases the lock for turn-based concurrency. If disposeCh is available, // it will close the channel to notify runtime to dispose actor. func (a *actor) unlock() { pending := a.pendingActorCalls.Add(-1) if pending == 0 { a.disposeLock.Lock() if !a.disposed && a.disposeCh != nil { a.disposed = true close(a.disposeCh) } a.disposeLock.Unlock() } else if pending < 0 { log.Error("BUGBUG: tried to unlock actor before locking actor.") return } a.actorLock.Unlock() diag.DefaultMonitoring.ReportActorPendingCalls(a.actorType, pending) }
mikeee/dapr
pkg/actors/actor.go
GO
mit
4,618
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "errors" "sync" "sync/atomic" ) var ErrMaxStackDepthExceeded = errors.New("maximum stack depth exceeded") type ActorLock struct { methodLock sync.Mutex requestLock sync.Mutex activeRequest *string stackDepth atomic.Int32 maxStackDepth int32 } func NewActorLock(maxStackDepth int32) *ActorLock { return &ActorLock{ maxStackDepth: maxStackDepth, } } func (a *ActorLock) Lock(requestID *string) error { currentRequest := a.getCurrentID() if a.stackDepth.Load() == a.maxStackDepth { return ErrMaxStackDepthExceeded } if currentRequest == nil || *currentRequest != *requestID { a.methodLock.Lock() a.setCurrentID(requestID) a.stackDepth.Add(1) } else { a.stackDepth.Add(1) } return nil } func (a *ActorLock) Unlock() { a.stackDepth.Add(-1) if a.stackDepth.Load() == 0 { a.clearCurrentID() a.methodLock.Unlock() } } func (a *ActorLock) getCurrentID() *string { a.requestLock.Lock() defer a.requestLock.Unlock() return a.activeRequest } func (a *ActorLock) setCurrentID(id *string) { a.requestLock.Lock() defer a.requestLock.Unlock() a.activeRequest = id } func (a *ActorLock) clearCurrentID() { a.requestLock.Lock() defer a.requestLock.Unlock() a.activeRequest = nil }
mikeee/dapr
pkg/actors/actor_lock.go
GO
mit
1,816
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) var baseID = "test" func TestLockBaseCase(t *testing.T) { for _, requestID := range []*string{&baseID, nil} { lock := NewActorLock(32) assert.Nil(t, lock.activeRequest) assert.Equal(t, int32(0), lock.stackDepth.Load()) err := lock.Lock(requestID) require.NoError(t, err) if requestID == nil { assert.Nil(t, lock.activeRequest) } else { assert.Equal(t, *requestID, *lock.activeRequest) } assert.Equal(t, int32(1), lock.stackDepth.Load()) lock.Unlock() assert.Nil(t, lock.activeRequest) assert.Equal(t, int32(0), lock.stackDepth.Load()) } } func TestLockBypassWithMatchingID(t *testing.T) { lock := NewActorLock(32) requestID := &baseID for i := 1; i < 5; i++ { err := lock.Lock(requestID) require.NoError(t, err) assert.Equal(t, *requestID, *lock.activeRequest) assert.Equal(t, int32(i), lock.stackDepth.Load()) } } func TestLockHoldsUntilStackIsZero(t *testing.T) { lock := NewActorLock(32) requestID := &baseID // Lock it twice. lock.Lock(requestID) lock.Lock(requestID) assert.Equal(t, *requestID, *lock.activeRequest) assert.Equal(t, int32(2), lock.stackDepth.Load()) // Unlock until request is nil lock.Unlock() assert.Equal(t, *requestID, *lock.activeRequest) assert.Equal(t, int32(1), lock.stackDepth.Load()) lock.Unlock() assert.Nil(t, lock.activeRequest) assert.Equal(t, int32(0), lock.stackDepth.Load()) } func TestStackDepthLimit(t *testing.T) { lock := NewActorLock(1) requestID := &baseID err := lock.Lock(requestID) require.NoError(t, err) assert.Equal(t, *requestID, *lock.activeRequest) assert.Equal(t, int32(1), lock.stackDepth.Load()) err = lock.Lock(requestID) require.Error(t, err) assert.Equal(t, "maximum stack depth exceeded", err.Error()) } func TestLockBlocksForNonMatchingID(t *testing.T) { lock := NewActorLock(32) firstRequestID := "first" secondRequestID := "second" firstInChan := make(chan int) firstOutChan := make(chan int) secondInChan := make(chan int) secondOutChan := make(chan int) go func() { <-firstInChan lock.Lock(&firstRequestID) firstOutChan <- 1 <-firstInChan lock.Unlock() firstOutChan <- 1 }() go func() { <-secondInChan lock.Lock(&secondRequestID) secondOutChan <- 2 <-secondInChan lock.Unlock() secondOutChan <- 2 }() assert.Nil(t, lock.activeRequest) assert.Equal(t, int32(0), lock.stackDepth.Load()) firstInChan <- 1 <-firstOutChan assert.Equal(t, firstRequestID, *lock.activeRequest) assert.Equal(t, int32(1), lock.stackDepth.Load()) secondInChan <- 2 assert.Equal(t, firstRequestID, *lock.activeRequest) assert.Equal(t, int32(1), lock.stackDepth.Load()) firstInChan <- 1 <-firstOutChan <-secondOutChan assert.Equal(t, secondRequestID, *lock.activeRequest) assert.Equal(t, int32(1), lock.stackDepth.Load()) secondInChan <- 2 <-secondOutChan assert.Nil(t, lock.activeRequest) assert.Nil(t, lock.activeRequest) assert.Equal(t, int32(0), lock.stackDepth.Load()) }
mikeee/dapr
pkg/actors/actor_lock_test.go
GO
mit
3,643
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "sync/atomic" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" clocktesting "k8s.io/utils/clock/testing" ) var reentrancyStackDepth = 32 func TestIsBusy(t *testing.T) { testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, nil) testActor.lock(nil) assert.True(t, testActor.isBusy()) testActor.unlock() } func TestTurnBasedConcurrencyLocks(t *testing.T) { testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, nil) // first lock testActor.lock(nil) assert.True(t, testActor.isBusy()) firstIdleAt := *testActor.idleAt.Load() waitCh := make(chan bool) // second lock go func() { waitCh <- false testActor.lock(nil) time.Sleep(10 * time.Millisecond) testActor.unlock() waitCh <- false }() <-waitCh time.Sleep(10 * time.Millisecond) assert.Equal(t, int32(2), testActor.pendingActorCalls.Load()) assert.True(t, testActor.isBusy()) assert.Equal(t, firstIdleAt, *testActor.idleAt.Load()) // unlock the first lock testActor.unlock() assert.Equal(t, int32(1), testActor.pendingActorCalls.Load()) assert.True(t, testActor.isBusy()) // unlock the second lock <-waitCh assert.Equal(t, int32(0), testActor.pendingActorCalls.Load()) assert.False(t, testActor.isBusy()) assert.GreaterOrEqual(t, testActor.idleAt.Load().Sub(firstIdleAt), 10*time.Millisecond) } func TestDisposedActor(t *testing.T) { t.Run("not disposed", func(t *testing.T) { testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, nil) testActor.lock(nil) testActor.unlock() testActor.disposeLock.RLock() disposed := testActor.disposed testActor.disposeLock.RUnlock() assert.False(t, disposed) }) t.Run("disposed", func(t *testing.T) { testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, nil) testActor.lock(nil) ch := testActor.channel() assert.NotNil(t, ch) testActor.unlock() err := testActor.lock(nil) assert.Equal(t, int32(0), testActor.pendingActorCalls.Load()) assert.IsType(t, ErrActorDisposed, err) }) } func TestPendingActorCalls(t *testing.T) { t.Run("no pending actor call with new actor object", func(t *testing.T) { testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, nil) channelClosed := false select { case <-time.After(10 * time.Millisecond): break case <-testActor.channel(): channelClosed = true break } assert.False(t, channelClosed) }) t.Run("close channel before timeout", func(t *testing.T) { testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, nil) testActor.lock(nil) channelClosed := atomic.Bool{} go func() { select { case <-time.After(200 * time.Millisecond): require.Fail(t, "channel should be closed before timeout") case <-testActor.channel(): channelClosed.Store(true) break } }() time.Sleep(50 * time.Millisecond) testActor.unlock() assert.Eventually(t, channelClosed.Load, time.Second, 10*time.Microsecond) }) t.Run("multiple listeners", func(t *testing.T) { clock := clocktesting.NewFakeClock(time.Now()) testActor := newActor("testType", "testID", &reentrancyStackDepth, time.Second, clock) testActor.lock(nil) nListeners := 10 releaseSignaled := make([]atomic.Bool, nListeners) for i := 0; i < nListeners; i++ { releaseCh := testActor.channel() go func(listenerIndex int) { select { case <-time.After(200 * time.Millisecond): break case <-releaseCh: releaseSignaled[listenerIndex].Store(true) break } }(i) } testActor.unlock() assert.Eventually(t, func() bool { clock.Step(100 * time.Millisecond) for i := 0; i < nListeners; i++ { if !releaseSignaled[i].Load() { return false } } return true }, time.Second, time.Microsecond) }) }
mikeee/dapr
pkg/actors/actor_test.go
GO
mit
4,471
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "context" "encoding/json" "errors" "fmt" "io" "net/http" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/alphadose/haxmap" "github.com/cenkalti/backoff/v4" "github.com/google/uuid" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "google.golang.org/protobuf/types/known/anypb" "k8s.io/utils/clock" "github.com/dapr/components-contrib/state" actorerrors "github.com/dapr/dapr/pkg/actors/errors" "github.com/dapr/dapr/pkg/actors/health" "github.com/dapr/dapr/pkg/actors/internal" "github.com/dapr/dapr/pkg/actors/timers" "github.com/dapr/dapr/pkg/channel" "github.com/dapr/dapr/pkg/config" diag "github.com/dapr/dapr/pkg/diagnostics" diagUtils "github.com/dapr/dapr/pkg/diagnostics/utils" invokev1 "github.com/dapr/dapr/pkg/messaging/v1" "github.com/dapr/dapr/pkg/modes" commonv1pb "github.com/dapr/dapr/pkg/proto/common/v1" internalv1pb "github.com/dapr/dapr/pkg/proto/internals/v1" runtimev1pb "github.com/dapr/dapr/pkg/proto/runtime/v1" "github.com/dapr/dapr/pkg/resiliency" "github.com/dapr/dapr/pkg/retry" "github.com/dapr/dapr/pkg/runtime/compstore" "github.com/dapr/dapr/pkg/security" eventqueue "github.com/dapr/kit/events/queue" "github.com/dapr/kit/logger" "github.com/dapr/kit/ptr" "github.com/dapr/kit/utils" ) const ( daprSeparator = "||" metadataPartitionKey = "partitionKey" errStateStoreNotFound = "actors: state store does not exist or incorrectly configured" errStateStoreNotConfigured = `actors: state store does not exist or incorrectly configured. Have you set the property '{"name": "actorStateStore", "value": "true"}' in your state store component file?` // If an idle actor is getting deactivated, but it's still busy, will be re-enqueued with its idle timeout increased by this duration. actorBusyReEnqueueInterval = 10 * time.Second ) var ( log = logger.NewLogger("dapr.runtime.actor") ErrIncompatibleStateStore = errors.New("actor state store does not exist, or does not support transactions which are required to save state - please see https://docs.dapr.io/operations/components/setup-state-store/supported-state-stores/") ErrReminderOpActorNotHosted = errors.New("operations on actor reminders are only possible on hosted actor types") ErrTransactionsTooManyOperations = errors.New("the transaction contains more operations than supported by the state store") ErrReminderCanceled = internal.ErrReminderCanceled ) // ActorRuntime is the main runtime for the actors subsystem. type ActorRuntime interface { Actors io.Closer Init(context.Context) error IsActorHosted(ctx context.Context, req *ActorHostedRequest) bool GetRuntimeStatus(ctx context.Context) *runtimev1pb.ActorRuntime RegisterInternalActor(ctx context.Context, actorType string, actor InternalActorFactory, actorIdleTimeout time.Duration) error } // Actors allow calling into virtual actors as well as actor state management. type Actors interface { // Call an actor. Call(ctx context.Context, req *internalv1pb.InternalInvokeRequest) (*internalv1pb.InternalInvokeResponse, error) // GetState retrieves actor state. GetState(ctx context.Context, req *GetStateRequest) (*StateResponse, error) // GetBulkState retrieves actor state in bulk. GetBulkState(ctx context.Context, req *GetBulkStateRequest) (BulkStateResponse, error) // TransactionalStateOperation performs a transactional state operation with the actor state store. TransactionalStateOperation(ctx context.Context, req *TransactionalRequest) error // GetReminder retrieves an actor reminder. GetReminder(ctx context.Context, req *GetReminderRequest) (*internal.Reminder, error) // CreateReminder creates an actor reminder. CreateReminder(ctx context.Context, req *CreateReminderRequest) error // DeleteReminder deletes an actor reminder. DeleteReminder(ctx context.Context, req *DeleteReminderRequest) error // CreateTimer creates an actor timer. CreateTimer(ctx context.Context, req *CreateTimerRequest) error // DeleteTimer deletes an actor timer. DeleteTimer(ctx context.Context, req *DeleteTimerRequest) error } // GRPCConnectionFn is the type of the function that returns a gRPC connection type GRPCConnectionFn func(ctx context.Context, address string, id string, namespace string, customOpts ...grpc.DialOption) (*grpc.ClientConn, func(destroy bool), error) type actorsRuntime struct { idleActorProcessor *eventqueue.Processor[string, *actor] appChannel channel.AppChannel placement internal.PlacementService placementEnabled bool grpcConnectionFn GRPCConnectionFn actorsConfig Config timers internal.TimersProvider actorsReminders internal.RemindersProvider actorsTable *sync.Map tracingSpec config.TracingSpec resiliency resiliency.Provider storeName string compStore *compstore.ComponentStore clock clock.WithTicker internalActorTypes *haxmap.Map[string, InternalActorFactory] internalActors *haxmap.Map[string, InternalActor] sec security.Handler checker *health.Checker wg sync.WaitGroup closed atomic.Bool closeCh chan struct{} apiLevel atomic.Uint32 // TODO: @joshvanl Remove in Dapr 1.12 when ActorStateTTL is finalized. stateTTLEnabled bool } // ActorsOpts contains options for NewActors. type ActorsOpts struct { AppChannel channel.AppChannel GRPCConnectionFn GRPCConnectionFn Config Config TracingSpec config.TracingSpec Resiliency resiliency.Provider StateStoreName string CompStore *compstore.ComponentStore Security security.Handler // TODO: @joshvanl Remove in Dapr 1.12 when ActorStateTTL is finalized. StateTTLEnabled bool // MockPlacement is a placement service implementation used for testing MockPlacement internal.PlacementService } // NewActors create a new actors runtime with given config. func NewActors(opts ActorsOpts) (ActorRuntime, error) { return newActorsWithClock(opts, &clock.RealClock{}) } func newActorsWithClock(opts ActorsOpts, clock clock.WithTicker) (ActorRuntime, error) { a := &actorsRuntime{ appChannel: opts.AppChannel, grpcConnectionFn: opts.GRPCConnectionFn, actorsConfig: opts.Config, timers: timers.NewTimersProvider(clock), tracingSpec: opts.TracingSpec, resiliency: opts.Resiliency, storeName: opts.StateStoreName, placement: opts.MockPlacement, actorsTable: &sync.Map{}, clock: clock, internalActorTypes: haxmap.New[string, InternalActorFactory](4), // Initial capacity should be enough for the current built-in actors internalActors: haxmap.New[string, InternalActor](32), compStore: opts.CompStore, sec: opts.Security, // TODO: @joshvanl Remove in Dapr 1.12 when ActorStateTTL is finalized. stateTTLEnabled: opts.StateTTLEnabled, closeCh: make(chan struct{}), } // Init reminders and placement providerOpts := internal.ActorsProviderOptions{ Config: a.actorsConfig.Config, Security: a.sec, AppHealthFn: func(ctx context.Context) <-chan bool { if a.checker == nil { return nil } return a.checker.HealthChannel() }, Clock: a.clock, APILevel: &a.apiLevel, Resiliency: a.resiliency, Namespace: security.CurrentNamespace(), } // Initialize the placement client if we don't have a mocked one already if a.placement == nil { factory, fErr := opts.Config.GetPlacementProvider() if fErr != nil { return nil, fmt.Errorf("failed to initialize placement provider: %w", fErr) } a.placement = factory(providerOpts) } factory, err := opts.Config.GetRemindersProvider(a.placement) if err != nil { return nil, fmt.Errorf("failed to initialize reminders provider: %w", err) } a.actorsReminders = factory(providerOpts) a.actorsReminders.SetExecuteReminderFn(a.executeReminder) a.actorsReminders.SetStateStoreProviderFn(a.stateStore) a.actorsReminders.SetLookupActorFn(a.isActorLocallyHosted) a.placement.SetHaltActorFns(a.haltActor, a.haltAllActors) a.placement.SetOnAPILevelUpdate(func(apiLevel uint32) { a.apiLevel.Store(apiLevel) log.Infof("Actor API level in the cluster has been updated to %d", apiLevel) }) a.timers.SetExecuteTimerFn(a.executeTimer) a.idleActorProcessor = eventqueue.NewProcessor[string, *actor](a.idleProcessorExecuteFn).WithClock(clock) return a, nil } func (a *actorsRuntime) isActorLocallyHosted(ctx context.Context, actorType string, actorID string) (isLocal bool, actorAddress string) { lar, err := a.placement.LookupActor(ctx, internal.LookupActorRequest{ ActorType: actorType, ActorID: actorID, }) if err != nil { log.Warn(err.Error()) return false, "" } if a.isActorLocal(lar.Address, a.actorsConfig.Config.HostAddress, a.actorsConfig.Config.Port) { return true, lar.Address } return false, lar.Address } func (a *actorsRuntime) haveCompatibleStorage() bool { store, ok := a.compStore.GetStateStore(a.storeName) if !ok { // If we have hosted actors and no store, we can't initialize the actor runtime return false } features := store.Features() return state.FeatureETag.IsPresent(features) && state.FeatureTransactional.IsPresent(features) } func (a *actorsRuntime) Init(ctx context.Context) (err error) { if a.closed.Load() { return errors.New("actors runtime has already been closed") } if len(a.actorsConfig.ActorsService) == 0 { return errors.New("actors: couldn't connect to actors service: address is empty") } hat := a.actorsConfig.Config.HostedActorTypes.ListActorTypes() if len(hat) > 0 { if !a.haveCompatibleStorage() { return ErrIncompatibleStateStore } } a.actorsReminders.Init(ctx) a.timers.Init(ctx) a.placementEnabled = true a.placement.SetOnTableUpdateFn(func() { a.drainRebalancedActors() a.actorsReminders.OnPlacementTablesUpdated(ctx) }) a.checker, err = a.getAppHealthChecker() if err != nil { return fmt.Errorf("actors: couldn't create health check: %w", err) } if a.checker != nil { a.wg.Add(1) go func() { defer a.wg.Done() a.checker.Run(ctx) }() } for _, actorType := range hat { err = a.placement.AddHostedActorType(actorType, a.actorsConfig.GetIdleTimeoutForType(actorType)) if err != nil { return fmt.Errorf("failed to register actor '%s': %w", actorType, err) } } a.wg.Add(1) go func() { defer a.wg.Done() a.placement.Start(ctx) }() log.Infof("Actor runtime started. Idle timeout: %v", a.actorsConfig.Config.ActorIdleTimeout) return nil } func (a *actorsRuntime) getAppHealthChecker() (*health.Checker, error) { if len(a.actorsConfig.Config.HostedActorTypes.ListActorTypes()) == 0 || a.appChannel == nil { return nil, nil } // Be careful to configure healthz endpoint option. If app healthz returns unhealthy status, Dapr will // disconnect from placement to remove the node from consistent hashing ring. // i.e if app is busy state, the healthz status would be flaky, which leads to frequent // actor rebalancing. It will impact the entire service. return a.getAppHealthCheckerWithOptions( health.WithFailureThreshold(4), health.WithHealthyStateInterval(5*time.Second), health.WithUnHealthyStateInterval(time.Second/2), health.WithRequestTimeout(2*time.Second), health.WithHTTPClient(a.actorsConfig.HealthHTTPClient), ) } func (a *actorsRuntime) getAppHealthCheckerWithOptions(opts ...health.Option) (*health.Checker, error) { opts = append(opts, health.WithAddress(a.actorsConfig.HealthEndpoint+"/healthz")) return health.New(opts...) } func constructCompositeKey(keys ...string) string { return strings.Join(keys, daprSeparator) } // Halts an actor, removing it from the actors table and then deactivating it func (a *actorsRuntime) haltActor(actorType, actorID string) error { key := constructCompositeKey(actorType, actorID) log.Debugf("Halting actor '%s'", key) // Remove the actor from the table // This will forbit more state changes actAny, ok := a.actorsTable.LoadAndDelete(key) // If nothing was loaded, the actor was probably already deactivated if !ok || actAny == nil { return nil } act := actAny.(*actor) for { // wait until actor is not busy, then deactivate if !act.isBusy() { break } a.clock.Sleep(time.Millisecond * 100) } return a.deactivateActor(act) } // Halts all actors func (a *actorsRuntime) haltAllActors() error { // Visit all currently active actors and deactivate them errCh := make(chan error) count := atomic.Int32{} a.actorsTable.Range(func(key any, value any) bool { count.Add(1) go func(key any) { actorKey := key.(string) err := a.haltActor(a.getActorTypeAndIDFromKey(actorKey)) if err != nil { errCh <- fmt.Errorf("failed to deactivate actor '%s': %v", actorKey, err) } else { errCh <- nil } }(key) return true }) // Collect all errors, which also waits for all goroutines to return errs := []error{} for i := int32(0); i < count.Load(); i++ { err := <-errCh if err != nil { errs = append(errs, err) } } return errors.Join(errs...) } func (a *actorsRuntime) deactivateActor(act *actor) error { // This uses a background context as it should be unrelated from the caller's context // Once the decision to deactivate an actor has been made, we must go through with it or we could have an inconsistent state ctx, cancel := context.WithCancel(context.Background()) defer cancel() go func() { defer cancel() select { case <-ctx.Done(): case <-a.closeCh: } }() // Delete the actor from the actor table regardless of the outcome of deactivation the actor in the app actorKey := act.Key() a.actorsTable.Delete(actorKey) err := a.placement.ReportActorDeactivation(ctx, act.actorType, act.actorID) if err != nil { return fmt.Errorf("failed to report actor deactivation for actor '%s': %w", actorKey, err) } // If it's an internal actor, we call it directly _, ok := a.internalActorTypes.Get(act.actorType) if ok { internalAct, loaded := a.internalActors.GetAndDel(act.Key()) // If the actor was loaded in-memory, call DeactivateActor on it if loaded { err = internalAct.DeactivateActor(ctx) if err != nil { diag.DefaultMonitoring.ActorDeactivationFailed(act.actorType, "internal") return fmt.Errorf("failed to deactivate internal actor: %w", err) } } } else if a.appChannel != nil { req := invokev1.NewInvokeMethodRequest("actors/"+act.actorType+"/"+act.actorID). WithActor(act.actorType, act.actorID). WithHTTPExtension(http.MethodDelete, ""). WithContentType(invokev1.JSONContentType) defer req.Close() resp, err := a.appChannel.InvokeMethod(ctx, req, "") if err != nil { diag.DefaultMonitoring.ActorDeactivationFailed(act.actorType, "invoke") return err } defer resp.Close() if resp.Status().GetCode() != http.StatusOK { diag.DefaultMonitoring.ActorDeactivationFailed(act.actorType, "status_code_"+strconv.FormatInt(int64(resp.Status().GetCode()), 10)) body, _ := resp.RawDataFull() return fmt.Errorf("error from actor service: %s", string(body)) } } diag.DefaultMonitoring.ActorDeactivated(act.actorType) log.Debugf("Deactivated actor '%s'", actorKey) return nil } func (a *actorsRuntime) getActorTypeAndIDFromKey(key string) (string, string) { typ, id, _ := strings.Cut(key, daprSeparator) return typ, id } // Returns an internal actor instance, allocating it if needed. // If the actor type does not correspond to an internal actor, the returned boolean is false func (a *actorsRuntime) getInternalActor(actorType string, actorID string) (InternalActor, bool) { factory, ok := a.internalActorTypes.Get(actorType) if !ok { return nil, false } internalAct, _ := a.internalActors.GetOrCompute(actorType+daprSeparator+actorID, func() InternalActor { return factory(actorType, actorID, a) }) return internalAct, true } func (a *actorsRuntime) Call(ctx context.Context, req *internalv1pb.InternalInvokeRequest) (res *internalv1pb.InternalInvokeResponse, err error) { err = a.placement.WaitUntilReady(ctx) if err != nil { return nil, fmt.Errorf("failed to wait for placement readiness: %w", err) } // Do a lookup to check if the actor is local actor := req.GetActor() actorType := actor.GetActorType() lar, err := a.placement.LookupActor(ctx, internal.LookupActorRequest{ ActorType: actorType, ActorID: actor.GetActorId(), }) if err != nil { return nil, err } if a.isActorLocal(lar.Address, a.actorsConfig.Config.HostAddress, a.actorsConfig.Config.Port) { // If this is an internal actor, we call it using a separate path internalAct, ok := a.getInternalActor(actorType, actor.GetActorId()) if ok { res, err = a.callInternalActor(ctx, req, internalAct) } else { res, err = a.callLocalActor(ctx, req) } } else { res, err = a.callRemoteActorWithRetry(ctx, retry.DefaultLinearRetryCount, retry.DefaultLinearBackoffInterval, a.callRemoteActor, lar.Address, lar.AppID, req) } if err != nil { if res != nil && actorerrors.Is(err) { return res, err } return nil, err } return res, nil } // callRemoteActorWithRetry will call a remote actor for the specified number of retries and will only retry in the case of transient failures. func (a *actorsRuntime) callRemoteActorWithRetry( ctx context.Context, numRetries int, backoffInterval time.Duration, fn func(ctx context.Context, targetAddress, targetID string, req *internalv1pb.InternalInvokeRequest) (*internalv1pb.InternalInvokeResponse, func(destroy bool), error), targetAddress, targetID string, req *internalv1pb.InternalInvokeRequest, ) (*internalv1pb.InternalInvokeResponse, error) { if !a.resiliency.PolicyDefined(req.GetActor().GetActorType(), resiliency.ActorPolicy{}) { policyRunner := resiliency.NewRunner[*internalv1pb.InternalInvokeResponse](ctx, a.resiliency.BuiltInPolicy(resiliency.BuiltInActorRetries)) return policyRunner(func(ctx context.Context) (*internalv1pb.InternalInvokeResponse, error) { attempt := resiliency.GetAttempt(ctx) rResp, teardown, rErr := fn(ctx, targetAddress, targetID, req) if rErr == nil { teardown(false) return rResp, nil } code := status.Code(rErr) if code == codes.Unavailable || code == codes.Unauthenticated { // Destroy the connection and force a re-connection on the next attempt teardown(true) return rResp, fmt.Errorf("failed to invoke target %s after %d retries. Error: %w", targetAddress, attempt-1, rErr) } teardown(false) return rResp, backoff.Permanent(rErr) }) } res, teardown, err := fn(ctx, targetAddress, targetID, req) teardown(false) return res, err } func (a *actorsRuntime) getOrCreateActor(act *internalv1pb.Actor) *actor { key := act.GetActorKey() // This avoids allocating multiple actor allocations by calling newActor // whenever actor is invoked. When storing actor key first, there is a chance to // call newActor, but this is trivial. val, ok := a.actorsTable.Load(key) if !ok { actorInstance := newActor( act.GetActorType(), act.GetActorId(), a.actorsConfig.GetReentrancyForType(act.GetActorType()).MaxStackDepth, a.actorsConfig.GetIdleTimeoutForType(act.GetActorType()), a.clock, ) val, _ = a.actorsTable.LoadOrStore(key, actorInstance) } return val.(*actor) } func (a *actorsRuntime) callLocalActor(ctx context.Context, req *internalv1pb.InternalInvokeRequest) (*internalv1pb.InternalInvokeResponse, error) { act := a.getOrCreateActor(req.GetActor()) // Create the InvokeMethodRequest imReq, err := invokev1.FromInternalInvokeRequest(req) if err != nil { return nil, fmt.Errorf("failed to create InvokeMethodRequest: %w", err) } defer imReq.Close() // Reentrancy to determine how we lock. var reentrancyID *string if a.actorsConfig.GetReentrancyForType(act.actorType).Enabled { if md := imReq.Metadata()["Dapr-Reentrancy-Id"]; md != nil && len(md.GetValues()) > 0 { reentrancyID = ptr.Of(md.GetValues()[0]) } else { var uuidObj uuid.UUID uuidObj, err = uuid.NewRandom() if err != nil { return nil, fmt.Errorf("failed to generate UUID: %w", err) } uuidStr := uuidObj.String() imReq.AddMetadata(map[string][]string{ "Dapr-Reentrancy-Id": {uuidStr}, }) reentrancyID = &uuidStr } } err = act.lock(reentrancyID) if err != nil { return nil, status.Error(codes.ResourceExhausted, err.Error()) } err = a.idleActorProcessor.Enqueue(act) if err != nil { return nil, fmt.Errorf("failed to enqueue actor in idle processor: %w", err) } defer act.unlock() // Replace method to actors method. msg := imReq.Message() originalMethod := msg.GetMethod() msg.Method = "actors/" + act.actorType + "/" + act.actorID + "/method/" + msg.GetMethod() // Reset the method so we can perform retries. defer func() { msg.Method = originalMethod }() // Per API contract, actor invocations over HTTP always use PUT as request method if msg.GetHttpExtension() == nil { imReq.WithHTTPExtension(http.MethodPut, "") } else { msg.HttpExtension.Verb = commonv1pb.HTTPExtension_PUT //nolint:nosnakecase } if a.appChannel == nil { return nil, fmt.Errorf("app channel for actor type %s is nil", act.actorType) } policyDef := a.resiliency.ActorPostLockPolicy(act.actorType, act.actorID) // If the request can be retried, we need to enable replaying if policyDef != nil && policyDef.HasRetries() { imReq.WithReplay(true) } policyRunner := resiliency.NewRunnerWithOptions(ctx, policyDef, resiliency.RunnerOpts[*invokev1.InvokeMethodResponse]{ Disposer: resiliency.DisposerCloser[*invokev1.InvokeMethodResponse], }, ) imRes, err := policyRunner(func(ctx context.Context) (*invokev1.InvokeMethodResponse, error) { return a.appChannel.InvokeMethod(ctx, imReq, "") }) if err != nil { return nil, err } if imRes == nil { return nil, errors.New("error from actor service: response object is nil") } defer imRes.Close() if imRes.Status().GetCode() != http.StatusOK { respData, _ := imRes.RawDataFull() return nil, fmt.Errorf("error from actor service: %s", string(respData)) } // Get the protobuf res, err := imRes.ProtoWithData() if err != nil { return nil, fmt.Errorf("failed to read response data: %w", err) } // The .NET SDK indicates Actor failure via a header instead of a bad response if _, ok := res.GetHeaders()["X-Daprerrorresponseheader"]; ok { return res, actorerrors.NewActorError(res) } // Allow stopping a recurring reminder or timer if v := res.GetHeaders()["X-Daprremindercancel"]; v != nil && len(v.GetValues()) > 0 && utils.IsTruthy(v.GetValues()[0]) { return res, ErrReminderCanceled } return res, nil } // Locks an internal actor for a request // //nolint:protogetter func (a *actorsRuntime) lockInternalActorForRequest(act *actor, req *internalv1pb.InternalInvokeRequest) (md map[string][]string, err error) { var reentrancyID *string // The req object is nil if this is a request for a reminder or timer if req != nil { // Get metadata in a map // Allocate with an extra 1 capacity to add the Dapr-Reentrancy-Id value if needed md = make(map[string][]string, len(req.Metadata)+1) for k, v := range req.Metadata { vals := v.GetValues() if len(vals) == 0 { continue } md[k] = vals } } // Reentrancy to determine how we lock. if a.actorsConfig.GetReentrancyForType(act.actorType).Enabled { if md != nil && len(md["Dapr-Reentrancy-Id"]) > 0 { reentrancyID = ptr.Of(md["Dapr-Reentrancy-Id"][0]) } else { var uuidObj uuid.UUID uuidObj, err = uuid.NewRandom() if err != nil { return nil, fmt.Errorf("failed to generate UUID: %w", err) } reentrancyID = ptr.Of(uuidObj.String()) if md == nil { md = make(map[string][]string, 1) } md["Dapr-Reentrancy-Id"] = []string{*reentrancyID} } } err = act.lock(reentrancyID) if err != nil { return nil, status.Error(codes.ResourceExhausted, err.Error()) } return md, nil } // Calls a local, internal actor func (a *actorsRuntime) callInternalActor(ctx context.Context, req *internalv1pb.InternalInvokeRequest, internalAct InternalActor) (*internalv1pb.InternalInvokeResponse, error) { if req.GetMessage() == nil { return nil, errors.New("message is nil in request") } // Get the actor, activating it as necessary, and the metadata for the request act := a.getOrCreateActor(req.GetActor()) md, err := a.lockInternalActorForRequest(act, req) if err != nil { return nil, err } defer act.unlock() msg := req.GetMessage() policyDef := a.resiliency.ActorPostLockPolicy(act.actorType, act.actorID) policyRunner := resiliency.NewRunner[*internalv1pb.InternalInvokeResponse](ctx, policyDef) return policyRunner(func(ctx context.Context) (*internalv1pb.InternalInvokeResponse, error) { resData, err := internalAct.InvokeMethod(ctx, msg.GetMethod(), msg.GetData().GetValue(), md) if err != nil { return nil, fmt.Errorf("error from internal actor: %w", err) } return &internalv1pb.InternalInvokeResponse{ Status: &internalv1pb.Status{ Code: http.StatusOK, }, Message: &commonv1pb.InvokeResponse{ Data: &anypb.Any{ Value: resData, }, }, }, nil }) } func (a *actorsRuntime) callRemoteActor( ctx context.Context, targetAddress, targetID string, req *internalv1pb.InternalInvokeRequest, ) (*internalv1pb.InternalInvokeResponse, func(destroy bool), error) { conn, teardown, err := a.grpcConnectionFn(context.TODO(), targetAddress, targetID, a.actorsConfig.Config.Namespace) if err != nil { return nil, teardown, err } span := diagUtils.SpanFromContext(ctx) ctx = diag.SpanContextToGRPCMetadata(ctx, span.SpanContext()) client := internalv1pb.NewServiceInvocationClient(conn) res, err := client.CallActor(ctx, req) if err != nil { return nil, teardown, err } if len(res.GetHeaders()["X-Daprerrorresponseheader"].GetValues()) > 0 { return res, teardown, actorerrors.NewActorError(res) } return res, teardown, nil } func (a *actorsRuntime) isActorLocal(targetActorAddress, hostAddress string, grpcPort int) bool { portStr := strconv.Itoa(grpcPort) if targetActorAddress == hostAddress+":"+portStr { // Easy case when there is a perfect match return true } if isLocalhost(hostAddress) && strings.HasSuffix(targetActorAddress, ":"+portStr) { return isLocalhost(targetActorAddress[0 : len(targetActorAddress)-len(portStr)-1]) } return false } func isLocalhost(addr string) bool { return addr == "localhost" || addr == "127.0.0.1" || addr == "[::1]" || addr == "::1" } func (a *actorsRuntime) GetState(ctx context.Context, req *GetStateRequest) (*StateResponse, error) { storeName, store, err := a.stateStore() if err != nil { return nil, err } actorKey := req.ActorKey() partitionKey := constructCompositeKey(a.actorsConfig.Config.AppID, actorKey) metadata := map[string]string{metadataPartitionKey: partitionKey} key := a.constructActorStateKey(actorKey, req.Key) policyRunner := resiliency.NewRunner[*state.GetResponse](ctx, a.resiliency.ComponentOutboundPolicy(storeName, resiliency.Statestore), ) storeReq := &state.GetRequest{ Key: key, Metadata: metadata, } resp, err := policyRunner(func(ctx context.Context) (*state.GetResponse, error) { return store.Get(ctx, storeReq) }) if err != nil { return nil, err } if resp == nil { return &StateResponse{}, nil } return &StateResponse{ Data: resp.Data, Metadata: resp.Metadata, }, nil } func (a *actorsRuntime) GetBulkState(ctx context.Context, req *GetBulkStateRequest) (BulkStateResponse, error) { storeName, store, err := a.stateStore() if err != nil { return nil, err } actorKey := req.ActorKey() baseKey := constructCompositeKey(a.actorsConfig.Config.AppID, actorKey) metadata := map[string]string{metadataPartitionKey: baseKey} bulkReqs := make([]state.GetRequest, len(req.Keys)) for i, key := range req.Keys { bulkReqs[i] = state.GetRequest{ Key: a.constructActorStateKey(actorKey, key), Metadata: metadata, } } policyRunner := resiliency.NewRunner[[]state.BulkGetResponse](ctx, a.resiliency.ComponentOutboundPolicy(storeName, resiliency.Statestore), ) res, err := policyRunner(func(ctx context.Context) ([]state.BulkGetResponse, error) { return store.BulkGet(ctx, bulkReqs, state.BulkGetOpts{}) }) if err != nil { return nil, err } // Add the dapr separator to baseKey baseKey += daprSeparator bulkRes := make(BulkStateResponse, len(res)) for _, r := range res { if r.Error != "" { return nil, fmt.Errorf("failed to retrieve key '%s': %s", r.Key, r.Error) } // Trim the prefix from the key bulkRes[strings.TrimPrefix(r.Key, baseKey)] = r.Data } return bulkRes, nil } func (a *actorsRuntime) TransactionalStateOperation(ctx context.Context, req *TransactionalRequest) (err error) { operations := make([]state.TransactionalStateOperation, len(req.Operations)) baseKey := constructCompositeKey(a.actorsConfig.Config.AppID, req.ActorKey()) metadata := map[string]string{metadataPartitionKey: baseKey} baseKey += daprSeparator for i, o := range req.Operations { operations[i], err = o.StateOperation(baseKey, StateOperationOpts{ Metadata: metadata, // TODO: @joshvanl Remove in Dapr 1.12 when ActorStateTTL is finalized. StateTTLEnabled: a.stateTTLEnabled, }) if err != nil { return err } } return a.executeStateStoreTransaction(ctx, operations, metadata) } func (a *actorsRuntime) executeStateStoreTransaction(ctx context.Context, operations []state.TransactionalStateOperation, metadata map[string]string) error { storeName, store, err := a.stateStore() if err != nil { return err } if maxMulti, ok := store.(state.TransactionalStoreMultiMaxSize); ok { max := maxMulti.MultiMaxSize() if max > 0 && len(operations) > max { return ErrTransactionsTooManyOperations } } stateReq := &state.TransactionalStateRequest{ Operations: operations, Metadata: metadata, } policyRunner := resiliency.NewRunner[struct{}](ctx, a.resiliency.ComponentOutboundPolicy(storeName, resiliency.Statestore), ) _, err = policyRunner(func(ctx context.Context) (struct{}, error) { return struct{}{}, store.Multi(ctx, stateReq) }) return err } func (a *actorsRuntime) IsActorHosted(ctx context.Context, req *ActorHostedRequest) bool { key := req.ActorKey() policyDef := a.resiliency.BuiltInPolicy(resiliency.BuiltInActorNotFoundRetries) policyRunner := resiliency.NewRunner[any](ctx, policyDef) _, err := policyRunner(func(ctx context.Context) (any, error) { _, exists := a.actorsTable.Load(key) if !exists { // Error message isn't used - we just need to have an error return nil, errors.New("") } return nil, nil }) return err == nil } func (a *actorsRuntime) constructActorStateKey(actorKey, key string) string { return constructCompositeKey(a.actorsConfig.Config.AppID, actorKey, key) } func (a *actorsRuntime) drainRebalancedActors() { // visit all currently active actors. var wg sync.WaitGroup a.actorsTable.Range(func(key any, value any) bool { wg.Add(1) go func(key any, value any) { defer wg.Done() // for each actor, deactivate if no longer hosted locally actorKey := key.(string) actorType, actorID := a.getActorTypeAndIDFromKey(actorKey) lar, _ := a.placement.LookupActor(context.TODO(), internal.LookupActorRequest{ ActorType: actorType, ActorID: actorID, }) if lar.Address != "" && !a.isActorLocal(lar.Address, a.actorsConfig.Config.HostAddress, a.actorsConfig.Config.Port) { // actor has been moved to a different host, deactivate when calls are done cancel any reminders // each item in reminders contain a struct with some metadata + the actual reminder struct a.actorsReminders.DrainRebalancedReminders(actorType, actorID) act := value.(*actor) if a.actorsConfig.GetDrainRebalancedActorsForType(actorType) { // wait until actor isn't busy or timeout hits if act.isBusy() { select { case <-a.clock.After(a.actorsConfig.Config.DrainOngoingCallTimeout): break case <-act.channel(): // if a call comes in from the actor for state changes, that's still allowed break } } } diag.DefaultMonitoring.ActorRebalanced(actorType) err := a.haltActor(actorType, actorID) if err != nil { log.Errorf("Failed to deactivate actor '%s': %v", actorKey, err) } } }(key, value) return true }) wg.Wait() } // executeTimer implements timers.ExecuteTimerFn. func (a *actorsRuntime) executeTimer(reminder *internal.Reminder) bool { _, exists := a.actorsTable.Load(reminder.ActorKey()) if !exists { log.Errorf("Could not find active timer %s", reminder.Key()) return false } err := a.doExecuteReminderOrTimer(context.TODO(), reminder, true) diag.DefaultMonitoring.ActorTimerFired(reminder.ActorType, err == nil) if err != nil { log.Errorf("error invoking timer on actor %s: %s", reminder.ActorKey(), err) // Here we return true even if we have an error because the timer can still trigger again return true } return true } // executeReminder implements reminders.ExecuteReminderFn. func (a *actorsRuntime) executeReminder(reminder *internal.Reminder) bool { err := a.doExecuteReminderOrTimer(context.TODO(), reminder, false) diag.DefaultMonitoring.ActorReminderFired(reminder.ActorType, err == nil) if err != nil { if errors.Is(err, ErrReminderCanceled) { // The handler is explicitly canceling the timer log.Debug("Reminder " + reminder.ActorKey() + " was canceled by the actor") return false } log.Errorf("Error invoking reminder on actor %s: %s", reminder.ActorKey(), err) } return true } // Executes a reminder or timer on an internal actor func (a *actorsRuntime) doExecuteReminderOrTimerOnInternalActor(ctx context.Context, reminder *internal.Reminder, isTimer bool, internalAct InternalActor) (err error) { // Get the actor, activating it as necessary, and the metadata for the request act := a.getOrCreateActor(&internalv1pb.Actor{ ActorType: reminder.ActorType, ActorId: reminder.ActorID, }) md, err := a.lockInternalActorForRequest(act, nil) if err != nil { return err } defer act.unlock() ir := newInternalActorReminder(reminder) if isTimer { log.Debugf("Executing timer for internal actor '%s'", reminder.Key()) err = internalAct.InvokeTimer(ctx, ir, md) if err != nil { if !errors.Is(err, ErrReminderCanceled) { log.Errorf("Error executing timer for internal actor '%s': %v", reminder.Key(), err) } return err } } else { log.Debugf("Executing reminder for internal actor '%s'", reminder.Key()) err = internalAct.InvokeReminder(ctx, ir, md) if err != nil { if !errors.Is(err, ErrReminderCanceled) { log.Errorf("Error executing reminder for internal actor '%s': %v", reminder.Key(), err) } return err } } return nil } // Executes a reminder or timer func (a *actorsRuntime) doExecuteReminderOrTimer(ctx context.Context, reminder *internal.Reminder, isTimer bool) (err error) { // Sanity check: make sure the actor is actually locally-hosted isLocal, _ := a.isActorLocallyHosted(ctx, reminder.ActorType, reminder.ActorID) if !isLocal { return errors.New("actor is not locally hosted") } // If it's an internal actor, we call it directly internalAct, ok := a.getInternalActor(reminder.ActorType, reminder.ActorID) if ok { return a.doExecuteReminderOrTimerOnInternalActor(ctx, reminder, isTimer, internalAct) } var ( data []byte logName string invokeMethod string ) if isTimer { logName = "timer" invokeMethod = "timer/" + reminder.Name data, err = json.Marshal(&TimerResponse{ Callback: reminder.Callback, Data: reminder.Data, DueTime: reminder.DueTime, Period: reminder.Period.String(), }) if err != nil { return err } } else { logName = "reminder" invokeMethod = "remind/" + reminder.Name data, err = json.Marshal(&ReminderResponse{ DueTime: reminder.DueTime, Period: reminder.Period.String(), Data: reminder.Data, }) if err != nil { return err } } policyDef := a.resiliency.ActorPreLockPolicy(reminder.ActorType, reminder.ActorID) log.Debug("Executing " + logName + " for actor " + reminder.Key()) req := internalv1pb.NewInternalInvokeRequest(invokeMethod). WithActor(reminder.ActorType, reminder.ActorID). WithData(data). WithContentType(internalv1pb.JSONContentType) policyRunner := resiliency.NewRunner[*internalv1pb.InternalInvokeResponse](ctx, policyDef) _, err = policyRunner(func(ctx context.Context) (*internalv1pb.InternalInvokeResponse, error) { return a.callLocalActor(ctx, req) }) if err != nil { if !errors.Is(err, ErrReminderCanceled) { log.Errorf("Error executing %s for actor %s: %v", logName, reminder.Key(), err) } return err } return nil } func (a *actorsRuntime) CreateReminder(ctx context.Context, req *CreateReminderRequest) error { if !a.actorsConfig.Config.HostedActorTypes.IsActorTypeHosted(req.ActorType) { return ErrReminderOpActorNotHosted } // Create the new reminder object reminder, err := req.NewReminder(a.clock.Now()) if err != nil { return err } return a.actorsReminders.CreateReminder(ctx, reminder) } func (a *actorsRuntime) CreateTimer(ctx context.Context, req *CreateTimerRequest) error { _, exists := a.actorsTable.Load(req.ActorKey()) if !exists { return fmt.Errorf("can't create timer for actor %s: actor not activated", req.ActorKey()) } reminder, err := req.NewReminder(a.clock.Now()) if err != nil { return err } return a.timers.CreateTimer(ctx, reminder) } func (a *actorsRuntime) DeleteReminder(ctx context.Context, req *DeleteReminderRequest) error { if !a.actorsConfig.Config.HostedActorTypes.IsActorTypeHosted(req.ActorType) { return ErrReminderOpActorNotHosted } return a.actorsReminders.DeleteReminder(ctx, *req) } func (a *actorsRuntime) GetReminder(ctx context.Context, req *GetReminderRequest) (*internal.Reminder, error) { if !a.actorsConfig.Config.HostedActorTypes.IsActorTypeHosted(req.ActorType) { return nil, ErrReminderOpActorNotHosted } return a.actorsReminders.GetReminder(ctx, req) } func (a *actorsRuntime) DeleteTimer(ctx context.Context, req *DeleteTimerRequest) error { return a.timers.DeleteTimer(ctx, req.Key()) } func (a *actorsRuntime) RegisterInternalActor(ctx context.Context, actorType string, factory InternalActorFactory, actorIdleTimeout time.Duration) error { if !a.haveCompatibleStorage() { return fmt.Errorf("unable to register internal actor type '%s': %w", actorType, ErrIncompatibleStateStore) } // Call GetOrSet which returns "existing=true" if the actor type was already registered _, existing := a.internalActorTypes.GetOrSet(actorType, factory) if existing { return fmt.Errorf("actor type '%s' already registered", actorType) } log.Debugf("Registered internal actor type '%s'", actorType) a.actorsConfig.Config.HostedActorTypes.AddActorType(actorType, actorIdleTimeout) if a.placementEnabled { err := a.placement.AddHostedActorType(actorType, actorIdleTimeout) if err != nil { return fmt.Errorf("error updating hosted actor types: %w", err) } } return nil } func (a *actorsRuntime) GetRuntimeStatus(ctx context.Context) *runtimev1pb.ActorRuntime { // Do not populate RuntimeStatus, which will be populated by the runtime res := &runtimev1pb.ActorRuntime{ ActiveActors: a.getActiveActorsCount(ctx), } if a.placementEnabled { res.HostReady = a.placement.PlacementHealthy() && a.haveCompatibleStorage() res.Placement = a.placement.StatusMessage() } return res } func (a *actorsRuntime) getActiveActorsCount(ctx context.Context) []*runtimev1pb.ActiveActorsCount { actorTypes := a.actorsConfig.Config.HostedActorTypes.ListActorTypes() actorCountMap := make(map[string]int32, len(actorTypes)) for _, actorType := range actorTypes { if !isInternalActor(actorType) { actorCountMap[actorType] = 0 } } a.actorsTable.Range(func(key, value any) bool { actorType, _ := a.getActorTypeAndIDFromKey(key.(string)) if !isInternalActor(actorType) { actorCountMap[actorType]++ } return true }) activeActorsCount := make([]*runtimev1pb.ActiveActorsCount, len(actorCountMap)) n := 0 for actorType, count := range actorCountMap { activeActorsCount[n] = &runtimev1pb.ActiveActorsCount{Type: actorType, Count: count} n++ } return activeActorsCount } func isInternalActor(actorType string) bool { return strings.HasPrefix(actorType, InternalActorTypePrefix) } // Stop closes all network connections and resources used in actor runtime. func (a *actorsRuntime) Close() error { defer a.wg.Wait() var errs []error if a.closed.CompareAndSwap(false, true) { close(a.closeCh) if a.checker != nil { a.checker.Close() } if a.placement != nil { if err := a.placement.Close(); err != nil { errs = append(errs, fmt.Errorf("failed to close placement service: %w", err)) } } if a.idleActorProcessor != nil { err := a.idleActorProcessor.Close() if err != nil { errs = append(errs, fmt.Errorf("failed to close actor idle processor: %w", err)) } } } return errors.Join(errs...) } // ValidateHostEnvironment validates that actors can be initialized properly given a set of parameters // And the mode the runtime is operating in. func ValidateHostEnvironment(mTLSEnabled bool, mode modes.DaprMode, namespace string) error { switch mode { case modes.KubernetesMode: if mTLSEnabled && namespace == "" { return errors.New("actors must have a namespace configured when running in Kubernetes mode") } } return nil } func (a *actorsRuntime) stateStore() (string, internal.TransactionalStateStore, error) { storeS, ok := a.compStore.GetStateStore(a.storeName) if !ok { return "", nil, errors.New(errStateStoreNotFound) } store, ok := storeS.(internal.TransactionalStateStore) if !ok || !state.FeatureETag.IsPresent(store.Features()) || !state.FeatureTransactional.IsPresent(store.Features()) { return "", nil, errors.New(errStateStoreNotConfigured) } return a.storeName, store, nil }
mikeee/dapr
pkg/actors/actors.go
GO
mit
42,823
//go:build unit // +build unit /* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by mockery v1.0.0. package actors import ( "context" "errors" "time" mock "github.com/stretchr/testify/mock" "google.golang.org/protobuf/types/known/anypb" "github.com/dapr/dapr/pkg/actors/internal" commonv1pb "github.com/dapr/dapr/pkg/proto/common/v1" internalsv1pb "github.com/dapr/dapr/pkg/proto/internals/v1" runtimev1pb "github.com/dapr/dapr/pkg/proto/runtime/v1" daprt "github.com/dapr/dapr/pkg/testing" ) type ( // Expose Reminders for mocking MockReminder = internal.Reminder // Expose PlacementService for mocking PlacementService = internal.PlacementService ) // MockPlacement is a mock placement service. type MockPlacement struct { testAppID string lookupActorResponses map[string]internal.LookupActorResponse } func NewMockPlacement(testAppID string) internal.PlacementService { return &MockPlacement{ testAppID: testAppID, lookupActorResponses: make(map[string]internal.LookupActorResponse), } } // LookupActor implements internal.PlacementService func (*MockPlacement) AddHostedActorType(string, time.Duration) error { return nil } func (p *MockPlacement) SetLookupActorResponse(req internal.LookupActorRequest, res internal.LookupActorResponse) { p.lookupActorResponses[req.ActorKey()] = res } // LookupActor implements internal.PlacementService func (p *MockPlacement) LookupActor(ctx context.Context, req internal.LookupActorRequest) (internal.LookupActorResponse, error) { res, ok := p.lookupActorResponses[req.ActorKey()] if ok { return res, nil } return internal.LookupActorResponse{ Address: "localhost:5000", AppID: p.testAppID, }, nil } // Start implements internal.PlacementService func (*MockPlacement) Start(context.Context) error { return nil } // Stop implements internal.PlacementService func (*MockPlacement) Close() error { return nil } // SetOnTableUpdateFn implements internal.PlacementService func (*MockPlacement) SetOnTableUpdateFn(fn func()) { // No-op } // SetOnAPILevelUpdate implements internal.PlacementService func (*MockPlacement) SetOnAPILevelUpdate(fn func(apiLevel uint32)) { // No-op } // WaitUntilReady implements internal.PlacementService func (*MockPlacement) WaitUntilReady(ctx context.Context) error { return nil } // PlacementHealthy implements internal.PlacementService func (*MockPlacement) PlacementHealthy() bool { return true } // StatusMessage implements internal.PlacementService func (*MockPlacement) StatusMessage() string { return "" } // ReportActorDeactivation implements implements internal.PlacementService func (*MockPlacement) ReportActorDeactivation(ctx context.Context, actorType, actorID string) error { return nil } // SetHaltActorFns implements implements internal.PlacementService func (*MockPlacement) SetHaltActorFns(haltFn internal.HaltActorFn, haltAllFn internal.HaltAllActorsFn) { // Nop } // MockActors is an autogenerated mock type for the Actors type type MockActors struct { mock.Mock } func (_m *MockActors) RegisterInternalActor(ctx context.Context, actorType string, actor InternalActorFactory, actorIdleTimeout time.Duration) error { return nil } // Call provides a mock function with given fields: req func (_m *MockActors) Call(ctx context.Context, req *internalsv1pb.InternalInvokeRequest) (*internalsv1pb.InternalInvokeResponse, error) { ret := _m.Called(req) var r0 *internalsv1pb.InternalInvokeResponse if rf, ok := ret.Get(0).(func(*internalsv1pb.InternalInvokeRequest) *internalsv1pb.InternalInvokeResponse); ok { r0 = rf(req) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*internalsv1pb.InternalInvokeResponse) } } var r1 error if rf, ok := ret.Get(1).(func(*internalsv1pb.InternalInvokeRequest) error); ok { r1 = rf(req) } else { r1 = ret.Error(1) } return r0, r1 } // CreateReminder provides a mock function with given fields: req func (_m *MockActors) CreateReminder(ctx context.Context, req *CreateReminderRequest) error { ret := _m.Called(req) var r0 error if rf, ok := ret.Get(0).(func(*CreateReminderRequest) error); ok { r0 = rf(req) } else { r0 = ret.Error(0) } return r0 } // IsActorHosted provides a mock function with given fields: req func (_m *MockActors) IsActorHosted(ctx context.Context, req *ActorHostedRequest) bool { ret := _m.Called(req) var r0 bool if rf, ok := ret.Get(0).(func(*ActorHostedRequest) bool); ok { r0 = rf(req) } else { r0 = true } return r0 } // CreateTimer provides a mock function with given fields: req func (_m *MockActors) CreateTimer(ctx context.Context, req *CreateTimerRequest) error { ret := _m.Called(req) var r0 error if rf, ok := ret.Get(0).(func(*CreateTimerRequest) error); ok { r0 = rf(req) } else { r0 = ret.Error(0) } return r0 } // DeleteReminder provides a mock function with given fields: req func (_m *MockActors) DeleteReminder(ctx context.Context, req *DeleteReminderRequest) error { ret := _m.Called(req) var r0 error if rf, ok := ret.Get(0).(func(*DeleteReminderRequest) error); ok { r0 = rf(req) } else { r0 = ret.Error(0) } return r0 } // DeleteTimer provides a mock function with given fields: req func (_m *MockActors) DeleteTimer(ctx context.Context, req *DeleteTimerRequest) error { ret := _m.Called(req) var r0 error if rf, ok := ret.Get(0).(func(*DeleteTimerRequest) error); ok { r0 = rf(req) } else { r0 = ret.Error(0) } return r0 } // GetState provides a mock function with given fields: req func (_m *MockActors) GetState(ctx context.Context, req *GetStateRequest) (*StateResponse, error) { ret := _m.Called(req) var r0 *StateResponse if rf, ok := ret.Get(0).(func(*GetStateRequest) *StateResponse); ok { r0 = rf(req) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*StateResponse) } } var r1 error if rf, ok := ret.Get(1).(func(*GetStateRequest) error); ok { r1 = rf(req) } else { r1 = ret.Error(1) } return r0, r1 } // BulkGetState provides a mock function with given fields: req func (_m *MockActors) GetBulkState(ctx context.Context, req *GetBulkStateRequest) (BulkStateResponse, error) { ret := _m.Called(req) var r0 BulkStateResponse if rf, ok := ret.Get(0).(func(*GetBulkStateRequest) BulkStateResponse); ok { r0 = rf(req) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(BulkStateResponse) } } var r1 error if rf, ok := ret.Get(1).(func(*GetBulkStateRequest) error); ok { r1 = rf(req) } else { r1 = ret.Error(1) } return r0, r1 } // Init provides a mock function with given fields: func (_m *MockActors) Init(_ context.Context) error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 } // Close provides a mock function with given fields: func (_m *MockActors) Close() error { _m.Called() return nil } // TransactionalStateOperation provides a mock function with given fields: req func (_m *MockActors) TransactionalStateOperation(ctx context.Context, req *TransactionalRequest) error { ret := _m.Called(req) var r0 error if rf, ok := ret.Get(0).(func(*TransactionalRequest) error); ok { r0 = rf(req) } else { r0 = ret.Error(0) } return r0 } // GetReminder provides a mock function with given fields: req func (_m *MockActors) GetReminder(ctx context.Context, req *GetReminderRequest) (*internal.Reminder, error) { ret := _m.Called(req) var r0 *internal.Reminder if rf, ok := ret.Get(0).(func(*GetReminderRequest) *internal.Reminder); ok { r0 = rf(req) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*internal.Reminder) } } var r1 error if rf, ok := ret.Get(1).(func(*GetReminderRequest) error); ok { r1 = rf(req) } else { r1 = ret.Error(1) } return r0, r1 } // GetRuntimeStatus provides a mock function func (_m *MockActors) GetRuntimeStatus(ctx context.Context) *runtimev1pb.ActorRuntime { _m.Called() return &runtimev1pb.ActorRuntime{ HostReady: true, ActiveActors: []*runtimev1pb.ActiveActorsCount{ { Type: "abcd", Count: 10, }, { Type: "xyz", Count: 5, }, }, } } type FailingActors struct { Failure daprt.Failure } func (f *FailingActors) RegisterInternalActor(ctx context.Context, actorType string, actor InternalActorFactory, actorIdleTimeout time.Duration) error { return nil } func (f *FailingActors) Call(ctx context.Context, req *internalsv1pb.InternalInvokeRequest) (*internalsv1pb.InternalInvokeResponse, error) { if req == nil || req.Actor == nil { return nil, errors.New("req.Actor is nil") } if err := f.Failure.PerformFailure(req.Actor.ActorId); err != nil { return nil, err } var data []byte if req.Message != nil && req.Message.Data != nil { data = req.Message.Data.Value } res := &internalsv1pb.InternalInvokeResponse{ Status: &internalsv1pb.Status{ Code: 200, Message: "Success", }, Message: &commonv1pb.InvokeResponse{ Data: &anypb.Any{ Value: data, }, }, } return res, nil } func (f *FailingActors) Init(_ context.Context) error { return nil } func (f *FailingActors) Close() error { return nil } func (f *FailingActors) GetState(ctx context.Context, req *GetStateRequest) (*StateResponse, error) { return nil, nil } func (f *FailingActors) GetBulkState(ctx context.Context, req *GetBulkStateRequest) (BulkStateResponse, error) { return nil, nil } func (f *FailingActors) TransactionalStateOperation(ctx context.Context, req *TransactionalRequest) error { return nil } func (f *FailingActors) GetReminder(ctx context.Context, req *GetReminderRequest) (*internal.Reminder, error) { return nil, nil } func (f *FailingActors) CreateReminder(ctx context.Context, req *CreateReminderRequest) error { return nil } func (f *FailingActors) DeleteReminder(ctx context.Context, req *DeleteReminderRequest) error { return nil } func (f *FailingActors) CreateTimer(ctx context.Context, req *CreateTimerRequest) error { return nil } func (f *FailingActors) DeleteTimer(ctx context.Context, req *DeleteTimerRequest) error { return nil } func (f *FailingActors) IsActorHosted(ctx context.Context, req *ActorHostedRequest) bool { return true } func (f *FailingActors) GetRuntimeStatus(ctx context.Context) *runtimev1pb.ActorRuntime { return &runtimev1pb.ActorRuntime{ ActiveActors: []*runtimev1pb.ActiveActorsCount{}, } }
mikeee/dapr
pkg/actors/actors_mock.go
GO
mit
10,913
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "context" "encoding/json" "fmt" "net/http" "net/http/httptest" "strconv" "strings" "sync" "sync/atomic" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/exp/slices" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" kclock "k8s.io/utils/clock" clocktesting "k8s.io/utils/clock/testing" "github.com/dapr/components-contrib/state" "github.com/dapr/dapr/pkg/actors/health" "github.com/dapr/dapr/pkg/actors/internal" "github.com/dapr/dapr/pkg/apis/resiliency/v1alpha1" "github.com/dapr/dapr/pkg/channel" "github.com/dapr/dapr/pkg/config" invokev1 "github.com/dapr/dapr/pkg/messaging/v1" "github.com/dapr/dapr/pkg/modes" internalsv1pb "github.com/dapr/dapr/pkg/proto/internals/v1" runtimev1pb "github.com/dapr/dapr/pkg/proto/runtime/v1" "github.com/dapr/dapr/pkg/resiliency" "github.com/dapr/dapr/pkg/runtime/compstore" daprt "github.com/dapr/dapr/pkg/testing" eventqueue "github.com/dapr/kit/events/queue" "github.com/dapr/kit/ptr" ) const ( TestAppID = "fakeAppID" TestKeyName = "key0" TestPodName = "testPodName" TestActorMetadataPartitionCount = 3 ) var DefaultAppConfig = config.ApplicationConfig{ Entities: []string{"1", "reentrantActor"}, ActorIdleTimeout: "1s", DrainOngoingCallTimeout: "3s", DrainRebalancedActors: true, Reentrancy: config.ReentrancyConfig{}, RemindersStoragePartitions: 0, } var startOfTime = time.Date(2022, 1, 1, 12, 0, 0, 0, time.UTC) // testRequest is the request object that encapsulates the `data` field of a request. type testRequest struct { Data any `json:"data"` } type mockAppChannel struct { channel.AppChannel requestC chan testRequest } var testResiliency = &v1alpha1.Resiliency{ Spec: v1alpha1.ResiliencySpec{ Policies: v1alpha1.Policies{ Retries: map[string]v1alpha1.Retry{ "singleRetry": { MaxRetries: ptr.Of(1), MaxInterval: "100ms", Policy: "constant", Duration: "10ms", }, }, Timeouts: map[string]string{ "fast": "100ms", }, }, Targets: v1alpha1.Targets{ Actors: map[string]v1alpha1.ActorPolicyNames{ "failingActorType": { Timeout: "fast", }, }, Components: map[string]v1alpha1.ComponentPolicyNames{ "failStore": { Outbound: v1alpha1.PolicyNames{ Retry: "singleRetry", Timeout: "fast", }, }, }, }, }, } func (m *mockAppChannel) InvokeMethod(ctx context.Context, req *invokev1.InvokeMethodRequest, appID string) (*invokev1.InvokeMethodResponse, error) { if m.requestC != nil { var request testRequest err := json.NewDecoder(req.RawData()).Decode(&request) if err == nil { m.requestC <- request } } return invokev1.NewInvokeMethodResponse(200, "OK", nil), nil } type reentrantAppChannel struct { channel.AppChannel nextCall []*internalsv1pb.InternalInvokeRequest callLog []string a *actorsRuntime } func (r *reentrantAppChannel) InvokeMethod(ctx context.Context, req *invokev1.InvokeMethodRequest, appID string) (*invokev1.InvokeMethodResponse, error) { r.callLog = append(r.callLog, "Entering "+req.Message().GetMethod()) if len(r.nextCall) > 0 { nextReq := r.nextCall[0] r.nextCall = r.nextCall[1:] if val := req.Metadata()["Dapr-Reentrancy-Id"]; val != nil { if nextReq.Metadata == nil { //nolint:protogetter nextReq.Metadata = make(map[string]*internalsv1pb.ListStringValue) } nextReq.Metadata["Dapr-Reentrancy-Id"] = &internalsv1pb.ListStringValue{ Values: val.GetValues(), } } _, err := r.a.callLocalActor(context.Background(), nextReq) if err != nil { return nil, err } } r.callLog = append(r.callLog, "Exiting "+req.Message().GetMethod()) return invokev1.NewInvokeMethodResponse(200, "OK", nil), nil } type runtimeBuilder struct { appChannel channel.AppChannel config *Config actorStore state.Store actorStoreName string clock kclock.WithTicker } func (b *runtimeBuilder) buildActorRuntime(t *testing.T) *actorsRuntime { if b.appChannel == nil { b.appChannel = new(mockAppChannel) } if b.config == nil { config := NewConfig(ConfigOpts{ HostAddress: "", AppID: TestAppID, ActorsService: "placement:placement:5050", Port: 0, Namespace: "", AppConfig: config.ApplicationConfig{ Entities: []string{"failingActor"}, }, PodName: TestPodName, }) b.config = &config } store := fakeStore() storeName := "actorStore" if b.actorStore != nil { store = b.actorStore storeName = b.actorStoreName } clock := b.clock if clock == nil { mc := clocktesting.NewFakeClock(startOfTime) clock = mc } compStore := compstore.New() compStore.AddStateStore(storeName, store) a, err := newActorsWithClock(ActorsOpts{ CompStore: compStore, AppChannel: b.appChannel, Config: *b.config, TracingSpec: config.TracingSpec{SamplingRate: "1"}, Resiliency: resiliency.FromConfigurations(log, testResiliency), StateStoreName: storeName, }, clock) require.NoError(t, err) return a.(*actorsRuntime) } func newTestActorsRuntimeWithMock(t *testing.T, appChannel channel.AppChannel) *actorsRuntime { conf := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "placement:placement:5050", AppConfig: config.ApplicationConfig{ Entities: []string{"cat", "dog", "actor2"}, }, HostAddress: "localhost", Port: Port, }) clock := clocktesting.NewFakeClock(startOfTime) compStore := compstore.New() compStore.AddStateStore("actorStore", fakeStore()) a, err := newActorsWithClock(ActorsOpts{ CompStore: compStore, AppChannel: appChannel, Config: conf, TracingSpec: config.TracingSpec{SamplingRate: "1"}, Resiliency: resiliency.New(log), StateStoreName: "actorStore", MockPlacement: NewMockPlacement(TestAppID), }, clock) require.NoError(t, err) return a.(*actorsRuntime) } func newTestActorsRuntimeWithMockWithoutPlacement(t *testing.T, appChannel channel.AppChannel) *actorsRuntime { conf := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "", AppConfig: config.ApplicationConfig{}, }) clock := clocktesting.NewFakeClock(startOfTime) a, err := newActorsWithClock(ActorsOpts{ CompStore: compstore.New(), AppChannel: appChannel, Config: conf, TracingSpec: config.TracingSpec{SamplingRate: "1"}, Resiliency: resiliency.New(log), StateStoreName: "actorStore", }, clock) require.NoError(t, err) return a.(*actorsRuntime) } func newTestActorsRuntimeWithMockAndNoStore(t *testing.T, appChannel channel.AppChannel) *actorsRuntime { conf := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "", AppConfig: config.ApplicationConfig{}, }) clock := clocktesting.NewFakeClock(startOfTime) a, err := newActorsWithClock(ActorsOpts{ CompStore: compstore.New(), AppChannel: appChannel, Config: conf, TracingSpec: config.TracingSpec{SamplingRate: "1"}, Resiliency: resiliency.New(log), StateStoreName: "actorStore", }, clock) require.NoError(t, err) return a.(*actorsRuntime) } func newTestActorsRuntimeWithoutStore(t *testing.T) *actorsRuntime { appChannel := new(mockAppChannel) return newTestActorsRuntimeWithMockAndNoStore(t, appChannel) } func newTestActorsRuntime(t *testing.T) *actorsRuntime { appChannel := new(mockAppChannel) return newTestActorsRuntimeWithMock(t, appChannel) } func newTestActorsRuntimeWithoutPlacement(t *testing.T) *actorsRuntime { appChannel := new(mockAppChannel) return newTestActorsRuntimeWithMockWithoutPlacement(t, appChannel) } func getTestActorTypeAndID() (string, string) { return "cat", "e485d5de-de48-45ab-816e-6cc700d18ace" } func fakeStore() state.Store { return daprt.NewFakeStateStore() } func fakeCallAndActivateActor(actors *actorsRuntime, actorType, actorID string, clock kclock.WithTicker) { actorKey := constructCompositeKey(actorType, actorID) act := newActor(actorType, actorID, &reentrancyStackDepth, actors.actorsConfig.GetIdleTimeoutForType(actorType), clock) actors.actorsTable.LoadOrStore(actorKey, act) actors.idleActorProcessor.Enqueue(act) } func deactivateActorsCh(testActorsRuntime *actorsRuntime) <-chan string { ch := make(chan string, 2) // Replace the processor with a mock one that returns deactivated actors in a channel testActorsRuntime.idleActorProcessor = eventqueue.NewProcessor[string, *actor](func(act *actor) { if !testActorsRuntime.idleActorBusyCheck(act) { return } key := act.Key() testActorsRuntime.actorsTable.Delete(key) ch <- constructCompositeKey(key) }).WithClock(testActorsRuntime.clock) return ch } // Makes tickers advance func advanceTickers(t *testing.T, clock *clocktesting.FakeClock, step time.Duration) { t.Helper() // Wait for the clock to have tickers before stepping, since they are likely // being created in another go routine to this test. require.Eventually(t, func() bool { return clock.HasWaiters() }, 2*time.Second, 5*time.Millisecond, "ticker in program not created in time") clock.Step(step) } func TestDeactivateIdleActors(t *testing.T) { actorType, actorID := getTestActorTypeAndID() actorKey := constructCompositeKey(actorType, actorID) t.Run("idle actor is deactivated", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) testActorsRuntime.actorsConfig.ActorIdleTimeout = time.Second * 2 defer testActorsRuntime.Close() clock := testActorsRuntime.clock.(*clocktesting.FakeClock) ch := deactivateActorsCh(testActorsRuntime) fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) _, exists := testActorsRuntime.actorsTable.Load(actorKey) assert.True(t, exists) clock.Step(2 * time.Second) select { case deactivatedKey := <-ch: assert.Equal(t, actorKey, deactivatedKey) case <-time.After(700 * time.Millisecond): t.Errorf("Did not receive signal in time") } _, exists = testActorsRuntime.actorsTable.Load(actorKey) assert.False(t, exists) }) t.Run("non-idle actor is not deactivated", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) testActorsRuntime.actorsConfig.ActorIdleTimeout = time.Second * 5 defer testActorsRuntime.Close() clock := testActorsRuntime.clock.(*clocktesting.FakeClock) ch := deactivateActorsCh(testActorsRuntime) fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) _, exists := testActorsRuntime.actorsTable.Load(actorKey) assert.True(t, exists) clock.Step(3 * time.Second) select { case <-ch: t.Errorf("Received unexpected signal") case <-time.After(500 * time.Millisecond): // all good } _, exists = testActorsRuntime.actorsTable.Load(actorKey) assert.True(t, exists) }) t.Run("per-actor timeout", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() clock := testActorsRuntime.clock.(*clocktesting.FakeClock) ch := deactivateActorsCh(testActorsRuntime) testActorsRuntime.actorsConfig.EntityConfigs["a"] = internal.EntityConfig{ Entities: []string{"a"}, ActorIdleTimeout: time.Second * 2, } testActorsRuntime.actorsConfig.EntityConfigs["b"] = internal.EntityConfig{ Entities: []string{"b"}, ActorIdleTimeout: time.Second * 5, } // Actors a||1 and a||2 should be deactivated in 2s, while b||1 in 5s fakeCallAndActivateActor(testActorsRuntime, "a", "1", testActorsRuntime.clock) fakeCallAndActivateActor(testActorsRuntime, "a", "2", testActorsRuntime.clock) fakeCallAndActivateActor(testActorsRuntime, "b", "1", testActorsRuntime.clock) collectSignals := func() []string { signals := make([]string, 0) deadline := time.After(700 * time.Millisecond) for { select { case <-deadline: slices.Sort(signals) return signals case key := <-ch: signals = append(signals, key) } } } assertActorExists := func(t *testing.T, actorKey string, expectExists bool) { _, exists := testActorsRuntime.actorsTable.Load(actorKey) assert.Equal(t, expectExists, exists) } // After 2s, we should have a||1 and a||2 deactivated only advanceTickers(t, clock, 2*time.Second) assert.Equal(t, []string{constructCompositeKey("a", "1"), constructCompositeKey("a", "2")}, collectSignals()) assertActorExists(t, constructCompositeKey("a", "1"), false) assertActorExists(t, constructCompositeKey("a", "2"), false) assertActorExists(t, constructCompositeKey("b", "1"), true) // Activate a||3 which should be deactivated in 2s, before b||1 fakeCallAndActivateActor(testActorsRuntime, "a", "3", testActorsRuntime.clock) advanceTickers(t, clock, 2*time.Second) assert.Equal(t, []string{constructCompositeKey("a", "3")}, collectSignals()) assertActorExists(t, constructCompositeKey("a", "3"), false) assertActorExists(t, constructCompositeKey("b", "1"), true) // Activate a||4 which should be deactivated in 2s // But first, in 1s, b||1 should be deactivated too fakeCallAndActivateActor(testActorsRuntime, "a", "4", testActorsRuntime.clock) advanceTickers(t, clock, 1*time.Second) assert.Equal(t, []string{constructCompositeKey("b", "1")}, collectSignals()) assertActorExists(t, constructCompositeKey("b", "1"), false) assertActorExists(t, constructCompositeKey("a", "4"), true) // Lastly, a||4 should be deactivated in 1s advanceTickers(t, clock, 1*time.Second) assert.Equal(t, []string{constructCompositeKey("a", "4")}, collectSignals()) assertActorExists(t, constructCompositeKey("a", "4"), false) }) t.Run("actor is still busy", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) testActorsRuntime.actorsConfig.ActorIdleTimeout = time.Second * 2 defer testActorsRuntime.Close() clock := testActorsRuntime.clock.(*clocktesting.FakeClock) ch := deactivateActorsCh(testActorsRuntime) fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) actAny, ok := testActorsRuntime.actorsTable.Load(actorKey) require.True(t, ok) act, ok := actAny.(*actor) require.True(t, ok) // Get the idleAt timeout idleAt := *act.idleAt.Load() require.Equal(t, clock.Now().Add(2*time.Second), idleAt) // Lock the actor so it's busy act.lock(nil) // Advance by 3s which should trigger the tick // The actor should not be deactivated clock.Step(3 * time.Second) select { case <-ch: t.Errorf("Received unexpected signal") case <-time.After(500 * time.Millisecond): // all good } _, ok = testActorsRuntime.actorsTable.Load(actorKey) require.True(t, ok) // The actor's idleAt time should have increased newIdleAt := *act.idleAt.Load() require.Equal(t, clock.Now().Add(actorBusyReEnqueueInterval), newIdleAt) // Unlock the actor act.unlock() // Advance by actorBusyReEnqueueInterval and ensure the actor now is deactivated clock.Step(actorBusyReEnqueueInterval) select { case deactivatedKey := <-ch: assert.Equal(t, actorKey, deactivatedKey) case <-time.After(700 * time.Millisecond): t.Errorf("Did not receive signal in time") } _, ok = testActorsRuntime.actorsTable.Load(actorKey) require.False(t, ok) }) } func TestTimerExecution(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) period, _ := internal.NewReminderPeriod("2s") err := testActorsRuntime.doExecuteReminderOrTimer(context.Background(), &internal.Reminder{ ActorType: actorType, ActorID: actorID, Name: "timer1", Period: period, RegisteredTime: testActorsRuntime.clock.Now().Add(2 * time.Second), DueTime: "2s", Callback: "callback", Data: json.RawMessage(`"data"`), }, true) require.NoError(t, err) } func TestReminderExecution(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) period, _ := internal.NewReminderPeriod("2s") err := testActorsRuntime.doExecuteReminderOrTimer(context.Background(), &internal.Reminder{ ActorType: actorType, ActorID: actorID, RegisteredTime: time.Now().Add(2 * time.Second), Period: period, Name: "reminder1", Data: json.RawMessage(`"data"`), }, false) require.NoError(t, err) } func TestConstructActorStateKey(t *testing.T) { delim := "||" testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() expected := strings.Join([]string{TestAppID, actorType, actorID, TestKeyName}, delim) // act stateKey := testActorsRuntime.constructActorStateKey(constructCompositeKey(actorType, actorID), TestKeyName) // assert assert.Equal(t, expected, stateKey) // Check split keys := strings.Split(stateKey, delim) assert.Len(t, keys, 4) assert.Equal(t, TestAppID, keys[0]) assert.Equal(t, actorType, keys[1]) assert.Equal(t, actorID, keys[2]) assert.Equal(t, TestKeyName, keys[3]) } func TestGetState(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() ctx := context.Background() fakeData := strconv.Quote("fakeData") var val any json.Unmarshal([]byte(fakeData), &val) fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Upsert, Request: TransactionalUpsert{ Key: TestKeyName, Value: val, }, }, }, }) require.NoError(t, err) // act response, err := testActorsRuntime.GetState(ctx, &GetStateRequest{ ActorID: actorID, ActorType: actorType, Key: TestKeyName, }) // assert require.NoError(t, err) assert.Equal(t, fakeData, string(response.Data)) } func TestGetBulkState(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() ctx := context.Background() fakeData := strconv.Quote("fakeData") var val any json.Unmarshal([]byte(fakeData), &val) fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Upsert, Request: TransactionalUpsert{ Key: "key1", Value: val, }, }, { Operation: Upsert, Request: TransactionalUpsert{ Key: "key2", Value: val, }, }, }, }) require.NoError(t, err) // act response, err := testActorsRuntime.GetBulkState(ctx, &GetBulkStateRequest{ ActorID: actorID, ActorType: actorType, Keys: []string{"key1", "key2"}, }) // assert require.NoError(t, err) require.Len(t, response, 2) assert.Equal(t, fakeData, string(response["key1"])) assert.Equal(t, fakeData, string(response["key2"])) } func TestDeleteState(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() ctx := context.Background() fakeData := strconv.Quote("fakeData") var val any json.Unmarshal([]byte(fakeData), &val) fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) // insert state err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Upsert, Request: TransactionalUpsert{ Key: TestKeyName, Value: val, }, }, }, }) require.NoError(t, err) // save state response, err := testActorsRuntime.GetState(ctx, &GetStateRequest{ ActorID: actorID, ActorType: actorType, Key: TestKeyName, }) // make sure that state is stored. require.NoError(t, err) assert.Equal(t, fakeData, string(response.Data)) // delete state err = testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Delete, Request: TransactionalDelete{ Key: TestKeyName, }, }, }, }) require.NoError(t, err) // act response, err = testActorsRuntime.GetState(ctx, &GetStateRequest{ ActorID: actorID, ActorType: actorType, Key: TestKeyName, }) // assert require.NoError(t, err) assert.Nilf(t, response.Data, "expected nil, but got %s", string(response.Data)) } func TestTransactionalOperation(t *testing.T) { t.Run("test upsert operations", func(t *testing.T) { op := TransactionalOperation{ Operation: Upsert, Request: TransactionalUpsert{ Key: TestKeyName, Value: "respiri piano per non far rumore", }, } res, err := op.StateOperation("base||", StateOperationOpts{}) require.NoError(t, err) require.Equal(t, state.OperationUpsert, res.Operation()) // Uses a pointer op = TransactionalOperation{ Operation: Upsert, Request: &TransactionalUpsert{ Key: TestKeyName, Value: "respiri piano per non far rumore", }, } res, err = op.StateOperation("base||", StateOperationOpts{}) require.NoError(t, err) require.Equal(t, state.OperationUpsert, res.Operation()) // Missing key op = TransactionalOperation{ Operation: Upsert, Request: &TransactionalUpsert{}, } _, err = op.StateOperation("base||", StateOperationOpts{}) require.Error(t, err) }) t.Run("test delete operations", func(t *testing.T) { op := TransactionalOperation{ Operation: Delete, Request: TransactionalDelete{ Key: TestKeyName, }, } res, err := op.StateOperation("base||", StateOperationOpts{}) require.NoError(t, err) require.Equal(t, state.OperationDelete, res.Operation()) // Uses a pointer op = TransactionalOperation{ Operation: Delete, Request: &TransactionalDelete{ Key: TestKeyName, }, } res, err = op.StateOperation("base||", StateOperationOpts{}) require.NoError(t, err) require.Equal(t, state.OperationDelete, res.Operation()) // Missing key op = TransactionalOperation{ Operation: Delete, Request: &TransactionalDelete{}, } _, err = op.StateOperation("base||", StateOperationOpts{}) require.Error(t, err) }) t.Run("error on mismatched request and operation", func(t *testing.T) { op := TransactionalOperation{ Operation: Upsert, Request: TransactionalDelete{ Key: TestKeyName, }, } _, err := op.StateOperation("base||", StateOperationOpts{}) require.Error(t, err) op = TransactionalOperation{ Operation: Delete, Request: TransactionalUpsert{ Key: TestKeyName, }, } _, err = op.StateOperation("base||", StateOperationOpts{}) require.Error(t, err) }) t.Run("request as map", func(t *testing.T) { op := TransactionalOperation{ Operation: Upsert, Request: map[string]any{ "key": TestKeyName, }, } resI, err := op.StateOperation("base||", StateOperationOpts{}) require.NoError(t, err) res, ok := resI.(state.SetRequest) require.True(t, ok) assert.Equal(t, "base||"+TestKeyName, res.Key) }) t.Run("error if ttlInSeconds and actor state TTL not enabled", func(t *testing.T) { op := TransactionalOperation{ Operation: Upsert, Request: map[string]any{ "key": TestKeyName, "metadata": map[string]string{"ttlInSeconds": "1"}, }, } _, err := op.StateOperation("base||", StateOperationOpts{ StateTTLEnabled: false, }) require.ErrorContains(t, err, `ttlInSeconds is not supported without the "ActorStateTTL" feature enabled`) resI, err := op.StateOperation("base||", StateOperationOpts{ StateTTLEnabled: true, }) require.NoError(t, err) res, ok := resI.(state.SetRequest) require.True(t, ok) assert.Equal(t, "base||"+TestKeyName, res.Key) }) } func TestCallLocalActor(t *testing.T) { const ( testActorType = "pet" testActorID = "dog" testMethod = "bite" ) req := internalsv1pb. NewInternalInvokeRequest(testMethod). WithActor(testActorType, testActorID) t.Run("invoke actor successfully", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() resp, err := testActorsRuntime.callLocalActor(context.Background(), req) require.NoError(t, err) assert.NotNil(t, resp) }) t.Run("actor is already disposed", func(t *testing.T) { // arrange testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorKey := constructCompositeKey(testActorType, testActorID) act := newActor(testActorType, testActorID, &reentrancyStackDepth, 2*time.Second, testActorsRuntime.clock) // add test actor testActorsRuntime.actorsTable.LoadOrStore(actorKey, act) act.lock(nil) assert.True(t, act.isBusy()) // get dispose channel for test actor ch := act.channel() act.unlock() _, closed := <-ch assert.False(t, closed, "dispose channel must be closed after unlock") // act resp, err := testActorsRuntime.callLocalActor(context.Background(), req) // assert s, _ := status.FromError(err) assert.Equal(t, codes.ResourceExhausted, s.Code()) assert.Nil(t, resp) }) } func TestTransactionalState(t *testing.T) { ctx := context.Background() t.Run("Single set request succeeds", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Upsert, Request: TransactionalUpsert{ Key: "key1", Value: "fakeData", }, }, }, }) require.NoError(t, err) }) t.Run("Multiple requests succeeds", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Upsert, Request: TransactionalUpsert{ Key: "key1", Value: "fakeData", }, }, { Operation: Delete, Request: TransactionalDelete{ Key: "key1", }, }, }, }) require.NoError(t, err) }) t.Run("Too many requests fail", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() _, store, err := testActorsRuntime.stateStore() require.NoError(t, err) fakeStore, ok := store.(*daprt.FakeStateStore) require.True(t, ok) fakeStore.MaxOperations = 10 actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) ops := make([]TransactionalOperation, 20) for i := 0; i < 20; i++ { ops[i] = TransactionalOperation{ Operation: Upsert, Request: TransactionalUpsert{ Key: fmt.Sprintf("key%d", i), Value: "hello", }, } } err = testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: ops, }) require.Error(t, err) require.ErrorIs(t, err, ErrTransactionsTooManyOperations) }) t.Run("Wrong request body - should fail", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: Upsert, Request: "wrongBody", }, }, }) require.Error(t, err) }) t.Run("Unsupported operation type - should fail", func(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) actorType, actorID := getTestActorTypeAndID() fakeCallAndActivateActor(testActorsRuntime, actorType, actorID, testActorsRuntime.clock) err := testActorsRuntime.TransactionalStateOperation(ctx, &TransactionalRequest{ ActorType: actorType, ActorID: actorID, Operations: []TransactionalOperation{ { Operation: "Wrong", Request: "wrongBody", }, }, }) require.EqualError(t, err, "operation type Wrong not supported") }) } func TestGetOrCreateActor(t *testing.T) { const testActorType = "fakeActor" testActorsRuntime := newTestActorsRuntime(t) defer testActorsRuntime.Close() t.Run("create new key", func(t *testing.T) { act := testActorsRuntime.getOrCreateActor(&internalsv1pb.Actor{ ActorType: testActorType, ActorId: "id-1", }) assert.NotNil(t, act) }) t.Run("try to create the same key", func(t *testing.T) { oldActor := testActorsRuntime.getOrCreateActor(&internalsv1pb.Actor{ ActorType: testActorType, ActorId: "id-2", }) assert.NotNil(t, oldActor) newActor := testActorsRuntime.getOrCreateActor(&internalsv1pb.Actor{ ActorType: testActorType, ActorId: "id-2", }) assert.Same(t, oldActor, newActor, "should not create new actor") }) } func TestActiveActorsCount(t *testing.T) { ctx := context.Background() t.Run("Actors Count", func(t *testing.T) { expectedCounts := []*runtimev1pb.ActiveActorsCount{{Type: "cat", Count: 2}, {Type: "dog", Count: 1}} testActorsRuntime := newTestActorsRuntime(t) testActorsRuntime.actorsConfig.Config.HostedActorTypes = internal.NewHostedActors([]string{"cat", "dog"}) defer testActorsRuntime.Close() fakeCallAndActivateActor(testActorsRuntime, "cat", "abcd", testActorsRuntime.clock) fakeCallAndActivateActor(testActorsRuntime, "cat", "xyz", testActorsRuntime.clock) fakeCallAndActivateActor(testActorsRuntime, "dog", "xyz", testActorsRuntime.clock) actualCounts := testActorsRuntime.getActiveActorsCount(ctx) assert.ElementsMatch(t, expectedCounts, actualCounts) }) t.Run("Actors Count empty", func(t *testing.T) { expectedCounts := []*runtimev1pb.ActiveActorsCount{} testActorsRuntime := newTestActorsRuntime(t) testActorsRuntime.actorsConfig.Config.HostedActorTypes = internal.NewHostedActors([]string{}) defer testActorsRuntime.Close() actualCounts := testActorsRuntime.getActiveActorsCount(ctx) assert.Equal(t, expectedCounts, actualCounts) }) } func TestActorsAppHealthCheck(t *testing.T) { testFn := func(testActorsRuntime *actorsRuntime) func(t *testing.T) { return func(t *testing.T) { defer testActorsRuntime.Close() clock := testActorsRuntime.clock.(*clocktesting.FakeClock) var i int testServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if i == 0 { w.WriteHeader(http.StatusOK) } else { w.WriteHeader(http.StatusInternalServerError) } i++ })) t.Cleanup(testServer.Close) testActorsRuntime.actorsConfig.Config.HostedActorTypes = internal.NewHostedActors([]string{"actor1"}) testActorsRuntime.actorsConfig.HealthEndpoint = testServer.URL ctx, cancel := context.WithCancel(context.Background()) t.Cleanup(cancel) opts := []health.Option{ health.WithClock(clock), health.WithFailureThreshold(1), health.WithHealthyStateInterval(2 * time.Second), health.WithUnHealthyStateInterval(2 * time.Second), health.WithRequestTimeout(100 * time.Millisecond), } var wg sync.WaitGroup checker, err := testActorsRuntime.getAppHealthCheckerWithOptions(opts...) require.NoError(t, err) wg.Add(2) go func() { defer wg.Done() checker.Run(ctx) }() healthy := atomic.Bool{} healthy.Store(true) go func() { defer wg.Done() for v := range checker.HealthChannel() { healthy.Store(v) } }() clock.Step(time.Second) assert.Eventually(t, func() bool { advanceTickers(t, clock, time.Second) return !healthy.Load() }, time.Second, time.Microsecond*10) // Cancel now which should cause the shutdown cancel() wg.Wait() } } t.Run("with state store", testFn(newTestActorsRuntime(t))) t.Run("without state store", testFn(newTestActorsRuntimeWithoutStore(t))) t.Run("no hosted actors without state store", func(t *testing.T) { testActorsRuntime := newTestActorsRuntimeWithoutStore(t) defer testActorsRuntime.Close() clock := testActorsRuntime.clock.(*clocktesting.FakeClock) testServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) })) t.Cleanup(testServer.Close) testActorsRuntime.actorsConfig.HostedActorTypes = internal.NewHostedActors([]string{}) testActorsRuntime.actorsConfig.HealthEndpoint = testServer.URL ctx, cancel := context.WithCancel(context.Background()) defer cancel() opts := []health.Option{ health.WithClock(clock), health.WithFailureThreshold(1), health.WithHealthyStateInterval(2 * time.Second), health.WithUnHealthyStateInterval(2 * time.Second), health.WithRequestTimeout(100 * time.Millisecond), } var wg sync.WaitGroup checker, err := testActorsRuntime.getAppHealthCheckerWithOptions(opts...) require.NoError(t, err) wg.Add(2) go func() { defer wg.Done() checker.Run(ctx) }() healthy := atomic.Bool{} healthy.Store(true) go func() { defer wg.Done() for v := range checker.HealthChannel() { healthy.Store(v) } }() clock.Step(2 * time.Second) assert.Eventually(t, healthy.Load, time.Second, time.Microsecond*10) // Cancel now which should cause the shutdown cancel() wg.Wait() }) } func TestShutdown(t *testing.T) { testActorsRuntime := newTestActorsRuntime(t) t.Run("no panic when placement is nil", func(t *testing.T) { testActorsRuntime.placement = nil testActorsRuntime.Close() // No panic }) } func TestConstructCompositeKeyWithThreeArgs(t *testing.T) { appID := "myapp" actorType := "TestActor" actorID := "abc123" actorKey := constructCompositeKey(appID, actorType, actorID) assert.Equal(t, "myapp||TestActor||abc123", actorKey) } func TestHostValidation(t *testing.T) { t.Run("kubernetes mode with mTLS, missing namespace", func(t *testing.T) { err := ValidateHostEnvironment(true, modes.KubernetesMode, "") require.Error(t, err) }) t.Run("kubernetes mode without mTLS, missing namespace", func(t *testing.T) { err := ValidateHostEnvironment(false, modes.KubernetesMode, "") require.NoError(t, err) }) t.Run("kubernetes mode with mTLS and namespace", func(t *testing.T) { err := ValidateHostEnvironment(true, modes.KubernetesMode, "default") require.NoError(t, err) }) t.Run("self hosted mode with mTLS, missing namespace", func(t *testing.T) { err := ValidateHostEnvironment(true, modes.StandaloneMode, "") require.NoError(t, err) }) t.Run("self hosted mode without mTLS, missing namespace", func(t *testing.T) { err := ValidateHostEnvironment(false, modes.StandaloneMode, "") require.NoError(t, err) }) } func TestBasicReentrantActorLocking(t *testing.T) { req := internalsv1pb. NewInternalInvokeRequest("first"). WithActor("reentrant", "1") req2 := internalsv1pb. NewInternalInvokeRequest("second"). WithActor("reentrant", "1") appConfig := DefaultAppConfig appConfig.Reentrancy = config.ReentrancyConfig{Enabled: true} reentrantConfig := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "placement:placement:5050", AppConfig: appConfig, }) reentrantAppChannel := new(reentrantAppChannel) reentrantAppChannel.nextCall = []*internalsv1pb.InternalInvokeRequest{req2} reentrantAppChannel.callLog = []string{} builder := runtimeBuilder{ appChannel: reentrantAppChannel, config: &reentrantConfig, } testActorsRuntime := builder.buildActorRuntime(t) reentrantAppChannel.a = testActorsRuntime resp, err := testActorsRuntime.callLocalActor(context.Background(), req) require.NoError(t, err) assert.NotNil(t, resp) assert.Equal(t, []string{ "Entering actors/reentrant/1/method/first", "Entering actors/reentrant/1/method/second", "Exiting actors/reentrant/1/method/second", "Exiting actors/reentrant/1/method/first", }, reentrantAppChannel.callLog) } func TestReentrantActorLockingOverMultipleActors(t *testing.T) { req := internalsv1pb. NewInternalInvokeRequest("first"). WithActor("reentrant", "1") req2 := internalsv1pb. NewInternalInvokeRequest("second"). WithActor("other", "1") req3 := internalsv1pb. NewInternalInvokeRequest("third"). WithActor("reentrant", "1") appConfig := DefaultAppConfig appConfig.Reentrancy = config.ReentrancyConfig{Enabled: true} reentrantConfig := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "placement:placement:5050", AppConfig: appConfig, }) reentrantAppChannel := new(reentrantAppChannel) reentrantAppChannel.nextCall = []*internalsv1pb.InternalInvokeRequest{req2, req3} reentrantAppChannel.callLog = []string{} builder := runtimeBuilder{ appChannel: reentrantAppChannel, config: &reentrantConfig, } testActorsRuntime := builder.buildActorRuntime(t) reentrantAppChannel.a = testActorsRuntime resp, err := testActorsRuntime.callLocalActor(context.Background(), req) require.NoError(t, err) assert.NotNil(t, resp) assert.Equal(t, []string{ "Entering actors/reentrant/1/method/first", "Entering actors/other/1/method/second", "Entering actors/reentrant/1/method/third", "Exiting actors/reentrant/1/method/third", "Exiting actors/other/1/method/second", "Exiting actors/reentrant/1/method/first", }, reentrantAppChannel.callLog) } func TestReentrancyStackLimit(t *testing.T) { req := internalsv1pb. NewInternalInvokeRequest("first"). WithActor("reentrant", "1") stackDepth := 0 appConfig := DefaultAppConfig appConfig.Reentrancy = config.ReentrancyConfig{Enabled: true, MaxStackDepth: &stackDepth} reentrantConfig := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "placement:placement:5050", AppConfig: appConfig, }) reentrantAppChannel := new(reentrantAppChannel) reentrantAppChannel.nextCall = []*internalsv1pb.InternalInvokeRequest{} reentrantAppChannel.callLog = []string{} builder := runtimeBuilder{ appChannel: reentrantAppChannel, config: &reentrantConfig, } testActorsRuntime := builder.buildActorRuntime(t) reentrantAppChannel.a = testActorsRuntime resp, err := testActorsRuntime.callLocalActor(context.Background(), req) assert.Nil(t, resp) require.Error(t, err) } func TestReentrancyPerActor(t *testing.T) { req := internalsv1pb. NewInternalInvokeRequest("first"). WithActor("reentrantActor", "1") req2 := internalsv1pb. NewInternalInvokeRequest("second"). WithActor("reentrantActor", "1") appConfig := DefaultAppConfig appConfig.Reentrancy = config.ReentrancyConfig{Enabled: false} appConfig.EntityConfigs = []config.EntityConfig{ { Entities: []string{"reentrantActor"}, Reentrancy: config.ReentrancyConfig{ Enabled: true, }, }, } reentrantConfig := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "", AppConfig: appConfig, }) reentrantAppChannel := new(reentrantAppChannel) reentrantAppChannel.nextCall = []*internalsv1pb.InternalInvokeRequest{req2} reentrantAppChannel.callLog = []string{} builder := runtimeBuilder{ appChannel: reentrantAppChannel, config: &reentrantConfig, } testActorsRuntime := builder.buildActorRuntime(t) reentrantAppChannel.a = testActorsRuntime resp, err := testActorsRuntime.callLocalActor(context.Background(), req) require.NoError(t, err) assert.NotNil(t, resp) assert.Equal(t, []string{ "Entering actors/reentrantActor/1/method/first", "Entering actors/reentrantActor/1/method/second", "Exiting actors/reentrantActor/1/method/second", "Exiting actors/reentrantActor/1/method/first", }, reentrantAppChannel.callLog) } func TestReentrancyStackLimitPerActor(t *testing.T) { req := internalsv1pb.NewInternalInvokeRequest("first"). WithActor("reentrantActor", "1") stackDepth := 0 appConfig := DefaultAppConfig appConfig.Reentrancy = config.ReentrancyConfig{Enabled: false} appConfig.EntityConfigs = []config.EntityConfig{ { Entities: []string{"reentrantActor"}, Reentrancy: config.ReentrancyConfig{ Enabled: true, MaxStackDepth: &stackDepth, }, }, } reentrantConfig := NewConfig(ConfigOpts{ AppID: TestAppID, ActorsService: "", AppConfig: appConfig, }) reentrantAppChannel := new(reentrantAppChannel) reentrantAppChannel.nextCall = []*internalsv1pb.InternalInvokeRequest{} reentrantAppChannel.callLog = []string{} builder := runtimeBuilder{ appChannel: reentrantAppChannel, config: &reentrantConfig, } testActorsRuntime := builder.buildActorRuntime(t) reentrantAppChannel.a = testActorsRuntime resp, err := testActorsRuntime.callLocalActor(context.Background(), req) assert.Nil(t, resp) require.Error(t, err) } func TestActorsRuntimeResiliency(t *testing.T) { actorType := "failingActor" actorID := "failingId" failingState := &daprt.FailingStatestore{ Failure: daprt.NewFailure( // Transform the keys into actor format. map[string]int{ constructCompositeKey(TestAppID, actorType, actorID, "failingGetStateKey"): 1, constructCompositeKey(TestAppID, actorType, actorID, "failingMultiKey"): 1, constructCompositeKey("actors", actorType): 1, // Default reminder key. }, map[string]time.Duration{ constructCompositeKey(TestAppID, actorType, actorID, "timeoutGetStateKey"): time.Second * 10, constructCompositeKey(TestAppID, actorType, actorID, "timeoutMultiKey"): time.Second * 10, constructCompositeKey("actors", actorType): time.Second * 10, // Default reminder key. }, map[string]int{}, ), } failingAppChannel := &daprt.FailingAppChannel{ Failure: daprt.NewFailure( nil, map[string]time.Duration{ "timeoutId": time.Second * 10, }, map[string]int{}, ), KeyFunc: func(req *invokev1.InvokeMethodRequest) string { return req.Actor().GetActorId() }, } builder := runtimeBuilder{ appChannel: failingAppChannel, actorStore: failingState, actorStoreName: "failStore", // This test is using a real wall clock clock: &kclock.RealClock{}, } runtime := builder.buildActorRuntime(t) t.Run("callLocalActor times out with resiliency", func(t *testing.T) { req := internalsv1pb.NewInternalInvokeRequest("actorMethod"). WithActor("failingActorType", "timeoutId") start := time.Now() resp, err := runtime.callLocalActor(context.Background(), req) end := time.Now() require.Error(t, err) assert.Nil(t, resp) assert.Equal(t, 1, failingAppChannel.Failure.CallCount("timeoutId")) assert.Less(t, end.Sub(start), time.Second*10) }) t.Run("test get state retries with resiliency", func(t *testing.T) { req := &GetStateRequest{ Key: "failingGetStateKey", ActorType: actorType, ActorID: actorID, } _, err := runtime.GetState(context.Background(), req) callKey := constructCompositeKey(TestAppID, actorType, actorID, "failingGetStateKey") require.NoError(t, err) assert.Equal(t, 2, failingState.Failure.CallCount(callKey)) }) t.Run("test get state times out with resiliency", func(t *testing.T) { req := &GetStateRequest{ Key: "timeoutGetStateKey", ActorType: actorType, ActorID: actorID, } start := time.Now() _, err := runtime.GetState(context.Background(), req) end := time.Now() callKey := constructCompositeKey(TestAppID, actorType, actorID, "timeoutGetStateKey") require.Error(t, err) assert.Equal(t, 2, failingState.Failure.CallCount(callKey)) assert.Less(t, end.Sub(start), time.Second*10) }) t.Run("test state transaction retries with resiliency", func(t *testing.T) { req := &TransactionalRequest{ Operations: []TransactionalOperation{ { Operation: Delete, Request: map[string]string{ "key": "failingMultiKey", }, }, }, ActorType: actorType, ActorID: actorID, } err := runtime.TransactionalStateOperation(context.Background(), req) callKey := constructCompositeKey(TestAppID, actorType, actorID, "failingMultiKey") require.NoError(t, err) assert.Equal(t, 2, failingState.Failure.CallCount(callKey)) }) t.Run("test state transaction times out with resiliency", func(t *testing.T) { req := &TransactionalRequest{ Operations: []TransactionalOperation{ { Operation: Delete, Request: map[string]string{ "key": "timeoutMultiKey", }, }, }, ActorType: actorType, ActorID: actorID, } start := time.Now() err := runtime.TransactionalStateOperation(context.Background(), req) end := time.Now() callKey := constructCompositeKey(TestAppID, actorType, actorID, "timeoutMultiKey") require.Error(t, err) assert.Equal(t, 2, failingState.Failure.CallCount(callKey)) assert.Less(t, end.Sub(start), time.Second*10) }) t.Run("test get reminders retries and times out with resiliency", func(t *testing.T) { _, err := runtime.GetReminder(context.Background(), &GetReminderRequest{ ActorType: actorType, ActorID: actorID, }) callKey := constructCompositeKey("actors", actorType) require.NoError(t, err) assert.Equal(t, 2, failingState.Failure.CallCount(callKey)) // Key will no longer fail, so now we can check the timeout. start := time.Now() _, err = runtime.GetReminder(context.Background(), &GetReminderRequest{ ActorType: actorType, ActorID: actorID, }) end := time.Now() require.Error(t, err) assert.Equal(t, 4, failingState.Failure.CallCount(callKey)) // Should be called 2 more times. assert.Less(t, end.Sub(start), time.Second*10) }) } func TestPlacementSwitchIsNotTurnedOn(t *testing.T) { testActorsRuntime := newTestActorsRuntimeWithoutPlacement(t) defer testActorsRuntime.Close() t.Run("placement is not enabled", func(t *testing.T) { assert.False(t, testActorsRuntime.placementEnabled) }) t.Run("the actor store can not be initialized normally", func(t *testing.T) { assert.Empty(t, testActorsRuntime.compStore.ListStateStores()) }) } func TestIsActorLocal(t *testing.T) { type args struct { targetActorAddress string hostAddress string grpcPort int } tests := []struct { name string args args want bool }{ {name: "different addresses", args: args{targetActorAddress: "abc:123", hostAddress: "xyz", grpcPort: 456}, want: false}, {name: "same address", args: args{targetActorAddress: "abc:123", hostAddress: "abc", grpcPort: 123}, want: true}, {name: "localhost, same port", args: args{targetActorAddress: "localhost:123", hostAddress: "localhost", grpcPort: 123}, want: true}, {name: "localhost and 127.0.0.1, same port", args: args{targetActorAddress: "localhost:123", hostAddress: "127.0.0.1", grpcPort: 123}, want: true}, {name: "127.0.0.1 and localhost, same port", args: args{targetActorAddress: "127.0.0.1:123", hostAddress: "localhost", grpcPort: 123}, want: true}, {name: "localhost and [::1], same port", args: args{targetActorAddress: "localhost:123", hostAddress: "[::1]", grpcPort: 123}, want: true}, {name: "[::1] and 127.0.0.1, same port", args: args{targetActorAddress: "[::1]:123", hostAddress: "127.0.0.1", grpcPort: 123}, want: true}, {name: "localhost, different port", args: args{targetActorAddress: "localhost:123", hostAddress: "localhost", grpcPort: 456}, want: false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { a := &actorsRuntime{} if got := a.isActorLocal(tt.args.targetActorAddress, tt.args.hostAddress, tt.args.grpcPort); got != tt.want { t.Errorf("actorsRuntime.isActorLocal() = %v, want %v", got, tt.want) } }) } }
mikeee/dapr
pkg/actors/actors_test.go
GO
mit
49,200
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "net/http" "time" "golang.org/x/exp/maps" "github.com/dapr/dapr/pkg/actors/internal" daprAppConfig "github.com/dapr/dapr/pkg/config" ) // Config is the actor runtime configuration. type Config struct { internal.Config } const ( defaultActorIdleTimeout = time.Minute * 60 defaultHeartbeatInterval = time.Second * 1 defaultOngoingCallTimeout = time.Second * 60 defaultReentrancyStackLimit = 32 ) // ConfigOpts contains options for NewConfig. type ConfigOpts struct { HostAddress string AppID string ActorsService string RemindersService string Port int Namespace string AppConfig daprAppConfig.ApplicationConfig HealthHTTPClient *http.Client HealthEndpoint string AppChannelAddress string PodName string } // NewConfig returns the actor runtime configuration. func NewConfig(opts ConfigOpts) Config { c := internal.Config{ HostAddress: opts.HostAddress, AppID: opts.AppID, ActorsService: opts.ActorsService, RemindersService: opts.RemindersService, Port: opts.Port, Namespace: opts.Namespace, DrainRebalancedActors: opts.AppConfig.DrainRebalancedActors, HostedActorTypes: internal.NewHostedActors(opts.AppConfig.Entities), Reentrancy: opts.AppConfig.Reentrancy, RemindersStoragePartitions: opts.AppConfig.RemindersStoragePartitions, HealthHTTPClient: opts.HealthHTTPClient, HealthEndpoint: opts.HealthEndpoint, HeartbeatInterval: defaultHeartbeatInterval, ActorIdleTimeout: defaultActorIdleTimeout, DrainOngoingCallTimeout: defaultOngoingCallTimeout, EntityConfigs: make(map[string]internal.EntityConfig), AppChannelAddress: opts.AppChannelAddress, PodName: opts.PodName, } idleDuration, err := time.ParseDuration(opts.AppConfig.ActorIdleTimeout) if err == nil { c.ActorIdleTimeout = idleDuration } drainCallDuration, err := time.ParseDuration(opts.AppConfig.DrainOngoingCallTimeout) if err == nil { c.DrainOngoingCallTimeout = drainCallDuration } if opts.AppConfig.Reentrancy.MaxStackDepth == nil { reentrancyLimit := defaultReentrancyStackLimit c.Reentrancy.MaxStackDepth = &reentrancyLimit } // Make a map of the hosted actors so we can reference it below. hostedTypes := make(map[string]bool, len(opts.AppConfig.Entities)) for _, hostedType := range opts.AppConfig.Entities { hostedTypes[hostedType] = true } for _, entityConfg := range opts.AppConfig.EntityConfigs { config := translateEntityConfig(entityConfg) for _, entity := range entityConfg.Entities { if _, ok := hostedTypes[entity]; ok { c.EntityConfigs[entity] = config } else { log.Warnf("Configuration specified for non-hosted actor type: %s", entity) } } } conf := Config{Config: c} return conf } func (c *Config) GetIdleTimeoutForType(actorType string) time.Duration { if val, ok := c.EntityConfigs[actorType]; ok { return val.ActorIdleTimeout } actorIdleTimeout := c.HostedActorTypes.GetActorIdleTimeout(actorType) if actorIdleTimeout > 0 { return actorIdleTimeout } return c.ActorIdleTimeout } func (c *Config) GetDrainOngoingTimeoutForType(actorType string) time.Duration { if val, ok := c.EntityConfigs[actorType]; ok { return val.DrainOngoingCallTimeout } return c.DrainOngoingCallTimeout } func (c *Config) GetDrainRebalancedActorsForType(actorType string) bool { if val, ok := c.EntityConfigs[actorType]; ok { return val.DrainRebalancedActors } return c.DrainRebalancedActors } func (c *Config) GetReentrancyForType(actorType string) daprAppConfig.ReentrancyConfig { if val, ok := c.EntityConfigs[actorType]; ok { return val.ReentrancyConfig } return c.Reentrancy } func translateEntityConfig(appConfig daprAppConfig.EntityConfig) internal.EntityConfig { domainConfig := internal.EntityConfig{ Entities: appConfig.Entities, ActorIdleTimeout: defaultActorIdleTimeout, DrainOngoingCallTimeout: defaultOngoingCallTimeout, DrainRebalancedActors: appConfig.DrainRebalancedActors, ReentrancyConfig: appConfig.Reentrancy, RemindersStoragePartitions: appConfig.RemindersStoragePartitions, } idleDuration, err := time.ParseDuration(appConfig.ActorIdleTimeout) if err == nil { domainConfig.ActorIdleTimeout = idleDuration } drainCallDuration, err := time.ParseDuration(appConfig.DrainOngoingCallTimeout) if err == nil { domainConfig.DrainOngoingCallTimeout = drainCallDuration } if appConfig.Reentrancy.MaxStackDepth == nil { reentrancyLimit := defaultReentrancyStackLimit domainConfig.ReentrancyConfig.MaxStackDepth = &reentrancyLimit } return domainConfig } type hostedActors map[string]struct{} // NewHostedActors creates a new hostedActors from a slice of actor types. func NewHostedActors(actorTypes []string) hostedActors { // Add + 1 capacity because there's likely the built-in actor engine ha := make(hostedActors, len(actorTypes)+1) for _, at := range actorTypes { ha[at] = struct{}{} } return ha } // AddActorType adds an actor type. func (ha hostedActors) AddActorType(actorType string) { ha[actorType] = struct{}{} } // IsActorTypeHosted returns true if the actor type is hosted. func (ha hostedActors) IsActorTypeHosted(actorType string) bool { _, ok := ha[actorType] return ok } // ListActorTypes returns a slice of hosted actor types (in indeterminate order). func (ha hostedActors) ListActorTypes() []string { return maps.Keys(ha) }
mikeee/dapr
pkg/actors/config.go
GO
mit
6,235
/* Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "testing" "time" "github.com/dapr/dapr/pkg/actors/internal" "github.com/dapr/dapr/pkg/config" "github.com/stretchr/testify/assert" ) const ( HostAddress = "host" AppID = "testApp" Port = 5000 Namespace = "default" ) func TestConfig(t *testing.T) { config := config.ApplicationConfig{ Entities: []string{"1"}, ActorIdleTimeout: "2s", DrainOngoingCallTimeout: "3s", DrainRebalancedActors: true, Reentrancy: config.ReentrancyConfig{}, RemindersStoragePartitions: 0, } c := NewConfig(ConfigOpts{ HostAddress: "localhost:5050", AppID: "app1", ActorsService: "placement:placement:5050", Port: 3500, Namespace: "default", AppConfig: config, PodName: TestPodName, }) assert.Equal(t, "localhost:5050", c.HostAddress) assert.Equal(t, "app1", c.AppID) assert.Equal(t, "placement:placement:5050", c.ActorsService) assert.Equal(t, internal.NewHostedActors([]string{"1"}), c.HostedActorTypes) assert.Equal(t, 3500, c.Port) assert.Equal(t, "2s", c.ActorIdleTimeout.String()) assert.Equal(t, "3s", c.DrainOngoingCallTimeout.String()) assert.True(t, c.DrainRebalancedActors) assert.Equal(t, "default", c.Namespace) assert.Equal(t, TestPodName, c.PodName) } func TestReentrancyConfig(t *testing.T) { t.Run("Test empty reentrancy values", func(t *testing.T) { config := DefaultAppConfig c := NewConfig(ConfigOpts{ HostAddress: "localhost:5050", AppID: "app1", ActorsService: "placement:placement:5050", Port: 3500, Namespace: "default", AppConfig: config, }) assert.False(t, c.Reentrancy.Enabled) assert.NotNil(t, c.Reentrancy.MaxStackDepth) assert.Equal(t, 32, *c.Reentrancy.MaxStackDepth) }) t.Run("Test per type reentrancy", func(t *testing.T) { appConfig := DefaultAppConfig appConfig.EntityConfigs = []config.EntityConfig{ { Entities: []string{"reentrantActor"}, Reentrancy: config.ReentrancyConfig{ Enabled: true, }, }, } c := NewConfig(ConfigOpts{ HostAddress: "localhost:5050", AppID: "app1", ActorsService: "placement:placement:5050", Port: 3500, Namespace: "default", AppConfig: appConfig, }) assert.False(t, c.Reentrancy.Enabled) assert.NotNil(t, c.Reentrancy.MaxStackDepth) assert.Equal(t, 32, *c.Reentrancy.MaxStackDepth) assert.True(t, c.EntityConfigs["reentrantActor"].ReentrancyConfig.Enabled) }) t.Run("Test minimum reentrancy values", func(t *testing.T) { appConfig := DefaultAppConfig appConfig.Reentrancy = config.ReentrancyConfig{Enabled: true} c := NewConfig(ConfigOpts{ HostAddress: "localhost:5050", AppID: "app1", ActorsService: "placement:placement:5050", Port: 3500, Namespace: "default", AppConfig: appConfig, }) assert.True(t, c.Reentrancy.Enabled) assert.NotNil(t, c.Reentrancy.MaxStackDepth) assert.Equal(t, 32, *c.Reentrancy.MaxStackDepth) }) t.Run("Test full reentrancy values", func(t *testing.T) { appConfig := DefaultAppConfig reentrancyLimit := 64 appConfig.Reentrancy = config.ReentrancyConfig{Enabled: true, MaxStackDepth: &reentrancyLimit} c := NewConfig(ConfigOpts{ HostAddress: "localhost:5050", AppID: "app1", ActorsService: "placement:placement:5050", Port: 3500, Namespace: "default", AppConfig: appConfig, }) assert.True(t, c.Reentrancy.Enabled) assert.NotNil(t, c.Reentrancy.MaxStackDepth) assert.Equal(t, 64, *c.Reentrancy.MaxStackDepth) }) } func TestDefaultConfigValuesSet(t *testing.T) { appConfig := config.ApplicationConfig{Entities: []string{"actor1"}} config := NewConfig(ConfigOpts{ HostAddress: HostAddress, AppID: AppID, ActorsService: "placement:placement:4011", Port: Port, Namespace: Namespace, AppConfig: appConfig, }) assert.Equal(t, HostAddress, config.HostAddress) assert.Equal(t, AppID, config.AppID) assert.Equal(t, "placement:placement:4011", config.ActorsService) assert.Equal(t, Port, config.Port) assert.Equal(t, Namespace, config.Namespace) assert.NotNil(t, config.ActorIdleTimeout) assert.NotNil(t, config.DrainOngoingCallTimeout) assert.NotNil(t, config.DrainRebalancedActors) } func TestPerActorTypeConfigurationValues(t *testing.T) { appConfig := config.ApplicationConfig{ Entities: []string{"actor1", "actor2", "actor3", "actor4"}, ActorIdleTimeout: "1s", DrainOngoingCallTimeout: "5s", DrainRebalancedActors: true, RemindersStoragePartitions: 1, EntityConfigs: []config.EntityConfig{ { Entities: []string{"actor1", "actor2"}, ActorIdleTimeout: "60s", DrainOngoingCallTimeout: "300s", DrainRebalancedActors: false, }, { Entities: []string{"actor3"}, ActorIdleTimeout: "5s", DrainOngoingCallTimeout: "1s", DrainRebalancedActors: true, Reentrancy: config.ReentrancyConfig{ Enabled: true, }, RemindersStoragePartitions: 10, }, }, } config := NewConfig(ConfigOpts{ HostAddress: HostAddress, AppID: AppID, ActorsService: "placement:placement:4011", Port: Port, Namespace: Namespace, AppConfig: appConfig, }) // Check the base level items. assert.Equal(t, HostAddress, config.HostAddress) assert.Equal(t, AppID, config.AppID) assert.Contains(t, "placement:placement:4011", config.ActorsService) assert.Equal(t, Port, config.Port) assert.Equal(t, Namespace, config.Namespace) assert.Equal(t, time.Second, config.ActorIdleTimeout) assert.Equal(t, time.Second*5, config.DrainOngoingCallTimeout) assert.True(t, config.DrainRebalancedActors) // Check the specific actors. assert.Equal(t, time.Second*60, config.GetIdleTimeoutForType("actor1")) assert.Equal(t, time.Second*300, config.GetDrainOngoingTimeoutForType("actor1")) assert.False(t, config.GetDrainRebalancedActorsForType("actor1")) assert.False(t, config.GetReentrancyForType("actor1").Enabled) assert.Equal(t, 0, config.GetRemindersPartitionCountForType("actor1")) assert.Equal(t, time.Second*60, config.GetIdleTimeoutForType("actor2")) assert.Equal(t, time.Second*300, config.GetDrainOngoingTimeoutForType("actor2")) assert.False(t, config.GetDrainRebalancedActorsForType("actor2")) assert.False(t, config.GetReentrancyForType("actor2").Enabled) assert.Equal(t, 0, config.GetRemindersPartitionCountForType("actor2")) assert.Equal(t, time.Second*5, config.GetIdleTimeoutForType("actor3")) assert.Equal(t, time.Second, config.GetDrainOngoingTimeoutForType("actor3")) assert.True(t, config.GetDrainRebalancedActorsForType("actor3")) assert.True(t, config.GetReentrancyForType("actor3").Enabled) assert.Equal(t, 10, config.GetRemindersPartitionCountForType("actor3")) assert.Equal(t, time.Second, config.GetIdleTimeoutForType("actor4")) assert.Equal(t, time.Second*5, config.GetDrainOngoingTimeoutForType("actor4")) assert.True(t, config.GetDrainRebalancedActorsForType("actor4")) assert.False(t, config.GetReentrancyForType("actor4").Enabled) assert.Equal(t, 1, config.GetRemindersPartitionCountForType("actor4")) } func TestOnlyHostedActorTypesAreIncluded(t *testing.T) { appConfig := config.ApplicationConfig{ Entities: []string{"actor1", "actor2"}, ActorIdleTimeout: "1s", DrainOngoingCallTimeout: "5s", DrainRebalancedActors: true, RemindersStoragePartitions: 1, EntityConfigs: []config.EntityConfig{ { Entities: []string{"actor1", "actor2"}, ActorIdleTimeout: "60s", DrainOngoingCallTimeout: "300s", DrainRebalancedActors: false, }, { Entities: []string{"actor3"}, ActorIdleTimeout: "5s", DrainOngoingCallTimeout: "1s", DrainRebalancedActors: true, Reentrancy: config.ReentrancyConfig{ Enabled: true, }, RemindersStoragePartitions: 10, }, }, } config := NewConfig(ConfigOpts{ HostAddress: HostAddress, AppID: AppID, ActorsService: "placement:placement:4012", Port: Port, Namespace: Namespace, AppConfig: appConfig, }) assert.Contains(t, config.EntityConfigs, "actor1") assert.Contains(t, config.EntityConfigs, "actor2") assert.NotContains(t, config.EntityConfigs, "actor3") }
mikeee/dapr
pkg/actors/config_test.go
GO
mit
8,997
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package errors import ( "errors" "fmt" "google.golang.org/grpc/codes" invokev1 "github.com/dapr/dapr/pkg/messaging/v1" internalv1pb "github.com/dapr/dapr/pkg/proto/internals/v1" ) // ActorError is an error returned by an Actor via a header + body in the method's response. type ActorError struct { body []byte headers map[string]*internalv1pb.ListStringValue contentType string statusCode int message string } func NewActorError(res *internalv1pb.InternalInvokeResponse) error { if res == nil { return fmt.Errorf("could not parse actor error: no response object") } statusCode := int(res.GetStatus().GetCode()) if !res.IsHTTPResponse() { statusCode = invokev1.HTTPStatusFromCode(codes.Code(statusCode)) } msg := res.GetMessage() return &ActorError{ body: msg.GetData().GetValue(), headers: res.GetHeaders(), contentType: msg.GetContentType(), statusCode: statusCode, message: "actor error with details in body", } } func (e *ActorError) Error() string { return e.message } func (e *ActorError) Headers() invokev1.DaprInternalMetadata { return e.headers } func (e *ActorError) ContentType() string { return e.contentType } func (e *ActorError) StatusCode() int { return e.statusCode } func (e *ActorError) Body() []byte { return e.body } func As(err error) (*ActorError, bool) { var actorError *ActorError if errors.As(err, &actorError) { return actorError, true } return nil, false } func Is(err error) bool { var actorError *ActorError return errors.As(err, &actorError) }
mikeee/dapr
pkg/actors/errors/actor_error.go
GO
mit
2,127
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package health import ( "context" "errors" "net/http" "sync" "time" "k8s.io/utils/clock" "github.com/dapr/kit/logger" ) const ( defaultFailureThreshold = 2 defaultRequestTimeout = time.Second * 2 defaultHealthyStateInterval = time.Second * 3 defaultUnHealthyStateInterval = time.Second / 2 defaultSuccessStatusCode = http.StatusOK ) var healthLogger = logger.NewLogger("actorshealth") type options struct { client *http.Client address string requestTimeout time.Duration failureThreshold int healthyStateInterval time.Duration unhealthyStateInterval time.Duration successStatusCode int clock clock.WithTicker } // Option is a function that applies a health check option. type Option func(o *options) // Checker is a health checker which reports to whether the target actor app // endpoint is in a healthy state, according to the configured status code. type Checker struct { client *http.Client ch chan bool address string requestTimeout time.Duration failureThreshold int healthyStateInterval time.Duration unhealthyStateInterval time.Duration successStatusCode int clock clock.WithTicker closeCh chan struct{} once sync.Once wg sync.WaitGroup } func New(opts ...Option) (*Checker, error) { options := &options{ failureThreshold: defaultFailureThreshold, requestTimeout: defaultRequestTimeout, successStatusCode: defaultSuccessStatusCode, healthyStateInterval: defaultHealthyStateInterval, unhealthyStateInterval: defaultUnHealthyStateInterval, clock: new(clock.RealClock), } for _, o := range opts { o(options) } if len(options.address) == 0 { return nil, errors.New("required option 'address' is missing") } if options.client == nil { options.client = new(http.Client) } return &Checker{ ch: make(chan bool), client: options.client, address: options.address, requestTimeout: options.requestTimeout, failureThreshold: options.failureThreshold, healthyStateInterval: options.healthyStateInterval, unhealthyStateInterval: options.unhealthyStateInterval, successStatusCode: options.successStatusCode, clock: options.clock, closeCh: make(chan struct{}), }, nil } func (c *Checker) Run(ctx context.Context) { c.wg.Add(1) defer c.Close() defer c.wg.Done() ctx, cancel := context.WithCancel(ctx) c.wg.Add(1) go func() { defer c.wg.Done() select { case <-ctx.Done(): case <-c.closeCh: } cancel() }() for { c.doUnHealthyStateCheck(ctx) c.doHealthyStateCheck(ctx) select { case <-ctx.Done(): return default: } } } func (c *Checker) HealthChannel() <-chan bool { return c.ch } func (c *Checker) Close() { defer c.wg.Wait() c.once.Do(func() { close(c.closeCh) c.client.CloseIdleConnections() // Wait for health reports to finish before closing the channel. c.wg.Wait() close(c.ch) }) } func (c *Checker) doUnHealthyStateCheck(ctx context.Context) { if ctx.Err() != nil { return } ticker := c.clock.NewTicker(c.unhealthyStateInterval) defer ticker.Stop() for { // Immediately get health status if in unhealthy state. if c.getStateHealth(ctx) { healthLogger.Info("Actor health check succeeded, marking healthy") c.reportHealth(ctx, true) return } select { case <-ctx.Done(): return case <-ticker.C(): } } } func (c *Checker) doHealthyStateCheck(ctx context.Context) { if ctx.Err() != nil { return } ticker := c.clock.NewTicker(c.healthyStateInterval) defer ticker.Stop() var failureCount int for { select { case <-ctx.Done(): return case <-ticker.C(): if c.getStateHealth(ctx) { failureCount = 0 } else { failureCount++ } if failureCount >= c.failureThreshold { healthLogger.Warnf("Actor health check failed %d times, marking unhealthy", failureCount) c.reportHealth(ctx, false) return } } } } func (c *Checker) reportHealth(ctx context.Context, health bool) { select { case <-ctx.Done(): case c.ch <- health: } } func (c *Checker) getStateHealth(ctx context.Context) bool { ctx, cancel := context.WithTimeout(ctx, c.requestTimeout) defer cancel() req, err := http.NewRequestWithContext(ctx, http.MethodGet, c.address, nil) if err != nil { healthLogger.Errorf("Error creating request: %s", err) return false } resp, err := c.client.Do(req) if err != nil { healthLogger.Errorf("Error performing request: %s", err) return false } resp.Body.Close() return resp.StatusCode == c.successStatusCode } // WithAddress sets the endpoint address for the health check. func WithAddress(address string) Option { return func(o *options) { o.address = address } } // WithFailureThreshold sets the failure threshold for the health check. func WithFailureThreshold(threshold int) Option { return func(o *options) { o.failureThreshold = threshold } } // WithRequestTimeout sets the request timeout for the health check. func WithRequestTimeout(timeout time.Duration) Option { return func(o *options) { o.requestTimeout = timeout } } // WithHTTPClient sets the http.Client to use. func WithHTTPClient(client *http.Client) Option { return func(o *options) { o.client = client } } // WithSuccessStatusCode sets the status code for the health check. func WithSuccessStatusCode(code int) Option { return func(o *options) { o.successStatusCode = code } } // WithHealthyStateInterval sets the interval for the health check. func WithHealthyStateInterval(interval time.Duration) Option { return func(o *options) { o.healthyStateInterval = interval } } // WithUnHealthyStateInterval sets the interval for the health check. func WithUnHealthyStateInterval(interval time.Duration) Option { return func(o *options) { o.unhealthyStateInterval = interval } }
mikeee/dapr
pkg/actors/health/health.go
GO
mit
6,567
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package health import ( "context" "net/http" "net/http/httptest" "sync/atomic" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" clocktesting "k8s.io/utils/clock/testing" ) func TestApplyOptions(t *testing.T) { t.Run("no address should error", func(t *testing.T) { checker, err := New() require.Error(t, err) assert.Nil(t, checker) }) t.Run("valid defaults", func(t *testing.T) { checker, err := New( WithAddress("http://localhost:8080"), ) require.NoError(t, err) assert.Equal(t, defaultFailureThreshold, 2) assert.Equal(t, defaultHealthyStateInterval, time.Second*3) assert.Equal(t, defaultUnHealthyStateInterval, time.Second/2) assert.Equal(t, defaultRequestTimeout, time.Second*2) assert.Equal(t, defaultSuccessStatusCode, 200) assert.Equal(t, "http://localhost:8080", checker.address) assert.Equal(t, defaultFailureThreshold, checker.failureThreshold) assert.Equal(t, defaultHealthyStateInterval, checker.healthyStateInterval) assert.Equal(t, defaultUnHealthyStateInterval, checker.unhealthyStateInterval) assert.Equal(t, defaultRequestTimeout, checker.requestTimeout) assert.Equal(t, defaultSuccessStatusCode, checker.successStatusCode) }) t.Run("valid custom options", func(t *testing.T) { checker, err := New( WithAddress("http://localhost:8081"), WithFailureThreshold(10), WithHealthyStateInterval(time.Second*12), WithUnHealthyStateInterval(time.Second*15), WithRequestTimeout(time.Second*13), WithSuccessStatusCode(201), ) require.NoError(t, err) assert.Equal(t, "http://localhost:8081", checker.address) assert.Equal(t, 10, checker.failureThreshold) assert.Equal(t, time.Second*12, checker.healthyStateInterval) assert.Equal(t, time.Second*15, checker.unhealthyStateInterval) assert.Equal(t, time.Second*13, checker.requestTimeout) assert.Equal(t, 201, checker.successStatusCode) }) } func TestResponses(t *testing.T) { t.Run("default success status", func(t *testing.T) { ch, clock, ts := testChecker(t, 200, WithFailureThreshold(2), ) clock.Step(1) assert.True(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(1), ts.numberOfCalls.Load()) ts.statusCode.Store(500) assert.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10) clock.Step(time.Second * 3) assertNoHealthSignal(t, clock, ch) assert.Equal(t, int64(2), ts.numberOfCalls.Load()) assert.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10) clock.Step(time.Second * 3) assert.False(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(3), ts.numberOfCalls.Load()) }) t.Run("custom success status", func(t *testing.T) { ch, clock, ts := testChecker(t, 201, WithFailureThreshold(1), WithSuccessStatusCode(201), ) clock.Step(1) assert.True(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(1), ts.numberOfCalls.Load()) ts.statusCode.Store(200) assert.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10) clock.Step(time.Second * 3) assert.False(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(2), ts.numberOfCalls.Load()) }) t.Run("test app recovery", func(t *testing.T) { ch, clock, ts := testChecker(t, 200, WithFailureThreshold(1), ) clock.Step(1) assert.True(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(1), ts.numberOfCalls.Load()) ts.statusCode.Store(300) assert.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10) clock.Step(time.Second * 3) assert.False(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(2), ts.numberOfCalls.Load()) ts.statusCode.Store(200) assert.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10) clock.Step(time.Second / 2) assert.True(t, assertHealthSignal(t, clock, ch)) assert.Equal(t, int64(3), ts.numberOfCalls.Load()) }) } func testChecker(t *testing.T, initialCode int64, opts ...Option) (<-chan bool, *clocktesting.FakeClock, *testServer) { ts := new(testServer) ts.statusCode.Store(initialCode) server := httptest.NewServer(ts) t.Cleanup(server.Close) clock := clocktesting.NewFakeClock(time.Now()) checker, err := New(append(opts, WithAddress(server.URL), WithClock(clock), )...) require.NoError(t, err) doneCh := make(chan error) t.Cleanup(func() { checker.Close() select { case <-doneCh: case <-time.After(5 * time.Second): t.Fatal("timeout waiting for checker to stop") } }) go func() { checker.Run(context.Background()) close(doneCh) }() require.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10) return checker.HealthChannel(), clock, ts } func assertHealthSignal(t *testing.T, clock *clocktesting.FakeClock, ch <-chan bool) bool { t.Helper() // Wait to ensure ticker in health server is setup. // Wait for the clock to have tickers before stepping, since they are likely // being created in another go routine to this test. require.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10, "ticker in program not created in time") select { case v := <-ch: return v case <-time.After(200 * time.Millisecond): t.Fatal("did not receive a signal in 200ms") } return false } func assertNoHealthSignal(t *testing.T, clock *clocktesting.FakeClock, ch <-chan bool) { t.Helper() // Wait to ensure ticker in health server is setup. // Wait for the clock to have tickers before stepping, since they are likely // being created in another go routine to this test. require.Eventually(t, clock.HasWaiters, time.Second, time.Millisecond*10, "ticker in program not created in time") // The signal is sent in a background goroutine, so we need to use a wall clock here select { case <-ch: t.Fatal("received unexpected signal") case <-time.After(200 * time.Millisecond): // all good } } type testServer struct { statusCode atomic.Int64 numberOfCalls atomic.Int64 } func (t *testServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { t.numberOfCalls.Add(1) w.WriteHeader(int(t.statusCode.Load())) } func (t *testServer) SetStatusCode(statusCode int64) { t.statusCode.Store(statusCode) }
mikeee/dapr
pkg/actors/health/health_test.go
GO
mit
6,740
//go:build unit // +build unit /* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package health import "k8s.io/utils/clock" // WithClock sets a custom clock (for mocking time). func WithClock(clock clock.WithTicker) Option { return func(o *options) { o.clock = clock } }
mikeee/dapr
pkg/actors/health/healthunit.go
GO
mit
789
/* Copyright 2024 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package actors import ( "github.com/dapr/kit/ptr" ) func (a *actorsRuntime) idleProcessorExecuteFn(act *actor) { // This function is outlined for testing if !a.idleActorBusyCheck(act) { return } // Proceed with deactivating the actor err := a.deactivateActor(act) if err != nil { log.Errorf("Failed to deactivate actor %s: %v", act.Key(), err) } } func (a *actorsRuntime) idleActorBusyCheck(act *actor) bool { // If the actor is still busy, we will increase its idle time and re-enqueue it if !act.isBusy() { return true } act.idleAt.Store(ptr.Of(a.clock.Now().Add(actorBusyReEnqueueInterval))) a.idleActorProcessor.Enqueue(act) return false }
mikeee/dapr
pkg/actors/idleprocessor.go
GO
mit
1,230
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal // ActorAPILevel is the level of the Actor APIs supported by this runtime. // It is sent to the Placement service and disseminated to all other Dapr runtimes. // The Dapr runtime can use this value, as well as the minimum API level observed in the cluster (as disseminated by Placement) to make decisions on feature availability across the cluster. // // API levels per Dapr version: // - 1.11.x and older = unset (equivalent to 0) // - 1.12.x = 10 // - 1.13.x = 20 const ActorAPILevel = 20 // Features that can be enabled depending on the API level type apiLevelFeature uint32 const ( // APILevelFeatureRemindersProtobuf Enables serializing reminders as protobuf rather than JSON in the pkg/actors/reminders package // When serialized as protobuf, reminders have the "\0pb" prefix // Note this only control serializations; when un-serializing, legacy JSON is always supported as fallback APILevelFeatureRemindersProtobuf apiLevelFeature = 20 ) // IsEnabled returns true if the feature is enabled for the current API level. func (a apiLevelFeature) IsEnabled(currentAPILevel uint32) bool { return currentAPILevel >= uint32(a) }
mikeee/dapr
pkg/actors/internal/api_level.go
GO
mit
1,715
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "net" "net/http" "strconv" "sync" "time" "golang.org/x/exp/maps" daprAppConfig "github.com/dapr/dapr/pkg/config" ) // Config is the actor runtime configuration. type Config struct { HostAddress string AppID string ActorsService string RemindersService string HostedActorTypes *hostedActors Port int HeartbeatInterval time.Duration ActorIdleTimeout time.Duration DrainOngoingCallTimeout time.Duration DrainRebalancedActors bool Namespace string Reentrancy daprAppConfig.ReentrancyConfig RemindersStoragePartitions int EntityConfigs map[string]EntityConfig HealthHTTPClient *http.Client HealthEndpoint string AppChannelAddress string PodName string } func (c Config) GetRuntimeHostname() string { return net.JoinHostPort(c.HostAddress, strconv.Itoa(c.Port)) } // Remap of daprAppConfig.EntityConfig but with more useful types for actors.go. type EntityConfig struct { Entities []string ActorIdleTimeout time.Duration DrainOngoingCallTimeout time.Duration DrainRebalancedActors bool ReentrancyConfig daprAppConfig.ReentrancyConfig RemindersStoragePartitions int } func (c *Config) GetRemindersPartitionCountForType(actorType string) int { if val, ok := c.EntityConfigs[actorType]; ok { return val.RemindersStoragePartitions } return c.RemindersStoragePartitions } // hostedActors is a thread-safe map of actor types. // It is optional to specify an idle timeout for an actor type. // If an idle timeout is not specified, default idle timeout is ought to be used. type hostedActors struct { actors map[string]time.Duration lock sync.RWMutex } // NewHostedActors creates a new hostedActors from a slice of actor types. func NewHostedActors(actorTypes []string) *hostedActors { // Add + 1 capacity because there's likely the built-in actor engine ha := make(map[string]time.Duration, len(actorTypes)+1) for _, at := range actorTypes { ha[at] = 0 } return &hostedActors{ actors: ha, } } // AddActorType adds an actor type. func (ha *hostedActors) AddActorType(actorType string, idleTimeout time.Duration) { ha.lock.Lock() ha.actors[actorType] = idleTimeout ha.lock.Unlock() } // IsActorTypeHosted returns true if the actor type is hosted. func (ha *hostedActors) IsActorTypeHosted(actorType string) bool { ha.lock.RLock() defer ha.lock.RUnlock() _, ok := ha.actors[actorType] return ok } // ListActorTypes returns a slice of hosted actor types (in indeterminate order). func (ha *hostedActors) ListActorTypes() []string { ha.lock.RLock() defer ha.lock.RUnlock() return maps.Keys(ha.actors) } // GetActorIdleTimeout fetches idle timeout stored against an actor type. func (ha *hostedActors) GetActorIdleTimeout(actorType string) time.Duration { ha.lock.RLock() defer ha.lock.RUnlock() return ha.actors[actorType] }
mikeee/dapr
pkg/actors/internal/config.go
GO
mit
3,631
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "context" "sync/atomic" kclock "k8s.io/utils/clock" "github.com/dapr/dapr/pkg/resiliency" "github.com/dapr/dapr/pkg/security" ) // AppHealthFn is a function that returns a channel which is notified of changes in app health status. type AppHealthFn func(ctx context.Context) <-chan bool // ActorsProviderOptions contains the options for providers of actors services. type ActorsProviderOptions struct { Config Config Security security.Handler Resiliency resiliency.Provider AppHealthFn AppHealthFn // Pointer to the API level object APILevel *atomic.Uint32 Clock kclock.WithTicker Namespace string }
mikeee/dapr
pkg/actors/internal/options.go
GO
mit
1,217
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "context" "io" "time" ) // HaltActorFn is the signature of the function invoked when the placement service requires an actor to be deactivated. type HaltActorFn = func(actorType string, actorID string) error // HaltAllActorsFn is the signature of the function invoked when the placement service requires all actors to be deactivated. type HaltAllActorsFn = func() error // PlacementService allows for interacting with the actor placement service. // //nolint:interfacebloat type PlacementService interface { io.Closer Start(context.Context) error WaitUntilReady(ctx context.Context) error LookupActor(ctx context.Context, req LookupActorRequest) (LookupActorResponse, error) AddHostedActorType(actorType string, idleTimeout time.Duration) error ReportActorDeactivation(ctx context.Context, actorType, actorID string) error SetHaltActorFns(haltFn HaltActorFn, haltAllFn HaltAllActorsFn) SetOnAPILevelUpdate(fn func(apiLevel uint32)) SetOnTableUpdateFn(fn func()) // PlacementHealthy returns true if the placement service is healthy. PlacementHealthy() bool // StatusMessage returns a custom status message. StatusMessage() string } // LookupActorRequest is the request for LookupActor. type LookupActorRequest struct { ActorType string ActorID string NoCache bool } // ActorKey returns the key for the actor, which is "type/id". func (lar LookupActorRequest) ActorKey() string { return lar.ActorType + "/" + lar.ActorID } // LookupActorResponse is the response from LookupActor. type LookupActorResponse struct { Address string AppID string }
mikeee/dapr
pkg/actors/internal/placement_service.go
GO
mit
2,167
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "bytes" "encoding/json" "fmt" "reflect" "time" "go.mongodb.org/mongo-driver/bson" timeutils "github.com/dapr/kit/time" ) const daprSeparator = "||" // Reminder represents a reminder or timer for a unique actor. type Reminder struct { ActorID string `json:"actorID,omitempty"` ActorType string `json:"actorType,omitempty"` Name string `json:"name,omitempty"` Data json.RawMessage `json:"data,omitempty"` Period ReminderPeriod `json:"period,omitempty"` RegisteredTime time.Time `json:"registeredTime,omitempty"` DueTime string `json:"dueTime,omitempty"` // Exact input value from user ExpirationTime time.Time `json:"expirationTime,omitempty"` Callback string `json:"callback,omitempty"` // Used by timers only } // ActorKey returns the key of the actor for this reminder. func (r Reminder) ActorKey() string { return r.ActorType + daprSeparator + r.ActorID } // Key returns the key for this unique reminder. func (r Reminder) Key() string { return r.ActorType + daprSeparator + r.ActorID + daprSeparator + r.Name } // NextTick returns the time the reminder should tick again next. // If the reminder has a TTL and the next tick is beyond the TTL, the second returned value will be false. func (r Reminder) NextTick() (time.Time, bool) { active := r.ExpirationTime.IsZero() || r.RegisteredTime.Before(r.ExpirationTime) return r.RegisteredTime, active } // HasRepeats returns true if the reminder has repeats left. func (r Reminder) HasRepeats() bool { return r.Period.HasRepeats() } // RepeatsLeft returns the number of repeats left. func (r Reminder) RepeatsLeft() int { return r.Period.repeats } // TickExecuted should be called after a reminder has been executed. // "done" will be true if the reminder is done, i.e. no more executions should happen. // If the reminder is not done, call "NextTick" to get the time it should tick next. // Note: this method is not concurrency-safe. func (r *Reminder) TickExecuted() (done bool) { if r.Period.repeats > 0 { r.Period.repeats-- } if !r.HasRepeats() { return true } r.RegisteredTime = r.Period.GetFollowing(r.RegisteredTime) return false } // UpdateFromTrack updates the reminder with data from the track object. func (r *Reminder) UpdateFromTrack(track *ReminderTrack) { if track == nil || track.LastFiredTime.IsZero() { return } r.Period.repeats = track.RepetitionLeft r.RegisteredTime = r.Period.GetFollowing(track.LastFiredTime) } // ScheduledTime returns the time the reminder is scheduled to be executed at. // This is implemented to comply with the queueable interface. func (r Reminder) ScheduledTime() time.Time { return r.RegisteredTime } func (r *Reminder) MarshalJSON() ([]byte, error) { type reminderAlias Reminder // Custom serializer that encodes times (RegisteredTime and ExpirationTime) in the RFC3339 format. // Also adds a custom serializer for Period to omit empty strings. // This is for backwards-compatibility and also because we don't need to store precision with less than seconds m := struct { RegisteredTime string `json:"registeredTime,omitempty"` ExpirationTime string `json:"expirationTime,omitempty"` Period string `json:"period,omitempty"` Data *json.RawMessage `json:"data,omitempty"` *reminderAlias }{ reminderAlias: (*reminderAlias)(r), } if !r.RegisteredTime.IsZero() { m.RegisteredTime = r.RegisteredTime.Format(time.RFC3339) } if !r.ExpirationTime.IsZero() { m.ExpirationTime = r.ExpirationTime.Format(time.RFC3339) } m.Period = r.Period.String() if len(r.Data) > 0 && !bytes.Equal(r.Data, []byte("null")) { m.Data = &r.Data } return json.Marshal(m) } func (r *Reminder) UnmarshalJSON(data []byte) error { type reminderAlias Reminder *r = Reminder{ Period: NewEmptyReminderPeriod(), } // Parse RegisteredTime and ExpirationTime as dates in the RFC3339 format m := &struct { ExpirationTime string `json:"expirationTime"` RegisteredTime string `json:"registeredTime"` *reminderAlias }{ reminderAlias: (*reminderAlias)(r), } err := json.Unmarshal(data, &m) if err != nil { return err } if m.RegisteredTime != "" { r.RegisteredTime, err = time.Parse(time.RFC3339, m.RegisteredTime) if err != nil { return fmt.Errorf("failed to parse RegisteredTime: %w", err) } r.RegisteredTime = r.RegisteredTime.Truncate(time.Second) } if m.ExpirationTime != "" { r.ExpirationTime, err = time.Parse(time.RFC3339, m.ExpirationTime) if err != nil { return fmt.Errorf("failed to parse ExpirationTime: %w", err) } r.ExpirationTime = r.ExpirationTime.Truncate(time.Second) } return nil } // MarshalBSON implements bson.Marshaler. // It encodes the message into a map[string]any before calling bson.Marshal. func (r *Reminder) MarshalBSON() ([]byte, error) { // We do this to make sure that the custom MarshalJSON above is invoked. // This round-trip via JSON is not great, but it works. j, err := json.Marshal(r) if err != nil { return nil, err } var dec map[string]any err = json.Unmarshal(j, &dec) if err != nil { return nil, err } return bson.Marshal(dec) } // String implements fmt.Stringer and is used for debugging. func (r Reminder) String() string { hasData := r.Data != nil dueTime := "nil" if !r.RegisteredTime.IsZero() { dueTime = "'" + r.RegisteredTime.Format(time.RFC3339) + "'" } expirationTime := "nil" if !r.ExpirationTime.IsZero() { expirationTime = "'" + r.ExpirationTime.Format(time.RFC3339) + "'" } period := r.Period.String() if period == "" { period = "nil" } else { period = "'" + period + "'" } return fmt.Sprintf( "name='%s' hasData=%t period=%s dueTime=%s expirationTime=%s", r.Key(), hasData, period, dueTime, expirationTime, ) } func (r *Reminder) RequiresUpdating(new *Reminder) bool { // If the reminder is different, short-circuit if r.ActorID != new.ActorID || r.ActorType != new.ActorType || r.Name != new.Name { return false } return r.DueTime != new.DueTime || r.Period != new.Period || !new.ExpirationTime.IsZero() || (!r.ExpirationTime.IsZero() && new.ExpirationTime.IsZero()) || !reflect.DeepEqual(r.Data, new.Data) } // parseTimeTruncateSeconds is a wrapper around timeutils.ParseTime that truncates the time to seconds. func parseTimeTruncateSeconds(val string, now *time.Time) (time.Time, error) { t, err := timeutils.ParseTime(val, now) if err != nil { return t, err } t = t.Truncate(time.Second) return t, nil }
mikeee/dapr
pkg/actors/internal/reminder.go
GO
mit
7,181
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "encoding/json" "errors" "fmt" "time" timeutils "github.com/dapr/kit/time" ) // ReminderPeriod contains the parsed period for a reminder. type ReminderPeriod struct { value string // Raw value as received from the user years int months int days int period time.Duration repeats int } // NewReminderPeriod parses a reminder period from a string and validates it. func NewReminderPeriod(val string) (p ReminderPeriod, err error) { p = NewEmptyReminderPeriod() if val != "" { p.value = val err = parseReminderPeriod(&p) } return p, err } // NewEmptyReminderPeriod returns an empty ReminderPeriod, which has unlimited repeats. func NewEmptyReminderPeriod() ReminderPeriod { return ReminderPeriod{ repeats: -1, } } // HasRepeats returns true if the period will repeat. func (p ReminderPeriod) HasRepeats() bool { return p.repeats != 0 && (p.years != 0 || p.months != 0 || p.days != 0 || p.period != 0) } // GetFollowing returns the next time the periodic reminder should fire after a given time. func (p ReminderPeriod) GetFollowing(t time.Time) time.Time { return t.AddDate(p.years, p.months, p.days).Add(p.period) } // String implements fmt.Stringer. It returns the value. func (p ReminderPeriod) String() string { return p.value } func (p ReminderPeriod) MarshalJSON() ([]byte, error) { return json.Marshal(p.value) } func (p *ReminderPeriod) UnmarshalJSON(data []byte) error { *p = ReminderPeriod{ value: string(data), repeats: -1, } // Handle nulls and other empty values switch p.value { case "", "null", "{}", `""`, `[]`: p.value = "" return nil } // Remove quotes if present if len(p.value) >= 2 && p.value[0] == '"' && p.value[len(p.value)-1] == '"' { p.value = p.value[1 : len(p.value)-1] } return parseReminderPeriod(p) } func parseReminderPeriod(p *ReminderPeriod) (err error) { p.years, p.months, p.days, p.period, p.repeats, err = timeutils.ParseDuration(p.value) if err != nil { return fmt.Errorf("parse error: %w", err) } // Error on timers with zero repetitions if p.repeats == 0 { return errors.New("has zero repetitions") } return nil }
mikeee/dapr
pkg/actors/internal/reminder_period.go
GO
mit
2,726
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "bytes" "encoding/json" "reflect" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestReminderPeriod(t *testing.T) { t.Run("empty value", func(t *testing.T) { p, err := NewReminderPeriod("") require.NoError(t, err) expect := ReminderPeriod{ value: "", repeats: -1, } assert.Truef(t, reflect.DeepEqual(p, expect), "Got: '%#v' Expected: '%#v'", p, expect) }) t.Run("interval in Go format", func(t *testing.T) { p, err := NewReminderPeriod("2s") require.NoError(t, err) expect := ReminderPeriod{ value: "2s", period: 2 * time.Second, repeats: -1, } assert.Truef(t, reflect.DeepEqual(p, expect), "Got: '%#v' Expected: '%#v'", p, expect) }) t.Run("interval in ISO8601 format", func(t *testing.T) { p, err := NewReminderPeriod("P2WT1M") require.NoError(t, err) expect := ReminderPeriod{ value: "P2WT1M", days: 14, period: time.Minute, repeats: -1, } assert.Truef(t, reflect.DeepEqual(p, expect), "Got: '%#v' Expected: '%#v'", p, expect) }) t.Run("interval in ISO8601 format with repeats", func(t *testing.T) { p, err := NewReminderPeriod("R3/P2WT1M") require.NoError(t, err) expect := ReminderPeriod{ value: "R3/P2WT1M", days: 14, period: time.Minute, repeats: 3, } assert.Truef(t, reflect.DeepEqual(p, expect), "Got: '%#v' Expected: '%#v'", p, expect) }) t.Run("repeats only", func(t *testing.T) { p, err := NewReminderPeriod("R2") require.NoError(t, err) expect := ReminderPeriod{ value: "R2", repeats: 2, } assert.Truef(t, reflect.DeepEqual(p, expect), "Got: '%#v' Expected: '%#v'", p, expect) }) t.Run("invalid interval", func(t *testing.T) { _, err := NewReminderPeriod("invalid") require.Error(t, err) }) t.Run("invalid with zero repeats", func(t *testing.T) { _, err := NewReminderPeriod("R0") require.Error(t, err) }) } func TestReminderPeriodJSON(t *testing.T) { jsonEqual := func(t *testing.T, p ReminderPeriod, wantJSON string) { // Marshal got, err := json.Marshal(p) require.NoError(t, err) // Compact the JSON before checking for equality out := &bytes.Buffer{} err = json.Compact(out, got) require.NoError(t, err) assert.Equal(t, wantJSON, out.String()) // Unmarshal dec := ReminderPeriod{} err = json.Unmarshal(got, &dec) require.NoError(t, err) assert.True(t, reflect.DeepEqual(dec, p), "Got: `%#v`. Expected: `%#v`", dec, p) } t.Run("interval in Go format", func(t *testing.T) { p, err := NewReminderPeriod("2s") require.NoError(t, err) jsonEqual(t, p, `"2s"`) }) t.Run("interval in ISO8601 format", func(t *testing.T) { p, err := NewReminderPeriod("P2WT1M") require.NoError(t, err) jsonEqual(t, p, `"P2WT1M"`) }) t.Run("interval in ISO8601 format with repeats", func(t *testing.T) { p, err := NewReminderPeriod("R3/P2WT1M") require.NoError(t, err) jsonEqual(t, p, `"R3/P2WT1M"`) }) t.Run("no JSON value", func(t *testing.T) { expect := ReminderPeriod{ value: "", repeats: -1, } dec := ReminderPeriod{} err := dec.UnmarshalJSON([]byte{}) // Note this is an empty value require.NoError(t, err) assert.True(t, reflect.DeepEqual(dec, expect), "Got: `%#v`. Expected: `%#v`", dec, expect) }) t.Run("empty JSON values", func(t *testing.T) { tests := map[string]string{ "empty string": `""`, "null": "null", "empty array": "[]", "empty object": "{}", } expect := ReminderPeriod{ value: "", repeats: -1, } for name, tt := range tests { t.Run(name, func(t *testing.T) { dec := ReminderPeriod{} err := json.Unmarshal([]byte(tt), &dec) require.NoError(t, err) assert.True(t, reflect.DeepEqual(dec, expect), "Got: `%#v`. Expected: `%#v`", dec, expect) }) } }) t.Run("not a JSON value", func(t *testing.T) { dec := ReminderPeriod{} // This is just "foo" and not as a JSON string, so it's invalid err := json.Unmarshal([]byte("foo"), &dec) require.Error(t, err) }) t.Run("invalid JSON string", func(t *testing.T) { dec := ReminderPeriod{} err := json.Unmarshal([]byte(`"invalid"`), &dec) require.Error(t, err) }) }
mikeee/dapr
pkg/actors/internal/reminder_period_test.go
GO
mit
4,772
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "bytes" "encoding/json" "reflect" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestReminderProperties(t *testing.T) { time1, _ := time.Parse(time.RFC3339, "2023-03-07T18:29:04Z") r := Reminder{ ActorID: "id", ActorType: "type", Name: "name", RegisteredTime: time1, } t.Run("ActorKey", func(t *testing.T) { require.Equal(t, "type||id", r.ActorKey()) }) t.Run("Key", func(t *testing.T) { require.Equal(t, "type||id||name", r.Key()) }) t.Run("NextTick", func(t *testing.T) { nextTick, active := r.NextTick() require.Equal(t, time1, nextTick) require.True(t, active) }) t.Run("without repeats", func(t *testing.T) { require.False(t, r.HasRepeats()) require.Equal(t, 0, r.RepeatsLeft()) require.Equal(t, 0, r.Period.repeats) require.True(t, r.TickExecuted()) // It's done, no more repeats require.Equal(t, 0, r.Period.repeats) }) // Update the object to add a period var err error r.Period, err = NewReminderPeriod("2s") require.NoError(t, err) t.Run("with unlimited repeats", func(t *testing.T) { require.True(t, r.HasRepeats()) require.Equal(t, -1, r.RepeatsLeft()) require.Equal(t, -1, r.Period.repeats) nextTick, active := r.NextTick() require.Equal(t, time1, nextTick) require.True(t, active) // Execute the tick require.False(t, r.TickExecuted()) // Will repeat require.Equal(t, -1, r.Period.repeats) nextTick, active = r.NextTick() require.Equal(t, time1.Add(2*time.Second), nextTick) require.True(t, active) }) // Update the object to add limited repeats r.RegisteredTime = time1 r.Period, err = NewReminderPeriod("R4/PT2S") require.NoError(t, err) t.Run("with limited repeats", func(t *testing.T) { require.True(t, r.HasRepeats()) // Execute the tick 4 times for i := 4; i > 0; i-- { require.Equal(t, i, r.RepeatsLeft()) require.Equal(t, i, r.Period.repeats) nextTick, active := r.NextTick() require.Equal(t, time1.Add(2*time.Second*time.Duration(4-i)), nextTick) require.True(t, active) if i == 1 { require.True(t, r.TickExecuted()) // Done, won't repeat } else { require.False(t, r.TickExecuted()) // Will repeat } } }) // Update the object to set an expiration r.RegisteredTime = time1 r.ExpirationTime = time1.Add(6 * time.Second) r.Period, err = NewReminderPeriod("2s") require.NoError(t, err) t.Run("with expiration time", func(t *testing.T) { require.True(t, r.HasRepeats()) require.Equal(t, -1, r.RepeatsLeft()) require.Equal(t, -1, r.Period.repeats) for i := 0; i <= 3; i++ { nextTick, active := r.NextTick() require.Equal(t, time1.Add((2*time.Second)*time.Duration(i)), nextTick) if i == 3 { require.False(t, active) } else { require.True(t, active) } require.False(t, r.TickExecuted()) } }) } func TestReminderJSON(t *testing.T) { time1, _ := time.Parse(time.RFC3339, "2023-03-07T18:29:04Z") time2, _ := time.Parse(time.RFC3339, "2023-02-01T11:02:01Z") type fields struct { ActorID string ActorType string Name string Data any Period string RegisteredTime time.Time DueTime string ExpirationTime time.Time } tests := []struct { name string fields fields want string }{ {name: "base test", fields: fields{ActorID: "id", ActorType: "type", Name: "name"}, want: `{"actorID":"id","actorType":"type","name":"name"}`}, {name: "with data", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Data: "hi"}, want: `{"data":"hi","actorID":"id","actorType":"type","name":"name"}`}, {name: "with period", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Period: "2s"}, want: `{"period":"2s","actorID":"id","actorType":"type","name":"name"}`}, {name: "with due time", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Period: "2s", DueTime: "2m", RegisteredTime: time1}, want: `{"registeredTime":"2023-03-07T18:29:04Z","period":"2s","actorID":"id","actorType":"type","name":"name","dueTime":"2m"}`}, {name: "with expiration time", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Period: "2s", ExpirationTime: time2}, want: `{"expirationTime":"2023-02-01T11:02:01Z","period":"2s","actorID":"id","actorType":"type","name":"name"}`}, {name: "with data as JSON object", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Data: json.RawMessage(`{ "foo": [ 12, 4 ] } `)}, want: `{"data":{"foo":[12,4]},"actorID":"id","actorType":"type","name":"name"}`}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { var err error r := Reminder{ ActorID: tt.fields.ActorID, ActorType: tt.fields.ActorType, Name: tt.fields.Name, RegisteredTime: tt.fields.RegisteredTime, DueTime: tt.fields.DueTime, ExpirationTime: tt.fields.ExpirationTime, } if tt.fields.Data != nil { if j, ok := tt.fields.Data.(json.RawMessage); ok { r.Data = compactJSON(t, j) } else { r.Data, _ = json.Marshal(tt.fields.Data) } } r.Period, err = NewReminderPeriod(tt.fields.Period) require.NoError(t, err) // Marshal got, err := json.Marshal(&r) require.NoError(t, err) // Compact the JSON before checking for equality got = compactJSON(t, got) assert.Equal(t, tt.want, string(got)) // Unmarshal dec := Reminder{} err = json.Unmarshal(got, &dec) require.NoError(t, err) assert.True(t, reflect.DeepEqual(dec, r), "Got: `%#v`. Expected: `%#v`", dec, r) }) } t.Run("slice", func(t *testing.T) { const payload = `[{"data":{"foo":[12,4]},"actorID":"id","actorType":"type","name":"name"},{"registeredTime":"2023-03-07T18:29:04Z","period":"2s","actorID":"id","actorType":"type","name":"name","dueTime":"2m"}]` dec := []Reminder{} err := json.Unmarshal([]byte(payload), &dec) require.NoError(t, err) // Marshal enc, err := json.Marshal(dec) require.NoError(t, err) require.Equal(t, payload, string(enc)) }) t.Run("failed to marshal", func(t *testing.T) { t.Run("invalid JSON in data", func(t *testing.T) { r := Reminder{ ActorID: "id", ActorType: "type", Name: "name", Data: json.RawMessage("invalid_json"), } res, err := json.Marshal(r) require.Error(t, err) require.ErrorContains(t, err, "json: error calling MarshalJSON for type json.RawMessage") assert.Empty(t, res) }) }) t.Run("failed to unmarshal", func(t *testing.T) { t.Run("cannot decode RegisteredTime", func(t *testing.T) { const enc = `{"registeredTime":"invalid date","period":"2s","actorID":"id","actorType":"type","name":"name","dueTime":"2m"}` err := json.Unmarshal([]byte(enc), &Reminder{}) require.Error(t, err) require.ErrorContains(t, err, "failed to parse RegisteredTime") }) t.Run("cannot decode ExpirationTime", func(t *testing.T) { const enc = `{"expirationTime":"invalid date","period":"2s","actorID":"id","actorType":"type","name":"name","dueTime":"2m"}` err := json.Unmarshal([]byte(enc), &Reminder{}) require.Error(t, err) require.ErrorContains(t, err, "failed to parse ExpirationTime") }) }) } func TestReminderString(t *testing.T) { time1, _ := time.Parse(time.RFC3339, "2023-03-07T18:29:04Z") time2, _ := time.Parse(time.RFC3339, "2023-02-01T11:02:01Z") type fields struct { ActorID string ActorType string Name string Data json.RawMessage Period string DueTime time.Time DueTimeReq string ExpirationTime time.Time } tests := []struct { name string fields fields want string }{ {name: "base test", fields: fields{ActorID: "id", ActorType: "type", Name: "name"}, want: `name='type||id||name' hasData=false period=nil dueTime=nil expirationTime=nil`}, {name: "with data", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Data: json.RawMessage(`"hi"`)}, want: `name='type||id||name' hasData=true period=nil dueTime=nil expirationTime=nil`}, {name: "with period", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Period: "2s"}, want: `name='type||id||name' hasData=false period='2s' dueTime=nil expirationTime=nil`}, {name: "with due time", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Period: "2s", DueTimeReq: "2m", DueTime: time1}, want: `name='type||id||name' hasData=false period='2s' dueTime='2023-03-07T18:29:04Z' expirationTime=nil`}, {name: "with expiration time", fields: fields{ActorID: "id", ActorType: "type", Name: "name", Period: "2s", ExpirationTime: time2}, want: `name='type||id||name' hasData=false period='2s' dueTime=nil expirationTime='2023-02-01T11:02:01Z'`}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { var err error r := Reminder{ ActorID: tt.fields.ActorID, ActorType: tt.fields.ActorType, Name: tt.fields.Name, RegisteredTime: tt.fields.DueTime, DueTime: tt.fields.DueTimeReq, ExpirationTime: tt.fields.ExpirationTime, Data: tt.fields.Data, } r.Period, err = NewReminderPeriod(tt.fields.Period) require.NoError(t, err) // Encode to string got := r.String() assert.Equal(t, tt.want, got) }) } } func compactJSON(t *testing.T, data []byte) []byte { out := &bytes.Buffer{} err := json.Compact(out, data) require.NoError(t, err) return out.Bytes() }
mikeee/dapr
pkg/actors/internal/reminder_test.go
GO
mit
10,036
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "encoding/json" "fmt" "time" ) // ReminderTrack is a persisted object that keeps track of the last time a reminder fired. type ReminderTrack struct { LastFiredTime time.Time `json:"lastFiredTime"` RepetitionLeft int `json:"repetitionLeft"` Etag *string `json:",omitempty"` } func (r *ReminderTrack) MarshalJSON() ([]byte, error) { type reminderTrackAlias ReminderTrack // Custom serializer that encodes times (LastFiredTime) in the RFC3339 format, for backwards-compatibility m := &struct { LastFiredTime string `json:"lastFiredTime,omitempty"` *reminderTrackAlias }{ reminderTrackAlias: (*reminderTrackAlias)(r), } if !r.LastFiredTime.IsZero() { m.LastFiredTime = r.LastFiredTime.Format(time.RFC3339) } return json.Marshal(m) } func (r *ReminderTrack) UnmarshalJSON(data []byte) error { type reminderTrackAlias ReminderTrack // Parse RegisteredTime and ExpirationTime as dates in the RFC3339 format m := &struct { LastFiredTime string `json:"lastFiredTime"` *reminderTrackAlias }{ reminderTrackAlias: (*reminderTrackAlias)(r), } err := json.Unmarshal(data, &m) if err != nil { return err } if m.LastFiredTime != "" { r.LastFiredTime, err = time.Parse(time.RFC3339, m.LastFiredTime) if err != nil { return fmt.Errorf("failed to parse LastFiredTime: %w", err) } r.LastFiredTime = r.LastFiredTime.Truncate(time.Second) } return nil }
mikeee/dapr
pkg/actors/internal/reminder_track.go
GO
mit
2,000
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "encoding/json" "reflect" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/dapr/kit/ptr" ) func TestReminderTrackJSON(t *testing.T) { time1, _ := time.Parse(time.RFC3339, "2023-03-07T18:29:04Z") type fields struct { LastFiredTime time.Time RepetitionLeft int Etag *string } tests := []struct { name string fields fields want string }{ { name: "basic test", fields: fields{LastFiredTime: time1, RepetitionLeft: 2}, want: `{"lastFiredTime":"2023-03-07T18:29:04Z","repetitionLeft":2}`, }, { name: "has etag", fields: fields{LastFiredTime: time1, RepetitionLeft: 2, Etag: ptr.Of("foo")}, want: `{"lastFiredTime":"2023-03-07T18:29:04Z","repetitionLeft":2,"Etag":"foo"}`, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { r := ReminderTrack{ LastFiredTime: tt.fields.LastFiredTime, RepetitionLeft: tt.fields.RepetitionLeft, Etag: tt.fields.Etag, } // Marshal got, err := json.Marshal(&r) require.NoError(t, err) // Compact the JSON before checking for equality got = compactJSON(t, got) assert.Equal(t, tt.want, string(got)) // Unmarshal dec := ReminderTrack{} err = json.Unmarshal(got, &dec) require.NoError(t, err) assert.True(t, reflect.DeepEqual(dec, r), "Got: `%#v`. Expected: `%#v`", dec, r) }) } }
mikeee/dapr
pkg/actors/internal/reminder_track_test.go
GO
mit
2,009
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "context" "errors" "io" ) // ErrReminderCanceled is returned when the reminder has been canceled. var ErrReminderCanceled = errors.New("reminder has been canceled") // ExecuteReminderFn is the type of the function invoked when a reminder is to be executed. // If this method returns false, the reminder is canceled by the actor. type ExecuteReminderFn func(reminder *Reminder) bool // LookupActorFn is the type of a function that returns whether an actor is locally-hosted and the address of its host. type LookupActorFn func(ctx context.Context, actorType string, actorID string) (isLocal bool, actorAddress string) // StateStoreProviderFn is the type of a function that returns the state store provider and its name. type StateStoreProviderFn func() (string, TransactionalStateStore, error) // RemindersProvider is the interface for the object that provides reminders services. type RemindersProvider interface { io.Closer Init(ctx context.Context) error GetReminder(ctx context.Context, req *GetReminderRequest) (*Reminder, error) CreateReminder(ctx context.Context, req *Reminder) error DeleteReminder(ctx context.Context, req DeleteReminderRequest) error DrainRebalancedReminders(actorType string, actorID string) OnPlacementTablesUpdated(ctx context.Context) SetExecuteReminderFn(fn ExecuteReminderFn) SetStateStoreProviderFn(fn StateStoreProviderFn) SetLookupActorFn(fn LookupActorFn) }
mikeee/dapr
pkg/actors/internal/reminders.go
GO
mit
2,002
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "bytes" "encoding/json" "fmt" "time" ) // GetReminderRequest is the request object to get an existing reminder. type GetReminderRequest struct { Name string ActorType string ActorID string } // CreateReminderRequest is the request object to create a new reminder. type CreateReminderRequest struct { Name string ActorType string ActorID string Data json.RawMessage `json:"data"` DueTime string `json:"dueTime"` Period string `json:"period"` TTL string `json:"ttl"` } // ActorKey returns the key of the actor for this reminder. func (req CreateReminderRequest) ActorKey() string { return req.ActorType + daprSeparator + req.ActorID } // Key returns the key for this unique reminder. func (req CreateReminderRequest) Key() string { return req.ActorType + daprSeparator + req.ActorID + daprSeparator + req.Name } // NewReminder returns a new Reminder from a CreateReminderRequest object. func (req CreateReminderRequest) NewReminder(now time.Time) (reminder *Reminder, err error) { reminder = &Reminder{ ActorID: req.ActorID, ActorType: req.ActorType, Name: req.Name, } err = setReminderData(reminder, req.Data, "reminder") if err != nil { return nil, err } err = setReminderTimes(reminder, req.DueTime, req.Period, req.TTL, now, "reminder") if err != nil { return nil, err } return reminder, nil } // CreateTimerRequest is the request object to create a new timer. type CreateTimerRequest struct { Name string ActorType string ActorID string DueTime string `json:"dueTime"` Period string `json:"period"` TTL string `json:"ttl"` Callback string `json:"callback"` Data json.RawMessage `json:"data"` } // ActorKey returns the key of the actor for this timer. func (req CreateTimerRequest) ActorKey() string { return req.ActorType + daprSeparator + req.ActorID } // Key returns the key for this unique timer. func (req CreateTimerRequest) Key() string { return req.ActorType + daprSeparator + req.ActorID + daprSeparator + req.Name } // NewReminder returns a new Timer from a CreateTimerRequest object. func (req CreateTimerRequest) NewReminder(now time.Time) (reminder *Reminder, err error) { reminder = &Reminder{ ActorID: req.ActorID, ActorType: req.ActorType, Name: req.Name, Callback: req.Callback, } err = setReminderData(reminder, req.Data, "timer") if err != nil { return nil, err } err = setReminderTimes(reminder, req.DueTime, req.Period, req.TTL, now, "timer") if err != nil { return nil, err } return reminder, nil } func setReminderData(reminder *Reminder, data json.RawMessage, logMsg string) error { if len(data) == 0 { return nil } // Compact the data before setting it buf := &bytes.Buffer{} err := json.Compact(buf, data) if err != nil { return fmt.Errorf("failed to compact %s data: %w", logMsg, err) } if buf.Len() > 0 { reminder.Data = buf.Bytes() } return nil } func setReminderTimes(reminder *Reminder, dueTime string, period string, ttl string, now time.Time, logMsg string) (err error) { // Due time and registered time reminder.RegisteredTime = now reminder.DueTime = dueTime if dueTime != "" { reminder.RegisteredTime, err = parseTimeTruncateSeconds(dueTime, &now) if err != nil { return fmt.Errorf("error parsing %s due time: %w", logMsg, err) } } // Parse period and check correctness reminder.Period, err = NewReminderPeriod(period) if err != nil { return fmt.Errorf("invalid %s period: %w", logMsg, err) } // Set expiration time if configured if ttl != "" { reminder.ExpirationTime, err = parseTimeTruncateSeconds(ttl, &reminder.RegisteredTime) if err != nil { return fmt.Errorf("error parsing %s TTL: %w", logMsg, err) } // check if already expired if now.After(reminder.ExpirationTime) || reminder.RegisteredTime.After(reminder.ExpirationTime) { return fmt.Errorf("%s %s has already expired: dueTime: %s TTL: %s", logMsg, reminder.Key(), reminder.RegisteredTime, ttl) } } return nil } // DeleteReminderRequest is the request object for deleting a reminder. type DeleteReminderRequest struct { Name string ActorType string ActorID string } // ActorKey returns the key of the actor for this reminder. func (req DeleteReminderRequest) ActorKey() string { return req.ActorType + daprSeparator + req.ActorID } // Key returns the key for this unique reminder. func (req DeleteReminderRequest) Key() string { return req.ActorType + daprSeparator + req.ActorID + daprSeparator + req.Name } // DeleteTimerRequest is a request object for deleting a timer. type DeleteTimerRequest struct { Name string ActorType string ActorID string } // ActorKey returns the key of the actor for this timer. func (req DeleteTimerRequest) ActorKey() string { return req.ActorType + daprSeparator + req.ActorID } // Key returns the key for this unique timer. func (req DeleteTimerRequest) Key() string { return req.ActorType + daprSeparator + req.ActorID + daprSeparator + req.Name }
mikeee/dapr
pkg/actors/internal/requests.go
GO
mit
5,684
/* Copyright 2023 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package internal import ( "encoding/json" "reflect" "testing" "time" "github.com/stretchr/testify/require" ) func TestNewReminderFromCreateReminderRequest(t *testing.T) { now := time.Now().UTC().Truncate(time.Second) tests := []struct { name string req func(r *CreateReminderRequest) wantReminder func(r *Reminder) wantErr bool }{ { name: "base test", req: func(r *CreateReminderRequest) { return }, wantReminder: func(r *Reminder) { return }, }, { name: "with data", req: func(r *CreateReminderRequest) { r.Data = json.RawMessage(`"hi"`) }, wantReminder: func(r *Reminder) { r.Data = json.RawMessage(`"hi"`) }, }, { name: "with data as JSON object", req: func(r *CreateReminderRequest) { r.Data = json.RawMessage(`{ "foo": [ 12, 4 ] } `) }, wantReminder: func(r *Reminder) { // Gets compacted automatically r.Data = json.RawMessage(`{"foo":[12,4]}`) }, }, { name: "with period", req: func(r *CreateReminderRequest) { r.Period = "2s" }, wantReminder: func(r *Reminder) { r.Period, _ = NewReminderPeriod("2s") }, }, { name: "with due time as duration", req: func(r *CreateReminderRequest) { r.DueTime = "2m" }, wantReminder: func(r *Reminder) { r.DueTime = "2m" r.RegisteredTime = r.RegisteredTime.Add(2 * time.Minute) }, }, { name: "with due time as absolute", req: func(r *CreateReminderRequest) { r.DueTime = now.Add(10 * time.Minute).Format(time.RFC3339) }, wantReminder: func(r *Reminder) { r.DueTime = now.Add(10 * time.Minute).Format(time.RFC3339) r.RegisteredTime = now.Add(10 * time.Minute) }, }, { name: "with TTL as duration", req: func(r *CreateReminderRequest) { r.TTL = "10m" }, wantReminder: func(r *Reminder) { r.ExpirationTime = now.Add(10 * time.Minute) }, }, { name: "with TTL as absolute", req: func(r *CreateReminderRequest) { r.TTL = now.Add(10 * time.Minute).Format(time.RFC3339) }, wantReminder: func(r *Reminder) { r.ExpirationTime = now.Add(10 * time.Minute) }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { // Base request and wantReminder, to keep it DRY req := &CreateReminderRequest{ ActorID: "id", ActorType: "type", Name: "name", } tt.req(req) wantReminder := &Reminder{ ActorID: "id", ActorType: "type", Name: "name", Period: NewEmptyReminderPeriod(), RegisteredTime: now, } tt.wantReminder(wantReminder) // Run tests gotReminder, err := req.NewReminder(now) if (err != nil) != tt.wantErr { t.Errorf("NewReminderFromCreateReminderRequest() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(gotReminder, wantReminder) { t.Errorf("NewReminderFromCreateReminderRequest() = %#v, want %#v", gotReminder, wantReminder) } }) } t.Run("TTL in the past", func(t *testing.T) { req := &CreateReminderRequest{ ActorID: "id", ActorType: "type", Name: "name", TTL: "2002-02-02T12:00:02Z", // In the past } _, err := req.NewReminder(now) require.Error(t, err) require.ErrorContains(t, err, "has already expired") }) } func TestNewReminderFromCreateTimerRequest(t *testing.T) { now := time.Now().UTC().Truncate(time.Second) tests := []struct { name string req func(r *CreateTimerRequest) wantReminder func(r *Reminder) wantErr bool }{ { name: "base test", req: func(r *CreateTimerRequest) { return }, wantReminder: func(r *Reminder) { return }, }, { name: "with data", req: func(r *CreateTimerRequest) { r.Data = json.RawMessage(`"hi"`) }, wantReminder: func(r *Reminder) { r.Data = json.RawMessage(`"hi"`) }, }, { name: "with data as JSON object", req: func(r *CreateTimerRequest) { r.Data = json.RawMessage(`{ "foo": [ 12, 4 ] } `) }, wantReminder: func(r *Reminder) { // Gets compacted automatically r.Data = json.RawMessage(`{"foo":[12,4]}`) }, }, { name: "with period", req: func(r *CreateTimerRequest) { r.Period = "2s" }, wantReminder: func(r *Reminder) { r.Period, _ = NewReminderPeriod("2s") }, }, { name: "with due time as duration", req: func(r *CreateTimerRequest) { r.DueTime = "2m" }, wantReminder: func(r *Reminder) { r.DueTime = "2m" r.RegisteredTime = r.RegisteredTime.Add(2 * time.Minute) }, }, { name: "with due time as absolute", req: func(r *CreateTimerRequest) { r.DueTime = now.Add(10 * time.Minute).Format(time.RFC3339) }, wantReminder: func(r *Reminder) { r.DueTime = now.Add(10 * time.Minute).Format(time.RFC3339) r.RegisteredTime = now.Add(10 * time.Minute) }, }, { name: "with TTL as duration", req: func(r *CreateTimerRequest) { r.TTL = "10m" }, wantReminder: func(r *Reminder) { r.ExpirationTime = now.Add(10 * time.Minute) }, }, { name: "with TTL as absolute", req: func(r *CreateTimerRequest) { r.TTL = now.Add(10 * time.Minute).Format(time.RFC3339) }, wantReminder: func(r *Reminder) { r.ExpirationTime = now.Add(10 * time.Minute) }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { // Base request and wantReminder, to keep it DRY req := &CreateTimerRequest{ ActorID: "id", ActorType: "type", Name: "name", } tt.req(req) wantReminder := &Reminder{ ActorID: "id", ActorType: "type", Name: "name", Period: NewEmptyReminderPeriod(), RegisteredTime: now, } tt.wantReminder(wantReminder) // Run tests gotReminder, err := req.NewReminder(now) if (err != nil) != tt.wantErr { t.Errorf("NewReminderFromCreateTimerRequest() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(gotReminder, wantReminder) { t.Errorf("NewReminderFromCreateTimerRequest() = %#v, want %#v", gotReminder, wantReminder) } }) } t.Run("TTL in the past", func(t *testing.T) { req := &CreateTimerRequest{ ActorID: "id", ActorType: "type", Name: "name", TTL: "2002-02-02T12:00:02Z", // In the past } _, err := req.NewReminder(now) require.Error(t, err) require.ErrorContains(t, err, "has already expired") }) }
mikeee/dapr
pkg/actors/internal/requests_test.go
GO
mit
7,041