diff options
author | Valery Piashchynski <[email protected]> | 2022-07-18 16:42:32 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-18 16:42:32 +0200 |
commit | 757b3b6d32a629b56df58948e708b21fb5bed24f (patch) | |
tree | b9f91d1e2141c110c5246e99fc7602f662626a61 | |
parent | 0bdc25ef2c3bd7cd57aa5c475a0bbc6eb80be060 (diff) | |
parent | f6e44d68568f1027fd46096e4b4dabd6d471a479 (diff) |
[#1216]: pre-release: `v2.11.0-beta.1`v2.11.0-beta.1
-rw-r--r-- | .github/workflows/tests.yml | 10 | ||||
-rw-r--r-- | .rr.yaml | 5 | ||||
-rw-r--r-- | CHANGELOG.md | 23 | ||||
-rw-r--r-- | go.mod | 74 | ||||
-rw-r--r-- | go.sum | 148 | ||||
-rw-r--r-- | internal/debug/server.go | 6 | ||||
-rw-r--r-- | schemas/config/2.0.schema.json | 5 |
7 files changed, 152 insertions, 119 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b8c1ace6..d087ee4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,10 +6,10 @@ on: - master - stable paths-ignore: - - '**.md' + - "**.md" pull_request: paths-ignore: - - '**.md' + - "**.md" jobs: validate-config-file: @@ -22,7 +22,7 @@ jobs: - name: Setup nodejs uses: actions/setup-node@v3 with: - node-version: '14' + node-version: "14" - name: Install linter run: npm install -g ajv-cli # Package page: <https://www.npmjs.com/package/ajv-cli> @@ -45,7 +45,7 @@ jobs: - name: Run linter uses: golangci/[email protected] with: - version: v1.46 # without patch version + version: v1.47 # without patch version only-new-issues: false # show only new issues if it's a pull request args: --build-tags=safe --timeout=10m @@ -154,6 +154,6 @@ jobs: - uses: aquasecurity/[email protected] # action page: <https://github.com/aquasecurity/trivy-action> with: image-ref: rr:local - format: 'table' + format: "table" severity: MEDIUM,HIGH,CRITICAL exit-code: 1 @@ -1401,6 +1401,11 @@ grpc: # This option is required listen: "tcp://localhost:9001" + # GRPC reflection server [SINCE 2.11] + # + # This option is optional. The reflection server might be activated to use `grpc_cli`, `grpc-ui`, `grpc-curl`, or similar tools to intercept grpc payloads. + enable_reflection_server: false + # Proto file to use, multiply files supported [SINCE 2.6] # # This option is required diff --git a/CHANGELOG.md b/CHANGELOG.md index 41b94e2f..e3147816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,29 @@ # CHANGELOG -## v2.11.0 (??.??.????) +## v2.11.0 (28.07.2022) ## 👀 New: -- ✏️ **RoadRunner**: Can now be embedded in other go programs +- ✏️ **[BETA]: RoadRunner**: Can now be embedded in other go programs. [PR](https://github.com/roadrunner-server/roadrunner/pull/1214), (thanks @khepin) +- ✏️ **gRPC Plugin**: Implement Google's `gRPC` [errors API](https://cloud.google.com/apis/design/errors). Exception might be passed as a `Status` structure in the `Metadata` (key - `error`) to be parsed and returned to the user w/o worker restart. NOTE: `Status` structure should be marshaled via `proto` marshaller, not `json`. [FR](https://github.com/roadrunner-server/roadrunner/issues/1001) +- ✏️ **gRPC Plugin**: `gRPC` reflection server. [GoDocs](https://github.com/grpc/grpc-go/blob/master/Documentation/server-reflection-tutorial.md). +- ✏️ **Logger Plugin**: Get rid of the `context deadline exceeded` error on worker's allocation. We updated the error message with the link to the docs with the most common causes for the `worker allocation failed` error: https://roadrunner.dev/docs/known-issues-allocate-timeout/2.x/en. Feel free to add your cases here :) + +The reflection server might be activated to use [`grpc_cli`](https://github.com/grpc/grpc/blob/master/doc/command_line_tool.md), [`grpc-curl`](https://github.com/fullstorydev/grpcurl), [`grpc-ui`](https://github.com/fullstorydev/grpcui), or similar tools to intercept grpc payloads. + +Configuration: +```yaml +grpc: + listen: "tcp://localhost:9001" + + # GRPC reflection server [SINCE 2.11] + # + # This option is optional. The reflection server might be activated to use `grpc_cli`, `grpc-ui`, `grpc-curl`, or similar tools to intercept grpc payloads. + enable_reflection_server: false + proto: + - "first.proto" + - "second.proto" +``` ## v2.10.7 (14.07.2022) @@ -8,45 +8,45 @@ require ( github.com/fatih/color v1.13.0 github.com/joho/godotenv v1.4.0 github.com/olekukonko/tablewriter v0.0.5 - github.com/roadrunner-server/amqp/v2 v2.17.5 - github.com/roadrunner-server/api/v2 v2.18.0 - github.com/roadrunner-server/beanstalk/v2 v2.16.3 - github.com/roadrunner-server/boltdb/v2 v2.16.5 - github.com/roadrunner-server/broadcast/v2 v2.12.6 - github.com/roadrunner-server/cache/v2 v2.15.5 - github.com/roadrunner-server/config/v2 v2.14.6 - github.com/roadrunner-server/endure v1.3.0 + github.com/roadrunner-server/amqp/v2 v2.17.7 + github.com/roadrunner-server/api/v2 v2.19.0 + github.com/roadrunner-server/beanstalk/v2 v2.16.5 + github.com/roadrunner-server/boltdb/v2 v2.16.7 + github.com/roadrunner-server/broadcast/v2 v2.12.9 + github.com/roadrunner-server/cache/v2 v2.15.8 + github.com/roadrunner-server/config/v2 v2.14.8 + github.com/roadrunner-server/endure v1.3.1 github.com/roadrunner-server/errors v1.1.2 - github.com/roadrunner-server/fileserver/v2 v2.13.6 + github.com/roadrunner-server/fileserver/v2 v2.13.8 github.com/roadrunner-server/goridge/v3 v3.4.5 - github.com/roadrunner-server/grpc/v2 v2.17.0 - github.com/roadrunner-server/gzip/v2 v2.12.3 - github.com/roadrunner-server/headers/v2 v2.12.4 - github.com/roadrunner-server/http/v2 v2.19.9 - github.com/roadrunner-server/informer/v2 v2.11.7 - github.com/roadrunner-server/jobs/v2 v2.15.5 - github.com/roadrunner-server/kv/v2 v2.12.7 - github.com/roadrunner-server/logger/v2 v2.13.5 - github.com/roadrunner-server/memcached/v2 v2.12.4 - github.com/roadrunner-server/memory/v2 v2.15.3 - github.com/roadrunner-server/metrics/v2 v2.13.6 - github.com/roadrunner-server/nats/v2 v2.16.2 - github.com/roadrunner-server/new_relic/v2 v2.14.6 + github.com/roadrunner-server/grpc/v2 v2.18.2 + github.com/roadrunner-server/gzip/v2 v2.12.5 + github.com/roadrunner-server/headers/v2 v2.12.6 + github.com/roadrunner-server/http/v2 v2.20.1 + github.com/roadrunner-server/informer/v2 v2.11.9 + github.com/roadrunner-server/jobs/v2 v2.15.8 + github.com/roadrunner-server/kv/v2 v2.12.10 + github.com/roadrunner-server/logger/v2 v2.13.8 + github.com/roadrunner-server/memcached/v2 v2.12.6 + github.com/roadrunner-server/memory/v2 v2.15.5 + github.com/roadrunner-server/metrics/v2 v2.13.8 + github.com/roadrunner-server/nats/v2 v2.16.4 + github.com/roadrunner-server/new_relic/v2 v2.14.9 github.com/roadrunner-server/otel/v2 v2.3.0 - github.com/roadrunner-server/prometheus/v2 v2.13.6 + github.com/roadrunner-server/prometheus/v2 v2.13.8 github.com/roadrunner-server/proxy_ip_parser/v2 v2.4.0 - github.com/roadrunner-server/redis/v2 v2.15.4 - github.com/roadrunner-server/reload/v2 v2.12.6 - github.com/roadrunner-server/resetter/v2 v2.11.7 - github.com/roadrunner-server/rpc/v2 v2.13.4 - github.com/roadrunner-server/send/v2 v2.12.3 - github.com/roadrunner-server/server/v2 v2.14.6 - github.com/roadrunner-server/service/v2 v2.15.0 - github.com/roadrunner-server/sqs/v2 v2.17.3 - github.com/roadrunner-server/static/v2 v2.13.4 - github.com/roadrunner-server/status/v2 v2.13.6 - github.com/roadrunner-server/tcp/v2 v2.13.7 - github.com/roadrunner-server/websockets/v2 v2.14.6 + github.com/roadrunner-server/redis/v2 v2.15.6 + github.com/roadrunner-server/reload/v2 v2.12.8 + github.com/roadrunner-server/resetter/v2 v2.11.9 + github.com/roadrunner-server/rpc/v2 v2.13.7 + github.com/roadrunner-server/send/v2 v2.12.5 + github.com/roadrunner-server/server/v2 v2.14.8 + github.com/roadrunner-server/service/v2 v2.15.2 + github.com/roadrunner-server/sqs/v2 v2.17.5 + github.com/roadrunner-server/static/v2 v2.13.6 + github.com/roadrunner-server/status/v2 v2.13.9 + github.com/roadrunner-server/tcp/v2 v2.13.9 + github.com/roadrunner-server/websockets/v2 v2.14.8 github.com/spf13/cobra v1.5.0 github.com/spf13/viper v1.12.0 github.com/stretchr/testify v1.8.0 @@ -128,7 +128,7 @@ require ( github.com/prometheus/procfs v0.7.3 // indirect github.com/rabbitmq/amqp091-go v1.3.4 // indirect github.com/rivo/uniseg v0.2.0 // indirect - github.com/roadrunner-server/sdk/v2 v2.17.3 // indirect + github.com/roadrunner-server/sdk/v2 v2.18.0 // indirect github.com/roadrunner-server/tcplisten v1.1.2 // indirect github.com/robfig/cron v1.2.0 // indirect github.com/shirou/gopsutil v3.21.11+incompatible // indirect @@ -178,7 +178,7 @@ require ( golang.org/x/text v0.3.7 // indirect golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect golang.org/x/tools v0.1.11 // indirect - google.golang.org/genproto v0.0.0-20220715211116-798f69b842b9 // indirect + google.golang.org/genproto v0.0.0-20220718134204-073382fd740c // indirect google.golang.org/grpc v1.48.0 // indirect google.golang.org/protobuf v1.28.0 // indirect gopkg.in/ini.v1 v1.66.6 // indirect @@ -421,88 +421,88 @@ github.com/rabbitmq/amqp091-go v1.3.4/go.mod h1:ogQDLSOACsLPsIq0NpbtiifNZi2YOz0V github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/roadrunner-server/amqp/v2 v2.17.5 h1:jf8BNKN+U9ipLviHMUPsUGI9qKzq+f/RCyeEzRVWqio= -github.com/roadrunner-server/amqp/v2 v2.17.5/go.mod h1:4ed3xfA8GFt+yvyco0L8AhpjlrRZBuTqdCvCkE4BYQI= -github.com/roadrunner-server/api/v2 v2.18.0 h1:xKvlKmgTyQjP+AUMMYL0M/Wk7iyp+bG4qrfp+pCrnLE= -github.com/roadrunner-server/api/v2 v2.18.0/go.mod h1:F4B43HFTLyZee+YHPMY7c3kaVwONNlbjU+UdTq5pmq8= -github.com/roadrunner-server/beanstalk/v2 v2.16.3 h1:rOlZ4gYBa2ZBkuYpDilnxtGRuMuYoFTPh+a1XsIHYuo= -github.com/roadrunner-server/beanstalk/v2 v2.16.3/go.mod h1:PRi1hYkug0CENyy01TGk57KRw6ZLWDHTcXm2rDD86nE= -github.com/roadrunner-server/boltdb/v2 v2.16.5 h1:lYrCnMalQorsVmlUyIMSal6Mig5CLuIw809u0XZIvoE= -github.com/roadrunner-server/boltdb/v2 v2.16.5/go.mod h1:3+eTdn/vwAYyFTa3HCJ7TIwzDf7zkWvZfUBaFbyxfDQ= -github.com/roadrunner-server/broadcast/v2 v2.12.6 h1:4QRBoxC5Pr28mcCxynMycvF6OXrtxsJ6Xyvj8RtIqOY= -github.com/roadrunner-server/broadcast/v2 v2.12.6/go.mod h1:wXXvrgULY2lY3KzVef7RGeGTNNF2VFkAeMwjHC6tx5s= -github.com/roadrunner-server/cache/v2 v2.15.5 h1:AfxGsPELWBjijPvVdrqCRxEaRut4jMJLlqKZdZtzeG8= -github.com/roadrunner-server/cache/v2 v2.15.5/go.mod h1:xqG8wwmM10vRelZdttggZl5aE4SX/52I6rPT9fYj/m8= -github.com/roadrunner-server/config/v2 v2.14.6 h1:O4aR7Q+QY1urJLNmVtl5cDjVy6pZwMZgrxKoJEDyUCo= -github.com/roadrunner-server/config/v2 v2.14.6/go.mod h1:L8H45Xl7Y6R05oZxat8Y1kVyoMIZssRDCdFV87Fj79M= -github.com/roadrunner-server/endure v1.3.0 h1:lZNOE4EDcoibR2PE4xz6G8/ywQBq9HmMzCvfQenEUCA= -github.com/roadrunner-server/endure v1.3.0/go.mod h1:Yahi4Uoabla2o+0N+pbjWwIJnAigYWppGwbLU3D6cLc= +github.com/roadrunner-server/amqp/v2 v2.17.7 h1:avmoc7t7V108rab8GGnzSEFsrysE/KgOB8J+bxthLsk= +github.com/roadrunner-server/amqp/v2 v2.17.7/go.mod h1:7vPJ4C7RycouTkcQBOuByj//TaWSkYwFD+2i8YH3zLo= +github.com/roadrunner-server/api/v2 v2.19.0 h1:tabuboUR9mK8vnyKXNws++bwq17dO8OFFEaRlsu1tqg= +github.com/roadrunner-server/api/v2 v2.19.0/go.mod h1:VDlFUKfyL2nKCY1aaIKNlDwi7c9B158RKdJ4jif4h9w= +github.com/roadrunner-server/beanstalk/v2 v2.16.5 h1:vqqWA37IpO+dw1ExJB8xPmw1RfrSxteCG+iIeets/jQ= +github.com/roadrunner-server/beanstalk/v2 v2.16.5/go.mod h1:KY2ZS6AnyWkhbnQ3bhrZBO0F3DkwBseNMpDE0UrTIfo= +github.com/roadrunner-server/boltdb/v2 v2.16.7 h1:SnPXcO3+JnD2rZomL6nAtx/N3wj/hl6klD8waGQNJsA= +github.com/roadrunner-server/boltdb/v2 v2.16.7/go.mod h1:/pwmknU0NlPQoKMM6vYid2YCSTMf/Kt4g09tIyYj4Oo= +github.com/roadrunner-server/broadcast/v2 v2.12.9 h1:uP9uvy2LHpOQUAaYHZaEsNGNk44HP1bGrPT3CVHjdFk= +github.com/roadrunner-server/broadcast/v2 v2.12.9/go.mod h1:u37xELeolq70JUcwzZ6lZKot1vdNzRV1d04g3jYuX+E= +github.com/roadrunner-server/cache/v2 v2.15.8 h1:rntifH6S1Np4eOaKst5UIMHfp7V5VuZ1ezbWMK/pBDg= +github.com/roadrunner-server/cache/v2 v2.15.8/go.mod h1:4IYMHzaU7gTcWRt0oCdximzZ+nrEvrHaSArgzp+d4bk= +github.com/roadrunner-server/config/v2 v2.14.8 h1:2tDBVyPoHmACObXfWbC93hi4Gyg7WeTVacIIUefzOdU= +github.com/roadrunner-server/config/v2 v2.14.8/go.mod h1:SFhNbLgY4Z+H4Co9+QvcK9y6lc3thK30jzzq1r8nR4M= +github.com/roadrunner-server/endure v1.3.1 h1:7YvXUOz+sHBv6i+Qx3V0rnGn/1poFLK11bOt8MHBfHc= +github.com/roadrunner-server/endure v1.3.1/go.mod h1:uWaoO9yxGbryvbSG8ThSW1KKNnYwsoR53MQQEFUlK4s= github.com/roadrunner-server/errors v1.1.2 h1:+LPw9Akgg+8LAGM4wASMWLAoBIbyP+mhNfR+FBS2Slw= github.com/roadrunner-server/errors v1.1.2/go.mod h1:jVSh32nFtRMzKItYUM9W2CTLLpXAM8HseL2lUENPYtU= -github.com/roadrunner-server/fileserver/v2 v2.13.6 h1:zQe2Gddbag7ITTNSUeR8P/UNMjUL1elN26i2+jKeXnI= -github.com/roadrunner-server/fileserver/v2 v2.13.6/go.mod h1:FpZrjzsRikWgmxXPM1ZT1Okwru4Bm6IDro+KNFaFlAg= +github.com/roadrunner-server/fileserver/v2 v2.13.8 h1:3x8/tBvWEY6N9W24QtffVLRg/mMw1dX/XuPwcl1fyts= +github.com/roadrunner-server/fileserver/v2 v2.13.8/go.mod h1:ZmuEuOGIM6pyDFNnHOwWAWdO/mfGt00rmQqdMK0LMdA= github.com/roadrunner-server/goridge/v3 v3.4.5 h1:g7K9kOmyAOQQ9TusDYksgyKBsKQrQVNc0CT1HKhaphg= github.com/roadrunner-server/goridge/v3 v3.4.5/go.mod h1:zGbUad2YyaaW9Vt9dqLBDcyrA45KlYoRh8jB7TUsStM= -github.com/roadrunner-server/grpc/v2 v2.17.0 h1:FT64YdvvmgN3MaZ0ONc2AycdW/JWN4hqJSj8XXg3Exg= -github.com/roadrunner-server/grpc/v2 v2.17.0/go.mod h1:dczlTS/fvkckEMonTLWB2xQghUEUy/mLwHe+uBswf+8= -github.com/roadrunner-server/gzip/v2 v2.12.3 h1:Y0u/CxRg9MOvvQQdu4F9wI+7LXi8bUQUfaWGmhTHrI0= -github.com/roadrunner-server/gzip/v2 v2.12.3/go.mod h1:FVq6R/218iFYkk3jCC2c+Rys+C2/TXjS0QLZQ2KhGQI= -github.com/roadrunner-server/headers/v2 v2.12.4 h1:6FHhS6xQeLgqvnUUbbMMMHpjK8aVBSjiFNKNr9nCFtk= -github.com/roadrunner-server/headers/v2 v2.12.4/go.mod h1:emmn/qLZ0MhMmwpPF3IzGFSn/3KL+5YFGkiGU7k7EoQ= -github.com/roadrunner-server/http/v2 v2.19.9 h1:UFMYFt4TiW/X0veFtd2AYm1v9R8PqzSZUMNGqRAnczw= -github.com/roadrunner-server/http/v2 v2.19.9/go.mod h1:Msd1r3M0Aq5n1VL5iVjeEDfwt1dnNqFAeDmj9Kg7I4c= -github.com/roadrunner-server/informer/v2 v2.11.7 h1:vl4mi1tV1x39k3TkZelmF3GiwK4TKNqlLVXWAl6URyg= -github.com/roadrunner-server/informer/v2 v2.11.7/go.mod h1:eKksViGKMdSZQr2dgMRwVR0pT66B7Q/R3k5Y3hBRcQs= -github.com/roadrunner-server/jobs/v2 v2.15.5 h1:D9QP5n8m6qxmA9317buV/6ICNBTwwA9eBfPW1U07Gg0= -github.com/roadrunner-server/jobs/v2 v2.15.5/go.mod h1:uAsVEzCp1nfY/XhTPCKf9im1hbC64pTgmhugTx+zQWk= -github.com/roadrunner-server/kv/v2 v2.12.7 h1:mBzcQfn2rLJXO8hf1hyCiVqHWKpJpn/a+uFPKlKMU/0= -github.com/roadrunner-server/kv/v2 v2.12.7/go.mod h1:CINO14KmWrtU/hTWZOLbR3X+SwhrNNQluGPdBqIko88= -github.com/roadrunner-server/logger/v2 v2.13.5 h1:iDjp0ZFlPJlnbfjYX8V+pyJYhbuZo9ArSAVuv1GR5mE= -github.com/roadrunner-server/logger/v2 v2.13.5/go.mod h1:FZteSDWsJGYi/hlfGo8SxZPe31JJR/nbLA0fSgN/z3k= -github.com/roadrunner-server/memcached/v2 v2.12.4 h1:9p5xxrGQLw/welWL81fMRraq3zmtUm59cI33pb+JEWI= -github.com/roadrunner-server/memcached/v2 v2.12.4/go.mod h1:Qkl0Nj/ofBBLJEe0NP+KUNRLndNTdZnUpiPF5rBBs10= -github.com/roadrunner-server/memory/v2 v2.15.3 h1:yotZ0+/+y6VqB3NK1/VNYVoIH0nEmxm8ayyXGMPJ9EI= -github.com/roadrunner-server/memory/v2 v2.15.3/go.mod h1:f3WrrofJ97C9ZaRJQnuemcn/tm970Iuy/eCmh6HkidU= -github.com/roadrunner-server/metrics/v2 v2.13.6 h1:xYNqXYoNmQpXOZoRmAt3tnPj/gw5p/Swg5FnjkDXZ7c= -github.com/roadrunner-server/metrics/v2 v2.13.6/go.mod h1:X7xHi6pVGvsmZBUgRQY4QF12kjqsI739bie2NszE/Xg= -github.com/roadrunner-server/nats/v2 v2.16.2 h1:oZuVIFQeaz3r4kiqjq2K2LbX0OudIxd/ANh8EnFfeNI= -github.com/roadrunner-server/nats/v2 v2.16.2/go.mod h1:AyKbCmfNdRfhudgKxxmW89/2iDtgqbV3ZDvo0jLSjqo= -github.com/roadrunner-server/new_relic/v2 v2.14.6 h1:uvg0qFY5ZU5wZ4eIMRLP0B/tCv/losZv+M7r7jfJ9PA= -github.com/roadrunner-server/new_relic/v2 v2.14.6/go.mod h1:t6lPH+ukmj6p9MUHgcUXizLBzO1BQNKMz7bPq7TQAYM= +github.com/roadrunner-server/grpc/v2 v2.18.2 h1:FQ5KVg6Amuxgac5rRcJZYYThiu1iIOGtc57PjKvWN6Y= +github.com/roadrunner-server/grpc/v2 v2.18.2/go.mod h1:z8OZRVl8MWeQxlWSRd3z/6/X5K4POQe1DM3RkRyzMhA= +github.com/roadrunner-server/gzip/v2 v2.12.5 h1:TygneHz97KiOxfDJPRyfRWfLy0ac4g6IAi/8ZAuLrQk= +github.com/roadrunner-server/gzip/v2 v2.12.5/go.mod h1:IQB9oGsH27uchzYaks5LYPo/Fre1P3KVzNbgEO8H8To= +github.com/roadrunner-server/headers/v2 v2.12.6 h1:vNtCt12pQAwn36GlaAWouvN08TuFCOEWK/nBla8F6dE= +github.com/roadrunner-server/headers/v2 v2.12.6/go.mod h1:QaF6Nd6brnMEiD32GOsKdt03Lcx7qvDkU2ZLKTC7iMg= +github.com/roadrunner-server/http/v2 v2.20.1 h1:b2LlsMaZ1x/c5lhg8BwgmJNGye7O+T0iMjLUa9YoBNQ= +github.com/roadrunner-server/http/v2 v2.20.1/go.mod h1:pSLX2lF/x07UP6iQwpj0dgVuM2WuwXB4xkxELc19jSw= +github.com/roadrunner-server/informer/v2 v2.11.9 h1:WrDHLsKtDKXD+/eVONX5qKRWM8AAralF89TQSTmMyn0= +github.com/roadrunner-server/informer/v2 v2.11.9/go.mod h1:y9Ue2XcRpaOzR5vr+SOgZJnz1HTRfgh9nlHd+83wu30= +github.com/roadrunner-server/jobs/v2 v2.15.8 h1:gVsohD7aW+aHRIRKx3PDn5KBYxwCB0CfZAIJC+AlgLM= +github.com/roadrunner-server/jobs/v2 v2.15.8/go.mod h1:sVeygSQw2kGGW9T3WnRAFd03NgR5PwAYAbhDir0yO5I= +github.com/roadrunner-server/kv/v2 v2.12.10 h1:q3UpmfI1FcaO4VlaV/A3CXT1t+Jexe5iOhPZGJzyFR0= +github.com/roadrunner-server/kv/v2 v2.12.10/go.mod h1:/Jk2XS2g2Y5LXYehMqpLEYnXJBT04C0cB8mKVgJM+2E= +github.com/roadrunner-server/logger/v2 v2.13.8 h1:DunFVWAHdjjXPo2aal4oDW4nbRFThth+gxwhTowAKVQ= +github.com/roadrunner-server/logger/v2 v2.13.8/go.mod h1:NskRXaAGPPAhJcP68jRal5/CNV0HMd/T0+Zn5sqKX7A= +github.com/roadrunner-server/memcached/v2 v2.12.6 h1:4O10Fnmq53Ymh5j+8n2SBSmrp3PeTND7PBKDDHlIXSw= +github.com/roadrunner-server/memcached/v2 v2.12.6/go.mod h1:Bq54aE+sOmyJ++/8lh1J4JUA+tkglHtLw9oj7GzcApM= +github.com/roadrunner-server/memory/v2 v2.15.5 h1:Qha8+7DigFHk3UcMTdoVgkipGEjMhn3uzGSCYntKrJ4= +github.com/roadrunner-server/memory/v2 v2.15.5/go.mod h1:NUg8tSmQSgvMQIkaTiKgmmb8OG5hibg0oRUm7KMVlP8= +github.com/roadrunner-server/metrics/v2 v2.13.8 h1:rYt87noRBgJHIanJ1uJUr3iMBgwG7dpIUUSb3gD7sMk= +github.com/roadrunner-server/metrics/v2 v2.13.8/go.mod h1:4+o48WAF4/A2Lvh3ign5sT+NmHa0KBjO2eQhs7nDISs= +github.com/roadrunner-server/nats/v2 v2.16.4 h1:xWfyN8XsIoqxqbDFm9qYX64CvO2EMWiKbeKmStUUSVY= +github.com/roadrunner-server/nats/v2 v2.16.4/go.mod h1:1Mbqwc9Ybt8mdjJWsJ4lfxZweCcHZ3uXG0fMUuRnNEM= +github.com/roadrunner-server/new_relic/v2 v2.14.9 h1:fUdj1WDjYo1zN2vjx+ezPYwVHST7pJb/6wSWlLJgwZ8= +github.com/roadrunner-server/new_relic/v2 v2.14.9/go.mod h1:3OM5TfmftCzyuymqRhjw63Wzoc1meIR1b5rozD7G/tU= github.com/roadrunner-server/otel/v2 v2.3.0 h1:/S4c4J13smMVHrKvWMVlDDcJnktbI8pQ6AhyAsl/rFU= github.com/roadrunner-server/otel/v2 v2.3.0/go.mod h1:iLrejpHB+PD1NG+y4o+giSNOtXdJWmLOuAnLwVaRYFo= -github.com/roadrunner-server/prometheus/v2 v2.13.6 h1:GOOkbtsFEzewOZioHGjzRcXLDoKCTxbtEHVw5MHDE48= -github.com/roadrunner-server/prometheus/v2 v2.13.6/go.mod h1:z4/zuB4chuhnt/7M7IQfKe7zBeLTpQhmUmcU0t9ifWA= +github.com/roadrunner-server/prometheus/v2 v2.13.8 h1:rVPAEXW19EU3LvRsm1udTav/+pEyRiPmLi2tuLGfJ/0= +github.com/roadrunner-server/prometheus/v2 v2.13.8/go.mod h1:SV3WX36OpyJvSUeGuGcukXHrene9HEssdou+d0Mn0RE= github.com/roadrunner-server/proxy_ip_parser/v2 v2.4.0 h1:DA2fItCrwzNBXN7zl2dB+pQMvXoSM9raH1Q8nELkhuI= github.com/roadrunner-server/proxy_ip_parser/v2 v2.4.0/go.mod h1:mZHMsfUIkNXQRN8X98POxa/qYB6Zrb4HZmBTAWdxusg= -github.com/roadrunner-server/redis/v2 v2.15.4 h1:aesN18e9IyLYPK5G+DsZKT7vIpeIo2MQwU7n6kQS6j8= -github.com/roadrunner-server/redis/v2 v2.15.4/go.mod h1:OJ61Y8pYvAdlFYTvFe7rQK96EluvdJ6QfSKbsrYM9wQ= -github.com/roadrunner-server/reload/v2 v2.12.6 h1:x2VB1MqFaHnJTWftgofLU7BridDEGmD+JS3SSaLq8nQ= -github.com/roadrunner-server/reload/v2 v2.12.6/go.mod h1:5rrikEuAKelNR5ouNtwfkdOSWD7zT0I4RpGnxJKMpMo= -github.com/roadrunner-server/resetter/v2 v2.11.7 h1:vwoMBejRborEstZVoKoLUrxY947GB5YS1PsmZ4o0ewc= -github.com/roadrunner-server/resetter/v2 v2.11.7/go.mod h1:C8xRnkPgBSFykQAzd8UNQu1EPslPxGz0r/D5ijTzvBE= -github.com/roadrunner-server/rpc/v2 v2.13.4 h1:wl+aqybacxAG9YIUBSj+tSLWfp3QlvLFE2WmS7FgpXw= -github.com/roadrunner-server/rpc/v2 v2.13.4/go.mod h1:vzkxnRULfofn4fZphr795mkVpeOKwy9yeNYmBjJfnpc= -github.com/roadrunner-server/sdk/v2 v2.17.3 h1:BkBDcdO+YhEvbmsbPtak5yg91FDW+GFoZr5UBrWOQJc= -github.com/roadrunner-server/sdk/v2 v2.17.3/go.mod h1:n05/SPVQ9WFj4UJEruVbXrSUfo2hkGiO4HxMgvsAlWM= -github.com/roadrunner-server/send/v2 v2.12.3 h1:98kRred2rvP6fMs+ePXoykN8ttuMhYIJr7RGfSnXJB0= -github.com/roadrunner-server/send/v2 v2.12.3/go.mod h1:W1SHPuWKSg8igv2iJo1n+yKiouUUMnxj+jv41Brmmio= -github.com/roadrunner-server/server/v2 v2.14.6 h1:ESRjKxPpf65aEU6hSUYktLYyp7t7I1rbnj4zyrEHx8Q= -github.com/roadrunner-server/server/v2 v2.14.6/go.mod h1:E/8T1kIqDSC2gv2zlokFwo6P1cvlsxkfftFVjvtDR3k= -github.com/roadrunner-server/service/v2 v2.15.0 h1:ptv+ROf1AAyFbiWFABUb7z3zJ9E2gxpI8JgiRnlj75w= -github.com/roadrunner-server/service/v2 v2.15.0/go.mod h1:fm9wzPBMqcKU48PGLN3CXQ7yxPoY+a2NSMP+aBWENS8= -github.com/roadrunner-server/sqs/v2 v2.17.3 h1:8rAn+S3x9MUKiCP/PzfgaJGTHzbffNpFDNnSMTy62f0= -github.com/roadrunner-server/sqs/v2 v2.17.3/go.mod h1:N8FAIh2VK6EZVn9ehq6ZgdVotxsoRIsyr96mQgJKMn8= -github.com/roadrunner-server/static/v2 v2.13.4 h1:KTAzK0Jc/94e9KDKCLQHT/NpWazQHEMt6HmjNreRK7s= -github.com/roadrunner-server/static/v2 v2.13.4/go.mod h1:/SbigptN4cXcs4jrC3onpD+t+nJ9koVSCtZZF07Ezro= -github.com/roadrunner-server/status/v2 v2.13.6 h1:I0/xVRsKA/QDTT/bItjXaTli+xZUpRH5+LuongrcpGU= -github.com/roadrunner-server/status/v2 v2.13.6/go.mod h1:7oJyLSsiErisPWeAbzsbib34mxVwF7UvDAeneXIuZj8= -github.com/roadrunner-server/tcp/v2 v2.13.7 h1:vlTMT/Dioe6h0W6ibg5OZhkag8jwEGUvBWWw1oNqTlU= -github.com/roadrunner-server/tcp/v2 v2.13.7/go.mod h1:lIg9lgKZ0aq2hyOE9HNaT0UeGX2E3vrQgd1W2LQrPE0= +github.com/roadrunner-server/redis/v2 v2.15.6 h1:Rm+uufk16c+yqnSQSP8gCk1fTfKmTThLSSqBpCQ6CWU= +github.com/roadrunner-server/redis/v2 v2.15.6/go.mod h1:3Pa1TKKh+DW/aunn2jzRH/7OFm+2a7TcZ1Wt4eMBgUk= +github.com/roadrunner-server/reload/v2 v2.12.8 h1:ir7VMpBVmjNCBXW1CB6HO8AJs+2r8dAFJdjZ/i6lKME= +github.com/roadrunner-server/reload/v2 v2.12.8/go.mod h1:kjXqB4uqyw9zCrqAqPfY4773uH/noPN9AC1OSb0qb5c= +github.com/roadrunner-server/resetter/v2 v2.11.9 h1:Ugw6qY/M9tqQWs9hIVI48NujPC3lRV6zSKF1eUOXJRA= +github.com/roadrunner-server/resetter/v2 v2.11.9/go.mod h1:GHDyAJMjHz5l6Cqdk0yc6GDi91F0W11t83mrGNltjE4= +github.com/roadrunner-server/rpc/v2 v2.13.7 h1:P6oZpBK/au3uam0fuHndTuQYdJUiK6NTic6OVr5JNZI= +github.com/roadrunner-server/rpc/v2 v2.13.7/go.mod h1:FPh3NeZYoNu/9xd7WvyzxiSi/5DJ1WIVmCwYh7qK0fA= +github.com/roadrunner-server/sdk/v2 v2.18.0 h1:cPu3o8Z13NKFND3ybk6J4HAnSq4qYLkFT1T5CDd42Hs= +github.com/roadrunner-server/sdk/v2 v2.18.0/go.mod h1:u4QeEEr/Aa7ZamQw1duZSmsl3LMeuMIQKzdENqWEKLI= +github.com/roadrunner-server/send/v2 v2.12.5 h1:JDxGo929xkGZfAZ4EAQU3VaXGoYHM6JHoXWnNB0KdTU= +github.com/roadrunner-server/send/v2 v2.12.5/go.mod h1:FdqdTeHVpH7U+8TPQtxGr+QWCoE3uMwqdRqGweD7wYs= +github.com/roadrunner-server/server/v2 v2.14.8 h1:5ezs+kytvDp6VleYNBKRntNIoy5fVItQ90fQz3rB6/o= +github.com/roadrunner-server/server/v2 v2.14.8/go.mod h1:iS55gagD/x6bxs8d0bD9f0fuIykllo1cYHnzMaqSfqY= +github.com/roadrunner-server/service/v2 v2.15.2 h1:XX/xXy0AbysR6PrLx6mv5ijtVBn+FH41ifhWDL/8LxU= +github.com/roadrunner-server/service/v2 v2.15.2/go.mod h1:rU50K6q0qEDjI2U3zZ9Tv0Yl83eZbc/PAU/kyXMv3O4= +github.com/roadrunner-server/sqs/v2 v2.17.5 h1:yyy3xGBzI0DVN3/rYxF+RcDKWLgBRe80nNwTsv3gukU= +github.com/roadrunner-server/sqs/v2 v2.17.5/go.mod h1:hvZQS7+kfU7/Q65qw17F3wwdH0TL/xGyafPc2FMSUEo= +github.com/roadrunner-server/static/v2 v2.13.6 h1:SOIONB0yDF79kWxTdvHnO8lJ6HZkoZ1NoDbL6AjHPHw= +github.com/roadrunner-server/static/v2 v2.13.6/go.mod h1:An4Qd0sAU4z0pkDN67iCBUcR086H6oLijrQMbOpWTBo= +github.com/roadrunner-server/status/v2 v2.13.9 h1:sRGnSK4wqaV4B9hAzUygnu5N9yfgbQLoxA8qg1JGjb0= +github.com/roadrunner-server/status/v2 v2.13.9/go.mod h1:5mLzp8tYzesPTbYcn6SI+AC1CaQiefvVxfpydX6zTL8= +github.com/roadrunner-server/tcp/v2 v2.13.9 h1:IiPjfq7CdvVmHD1Gq/PmOYtwRqNX9fzLK4sugca6KEM= +github.com/roadrunner-server/tcp/v2 v2.13.9/go.mod h1:86o0hf9eQ+XO9xV8XPCZbpkB/VIh5qmrgWTFvDCgv8k= github.com/roadrunner-server/tcplisten v1.1.2 h1:GBjKlSEbA67UB2y83rFWsQKqMQGyalhTN9Q9HCIMBC0= github.com/roadrunner-server/tcplisten v1.1.2/go.mod h1:wN2/X46Vo60sC9L5Bf/eC8kL+X3//7KIFmANEXZaLsg= -github.com/roadrunner-server/websockets/v2 v2.14.6 h1:OPq8Op9GC5XgQme9HbQSpVA532Do1qIry8q+CW5/Imk= -github.com/roadrunner-server/websockets/v2 v2.14.6/go.mod h1:GM3D/mHTKahCxsctXk2EBTltVktpnkNvXi0aorDv5/k= +github.com/roadrunner-server/websockets/v2 v2.14.8 h1:nEPRlrpRz7YC7uk4gL5dlOZj+HPu9NXJzWTXvZiFZeE= +github.com/roadrunner-server/websockets/v2 v2.14.8/go.mod h1:e6+eaXj4L7LhDCJecrCXu8Aq8reH1RyzVgKEVwdMrDE= github.com/robfig/cron v1.2.0 h1:ZjScXvvxeQ63Dbyxy76Fj3AT3Ut0aKsyd2/tl3DTMuQ= github.com/robfig/cron v1.2.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= @@ -986,8 +986,8 @@ google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220602131408-e326c6e8e9c8/go.mod h1:yKyY4AMRwFiC8yMMNaMi+RkCnjZJt9LoWuvhXjMs+To= -google.golang.org/genproto v0.0.0-20220715211116-798f69b842b9 h1:1aEQRgZ4Gks2SRAkLzIPpIszRazwVfjSFe1cKc+e0Jg= -google.golang.org/genproto v0.0.0-20220715211116-798f69b842b9/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220718134204-073382fd740c h1:xDUAhRezFnKF6wopxkOfdWYvz2XCiRQzndyDdpwFgbc= +google.golang.org/genproto v0.0.0-20220718134204-073382fd740c/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= diff --git a/internal/debug/server.go b/internal/debug/server.go index c07a4549..6a758055 100644 --- a/internal/debug/server.go +++ b/internal/debug/server.go @@ -4,6 +4,7 @@ import ( "context" "net/http" "net/http/pprof" + "time" ) // Server is a HTTP server for debugging. @@ -21,7 +22,10 @@ func NewServer() Server { mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) mux.HandleFunc("/debug/pprof/trace", pprof.Trace) - return Server{srv: &http.Server{Handler: mux}} + return Server{srv: &http.Server{ + ReadHeaderTimeout: time.Minute * 10, + Handler: mux, + }} } // Start debug server. diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json index bb8ae976..fda79cc4 100644 --- a/schemas/config/2.0.schema.json +++ b/schemas/config/2.0.schema.json @@ -1425,6 +1425,11 @@ "type": "string" } }, + "enable_reflection_server": { + "type": "boolean", + "description": "[SINCE 2.11]. The reflection server might be activated to use `grpc_cli`, `grpc-ui`, `grpc-curl`, or similar tools to intercept grpc payloads", + "default": false + }, "tls": { "description": "GRPC TLS configuration", "type": "object", |