Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix client ip in envoy logs #258

Merged
merged 2 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 0.19.5
VERSION ?= 0.19.6

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand Down
8 changes: 4 additions & 4 deletions bundle/manifests/saas-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -627,15 +627,15 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/3scale/saas-operator
createdAt: "2023-04-19T10:33:46Z"
createdAt: "2023-04-28T10:01:10Z"
description: |-
The 3scale SaaS Operator creates and maintains a SaaS-ready deployment
of the Red Hat 3scale API Management on OpenShift.
operators.operatorframework.io/builder: operator-sdk-v1.27.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/3scale/saas-operator
support: Red Hat
name: saas-operator.v0.19.5
name: saas-operator.v0.19.6
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -4339,7 +4339,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: quay.io/3scale/saas-operator:v0.19.5
image: quay.io/3scale/saas-operator:v0.19.6
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -4853,4 +4853,4 @@ spec:
provider:
name: Red Hat
url: https://www.3scale.net/
version: 0.19.5
version: 0.19.6
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/3scale/saas-operator
newTag: v0.19.5
newTag: v0.19.6
20 changes: 10 additions & 10 deletions pkg/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/resource_builders/envoyconfig/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func TestNew(t *testing.T) {
authority: '%REQ(:AUTHORITY)%'
bytes_received: '%BYTES_RECEIVED%'
bytes_sent: '%BYTES_SENT%'
client_ip: '%REQ(X-ENVOY-EXTERNAL-ADDRESS)%'
client_ip: '%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%'
downstream_tls_cipher: '%DOWNSTREAM_TLS_CIPHER%'
downstream_tls_version: '%DOWNSTREAM_TLS_VERSION%'
duration: '%DURATION%'
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource_builders/envoyconfig/templates/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func AccessLogConfig_v1(name string, tls bool) []*envoy_config_accesslog_v3.Acce
"upstream_cluster": structpb.NewStringValue("%UPSTREAM_CLUSTER%"),
"upstream_service_time": structpb.NewStringValue("%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%"),
"user_agent": structpb.NewStringValue("%REQ(USER-AGENT)%"),
"client_ip": structpb.NewStringValue("%REQ(X-ENVOY-EXTERNAL-ADDRESS)%"),
"client_ip": structpb.NewStringValue("%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"),
}
if tls {
m["downstream_tls_cipher"] = structpb.NewStringValue("%DOWNSTREAM_TLS_CIPHER%")
Expand Down
4 changes: 2 additions & 2 deletions pkg/resource_builders/envoyconfig/templates/listeners_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestListenerHTTP_v1(t *testing.T) {
authority: '%REQ(:AUTHORITY)%'
bytes_received: '%BYTES_RECEIVED%'
bytes_sent: '%BYTES_SENT%'
client_ip: '%REQ(X-ENVOY-EXTERNAL-ADDRESS)%'
client_ip: '%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%'
downstream_tls_cipher: '%DOWNSTREAM_TLS_CIPHER%'
downstream_tls_version: '%DOWNSTREAM_TLS_VERSION%'
duration: '%DURATION%'
Expand Down Expand Up @@ -170,7 +170,7 @@ func TestListenerHTTP_v1(t *testing.T) {
authority: '%REQ(:AUTHORITY)%'
bytes_received: '%BYTES_RECEIVED%'
bytes_sent: '%BYTES_SENT%'
client_ip: '%REQ(X-ENVOY-EXTERNAL-ADDRESS)%'
client_ip: '%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%'
duration: '%DURATION%'
listener: test
method: '%REQ(:METHOD)%'
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version

const (
version string = "v0.19.5"
version string = "v0.19.6"
)

// Current returns the current marin3r operator version
Expand Down