Skip to content

Commit

Permalink
Hide debug endpoints behind config flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Apr 20, 2018
1 parent 0480280 commit bdb24ed
Show file tree
Hide file tree
Showing 44 changed files with 84 additions and 37 deletions.
3 changes: 2 additions & 1 deletion config/amazon_s3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"amazon_s3": {
Expand Down
1 change: 1 addition & 0 deletions config/amazon_s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
amazon_s3:
bucket: ""
Expand Down
3 changes: 2 additions & 1 deletion config/amazon_sqs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"amazon_sqs": {
Expand Down
1 change: 1 addition & 0 deletions config/amazon_sqs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
amazon_sqs:
credentials:
Expand Down
3 changes: 2 additions & 1 deletion config/amqp.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"amqp": {
Expand Down
1 change: 1 addition & 0 deletions config/amqp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
amqp:
consumer_tag: benthos-consumer
Expand Down
3 changes: 2 additions & 1 deletion config/broker.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"broker": {
Expand Down
1 change: 1 addition & 0 deletions config/broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
broker:
copies: 1
Expand Down
3 changes: 2 additions & 1 deletion config/dynamic.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"dynamic": {
Expand Down
1 change: 1 addition & 0 deletions config/dynamic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
dynamic:
inputs: {}
Expand Down
3 changes: 2 additions & 1 deletion config/elasticsearch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"stdin": {
Expand Down
1 change: 1 addition & 0 deletions config/elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
stdin:
custom_delimiter: ""
Expand Down
1 change: 1 addition & 0 deletions config/everything.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
type: stdin
amazon_s3:
Expand Down
3 changes: 2 additions & 1 deletion config/file.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"file": {
Expand Down
1 change: 1 addition & 0 deletions config/file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
file:
custom_delimiter: ""
Expand Down
3 changes: 2 additions & 1 deletion config/files.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"stdin": {
Expand Down
1 change: 1 addition & 0 deletions config/files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
stdin:
custom_delimiter: ""
Expand Down
3 changes: 2 additions & 1 deletion config/http_client.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"http_client": {
Expand Down
1 change: 1 addition & 0 deletions config/http_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
http_client:
basic_auth:
Expand Down
3 changes: 2 additions & 1 deletion config/http_server.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"http_server": {
Expand Down
1 change: 1 addition & 0 deletions config/http_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
http_server:
address: ""
Expand Down
3 changes: 2 additions & 1 deletion config/kafka.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"kafka": {
Expand Down
1 change: 1 addition & 0 deletions config/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
kafka:
addresses:
Expand Down
3 changes: 2 additions & 1 deletion config/kafka_balanced.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"kafka_balanced": {
Expand Down
1 change: 1 addition & 0 deletions config/kafka_balanced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
kafka_balanced:
addresses:
Expand Down
3 changes: 2 additions & 1 deletion config/mqtt.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"mqtt": {
Expand Down
1 change: 1 addition & 0 deletions config/mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
mqtt:
client_id: benthos_input
Expand Down
3 changes: 2 additions & 1 deletion config/nats.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"nats": {
Expand Down
1 change: 1 addition & 0 deletions config/nats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
nats:
subject: benthos_messages
Expand Down
3 changes: 2 additions & 1 deletion config/nats_stream.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"nats_stream": {
Expand Down
1 change: 1 addition & 0 deletions config/nats_stream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
nats_stream:
client_id: benthos_client
Expand Down
3 changes: 2 additions & 1 deletion config/nsq.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"nsq": {
Expand Down
1 change: 1 addition & 0 deletions config/nsq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
nsq:
channel: benthos_stream
Expand Down
3 changes: 2 additions & 1 deletion config/redis_list.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"redis_list": {
Expand Down
1 change: 1 addition & 0 deletions config/redis_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
redis_list:
key: benthos_list
Expand Down
3 changes: 2 additions & 1 deletion config/redis_pubsub.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"redis_pubsub": {
Expand Down
1 change: 1 addition & 0 deletions config/redis_pubsub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
redis_pubsub:
channels:
Expand Down
3 changes: 2 additions & 1 deletion config/scalability_protocols.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"scalability_protocols": {
Expand Down
1 change: 1 addition & 0 deletions config/scalability_protocols.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
scalability_protocols:
bind: true
Expand Down
3 changes: 2 additions & 1 deletion config/stdin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"stdin": {
Expand Down
1 change: 1 addition & 0 deletions config/stdin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
stdin:
custom_delimiter: ""
Expand Down
3 changes: 2 additions & 1 deletion config/stdout.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"http": {
"address": "0.0.0.0:4195",
"read_timeout_ms": 5000
"read_timeout_ms": 5000,
"debug_endpoints": false
},
"input": {
"stdin": {
Expand Down
1 change: 1 addition & 0 deletions config/stdout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http:
address: 0.0.0.0:4195
read_timeout_ms: 5000
debug_endpoints: false
input:
stdin:
custom_delimiter: ""
Expand Down
Loading

0 comments on commit bdb24ed

Please sign in to comment.