Skip to content

Commit 06ee2bf

Browse files
authored
Merge pull request #336 from Accenture/278-remove-deprecations
278 - removed deprecated apis env vars and related code/docs
2 parents 19e21db + bbcf06d commit 06ee2bf

File tree

73 files changed

+7867
-7451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+7867
-7451
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242
4343
<!-- ### Deprecated -->
4444
45-
<!-- ### Removed -->
45+
### Removed
46+
47+
- Removed deprecated or unused code/functionality, these are **breaking changes** [#278](https://github.com/Accenture/reactive-interaction-gateway/issues/278):
48+
- Removed deprecated internal API `/v1`.
49+
- Removed deprecated environment variables: `PROXY_KAFKA_REQUEST_AVRO`, `PROXY_KAFKA_REQUEST_TOPIC`, `PROXY_KINESIS_REQUEST_STREAM`. This means that you can set topic and schema for publishing to event streams **only** in the proxy config as described in the [docs](https://accenture.github.io/reactive-interaction-gateway/docs/api-gateway.html#publishing-to-event-streams).
50+
- Removed experimental feature Firehose (forwarding events to an HTTP endpoint).
51+
- Removed `path` field in proxy configuration. Reason is that the `path_regex` field is already covering `path` functionality and thus it doesn't make sense to have both of them. Should cause less confusion and improve maintainability.
52+
- **Migration:**
53+
- `"path": "/foo"` -> `"path_regex": "/foo"`
54+
- `"path": "/foo/{id}"` -> `"path_regex": "/foo/(.+)"` - or pretty much whatever regex you need (e.g. UUID pattern)
4655

4756
<!-- ### Security -->
4857

config/config.exs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,6 @@ config :rig, Rig.EventStream.KafkaToFilter,
4141
sasl: {:system, "KAFKA_SASL", nil},
4242
group_id: {:system, "KAFKATOFILTER_KAFKA_GROUP_ID", "rig-kafka-to-filter"}
4343

44-
config :rig, Rig.EventStream.KafkaToHttp,
45-
# The list of brokers, given by a comma-separated list of host:port items:
46-
brokers: {:system, :list, "KAFKA_BROKERS", []},
47-
serializer: {:system, "KAFKA_SERIALIZER", nil},
48-
schema_registry_host: {:system, "KAFKA_SCHEMA_REGISTRY_HOST", nil},
49-
# The list of topics to consume messages from:
50-
consumer_topics: {:system, :list, "FIREHOSE_KAFKA_SOURCE_TOPICS", ["rig-firehose"]},
51-
# If KAFKA_SSL_ENABLED=0, the KAFKA_SSL_* settings are ignored; otherwise, they're required.
52-
ssl_enabled?: {:system, :boolean, "KAFKA_SSL_ENABLED", false},
53-
# If use_enabled?, the following paths are expected (relative to the `priv` directory):
54-
ssl_ca_certfile: {:system, "KAFKA_SSL_CA_CERTFILE", "ca.crt.pem"},
55-
ssl_certfile: {:system, "KAFKA_SSL_CERTFILE", "client.crt.pem"},
56-
ssl_keyfile: {:system, "KAFKA_SSL_KEYFILE", "client.key.pem"},
57-
# In case the private key is password protected:
58-
ssl_keyfile_pass: {:system, "KAFKA_SSL_KEYFILE_PASS", ""},
59-
# Credentials for SASL/Plain authentication. Example: "plain:myusername:mypassword"
60-
sasl: {:system, "KAFKA_SASL", nil},
61-
# HTTP endpoints to invoke for each Kafka message:
62-
targets: {:system, :list, "FIREHOSE_KAFKA_HTTP_TARGETS", []},
63-
group_id: {:system, "KAFKATOHTTP_KAFKA_GROUP_ID", "rig-kafka-to-http"}
64-
6544
config :rig, Rig.EventStream.NatsToFilter,
6645
# The list of servers, given by a comma-separated list of host:port items:
6746
servers: {:system, :list, "NATS_SERVERS", []},

config/rig_inbound_gateway/config.exs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ config :mime, :types, %{
7878

7979
config :rig, RigInboundGateway.Proxy, config_path_or_json: {:system, "PROXY_CONFIG_FILE", nil}
8080

81-
config :rig, RigInboundGateway.ApiProxy.Validations,
82-
kinesis_request_stream: {:system, "PROXY_KINESIS_REQUEST_STREAM", nil},
83-
kafka_request_topic: {:system, "PROXY_KAFKA_REQUEST_TOPIC", ""},
84-
kafka_request_avro: {:system, "PROXY_KAFKA_REQUEST_AVRO", ""},
85-
system: System
81+
config :rig, RigInboundGateway.ApiProxy.Validations, system: System
8682

8783
config :rig, RigInboundGateway.ApiProxy.Base,
8884
recv_timeout: {:system, :integer, "PROXY_RECV_TIMEOUT", 5_000}
@@ -120,14 +116,11 @@ config :rig, RigInboundGateway.ApiProxy.Handler.Kafka,
120116
ssl_keyfile_pass: {:system, "KAFKA_SSL_KEYFILE_PASS", ""},
121117
# Credentials for SASL/Plain authentication. Example: "plain:myusername:mypassword"
122118
sasl: {:system, "KAFKA_SASL", nil},
123-
request_topic: {:system, "PROXY_KAFKA_REQUEST_TOPIC", ""},
124-
request_schema: {:system, "PROXY_KAFKA_REQUEST_AVRO", ""},
125119
cors: {:system, "CORS", "*"},
126120
response_timeout: {:system, :integer, "PROXY_KAFKA_RESPONSE_TIMEOUT", 5_000},
127121
group_id: {:system, "PROXY_KAFKA_RESPONSE_KAFKA_GROUP_ID", "rig-proxy-response"}
128122

129123
config :rig, RigInboundGateway.ApiProxy.Handler.Kinesis,
130-
kinesis_request_stream: {:system, "PROXY_KINESIS_REQUEST_STREAM", nil},
131124
kinesis_request_region: {:system, "PROXY_KINESIS_REQUEST_REGION", "eu-west-1"},
132125
response_timeout: {:system, :integer, "PROXY_KINESIS_RESPONSE_TIMEOUT", 5_000},
133126
cors: {:system, "CORS", "*"},

config/rig_inbound_gateway/test.exs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ config :rig, RigInboundGateway.Kafka, log_topic: "rig"
1313
config :rig, RigInboundGateway.Proxy,
1414
config_path_or_json: {:system, "PROXY_CONFIG_FILE", "proxy/proxy.test.inbound.json"}
1515

16-
config :rig, RigInboundGateway.ApiProxy.Validations,
17-
kinesis_request_stream: {:system, "PROXY_KINESIS_REQUEST_STREAM", "test-request-stream"},
18-
kafka_request_topic: {:system, "PROXY_KAFKA_REQUEST_TOPIC", "test-request-topic"},
19-
kafka_request_avro: {:system, "PROXY_KAFKA_REQUEST_AVRO", ""},
20-
system: RigInboundGateway.SystemMock
16+
config :rig, RigInboundGateway.ApiProxy.Validations, system: RigInboundGateway.SystemMock
2117

2218
config :fake_server, :port_range, Enum.to_list(55_000..65_000) ++ [7070, 8081]

config/rig_outbound_gateway/config.exs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,4 @@ config :rig, RigOutboundGateway.Kinesis.JavaClient,
1717
kinesis_endpoint: {:system, "KINESIS_ENDPOINT", ""},
1818
dynamodb_endpoint: {:system, "KINESIS_DYNAMODB_ENDPOINT", ""}
1919

20-
config :rig, RigOutboundGateway.KinesisFirehose.JavaClient,
21-
enabled?: {:system, :boolean, "KINESIS_ENABLED", false},
22-
client_jar:
23-
{:system, "KINESIS_CLIENT_JAR", "./kinesis-client/target/rig-kinesis-client-1.0-SNAPSHOT.jar"},
24-
# will default to the one from the Erlang installation:
25-
otp_jar: {:system, "KINESIS_OTP_JAR", nil},
26-
log_level: {:system, "KINESIS_LOG_LEVEL", "INFO"},
27-
kinesis_app_name:
28-
{:system, "FIREHOSE_KINESIS_APP_NAME", "Reactive-Interaction-Gateway-Firehose"},
29-
kinesis_aws_region: {:system, "KINESIS_AWS_REGION", "eu-west-1"},
30-
kinesis_stream: {:system, "FIREHOSE_KINESIS_STREAM", "RIG-firehose"},
31-
kinesis_endpoint: {:system, "KINESIS_ENDPOINT", ""},
32-
dynamodb_endpoint: {:system, "KINESIS_DYNAMODB_ENDPOINT", ""},
33-
targets: {:system, :list, "FIREHOSE_KINESIS_HTTP_TARGETS", ["http://localhost:4040/todo"]}
34-
3520
config :porcelain, driver: Porcelain.Driver.Basic

deployment/kubectl/rig.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ spec:
142142
## Kafka group ID used for forwarding events according to subscriptions over SSE and WS connections. The default should be fine.
143143
# - name: KAFKATOFILTER_KAFKA_GROUP_ID
144144
# value: "rig-kafka-to-filter"
145-
## Kafka group ID used for forwarding all events over a HTTP connection. The default should be fine.
146-
# - name: KAFKATOHTTP_KAFKA_GROUP_ID
147-
# value: "rig-kafka-to-http"
148145
# - name: KAFKA_RESTART_DELAY_MS
149146
# value: "10000"
150147
## Host for Kafka Schema Registry
@@ -199,8 +196,6 @@ spec:
199196
# - name: PROXY_KAFKA_RESPONSE_TIMEOUT
200197
# value: "5000"
201198
## Proxy Kinesis
202-
# - name: PROXY_KINESIS_REQUEST_STREAM
203-
# value: "rig-proxy-request"
204199
# - name: PROXY_KINESIS_REQUEST_REGION
205200
# value: "eu-west-1"
206201
# - name: PROXY_KINESIS_RESPONSE_TIMEOUT

deployment/reactive-interaction-gateway-helm-v2/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: https://github.com/Accenture/reactive-interaction-gateway/blob/master/logo
66

77
# This is the chart version. This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
9-
version: 1.0.1
9+
version: 2.0.0
1010

1111
# This is the version number of the application being deployed. This version number should be
1212
# incremented each time you make changes to the application.

deployment/reactive-interaction-gateway-helm-v2/values.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ deployment:
5252
# KAFKA_SOURCE_TOPICS: rig
5353
## Kafka group ID used for forwarding events according to subscriptions over SSE and WS connections. The default should be fine.
5454
# KAFKATOFILTER_KAFKA_GROUP_ID: rig-kafka-to-filter
55-
## Kafka group ID used for forwarding all events over a HTTP connection. The default should be fine.
56-
# KAFKATOHTTP_KAFKA_GROUP_ID: rig-kafka-to-http
5755
# KAFKA_RESTART_DELAY_MS: 10000
5856
## Host for Kafka Schema Registry
5957
# KAFKA_SCHEMA_REGISTRY_HOST: schema-registry:8081
@@ -92,7 +90,6 @@ deployment:
9290
# PROXY_KAFKA_RESPONSE_TIMEOUT: 5000
9391

9492
## Proxy Kinesis
95-
# PROXY_KINESIS_REQUEST_STREAM: rig-proxy-request
9693
# PROXY_KINESIS_REQUEST_REGION: eu-west-1
9794
# PROXY_KINESIS_RESPONSE_TIMEOUT: 5000
9895

deployment/reactive-interaction-gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: https://github.com/Accenture/reactive-interaction-gateway/blob/master/logo
66

77
# This is the chart version. This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
9-
version: 1.0.1
9+
version: 2.0.0
1010

1111
# This is the version number of the application being deployed. This version number should be
1212
# incremented each time you make changes to the application.

deployment/reactive-interaction-gateway/values.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ deployment:
5252
# KAFKA_SOURCE_TOPICS: rig
5353
## Kafka group ID used for forwarding events according to subscriptions over SSE and WS connections. The default should be fine.
5454
# KAFKATOFILTER_KAFKA_GROUP_ID: rig-kafka-to-filter
55-
## Kafka group ID used for forwarding all events over a HTTP connection. The default should be fine.
56-
# KAFKATOHTTP_KAFKA_GROUP_ID: rig-kafka-to-http
5755
# KAFKA_RESTART_DELAY_MS: 10000
5856
## Host for Kafka Schema Registry
5957
# KAFKA_SCHEMA_REGISTRY_HOST: schema-registry:8081
@@ -92,7 +90,6 @@ deployment:
9290
# PROXY_KAFKA_RESPONSE_TIMEOUT: 5000
9391

9492
## Proxy Kinesis
95-
# PROXY_KINESIS_REQUEST_STREAM: rig-proxy-request
9693
# PROXY_KINESIS_REQUEST_REGION: eu-west-1
9794
# PROXY_KINESIS_RESPONSE_TIMEOUT: 5000
9895

0 commit comments

Comments
 (0)