Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
99d0d14
Lint tools.
elland Jun 8, 2022
8244f40
r/return/pure ;)
elland Jun 8, 2022
510c224
Make it clearer this runs on the client
arthurwolf Jun 8, 2022
6a59db0
docs/src/how-to/install/dependencies.rst: require Docker >= 20.10.14
flokli Jun 8, 2022
8eb04e7
charts/nginz: Forward `/i/legalhold/whitelisted-teams` to galley inst…
akshaymankar Jun 8, 2022
3f2d37f
Merge pull request #2462 from wireapp/docker-install-instructions
flokli Jun 8, 2022
c753f7c
Merge pull request #2459 from wireapp/lint-tools
elland Jun 8, 2022
8c3dfd1
Reverted back to sequence+map to avoid GHC issue.
elland Jun 8, 2022
289df0d
Merge pull request #2465 from wireapp/sequence-map-to-avoid-ghc-bug
elland Jun 9, 2022
06ec735
Linted libs (except hscim and wire-api).
elland Jun 8, 2022
c061d63
s/return/pure
elland Jun 8, 2022
89ece50
Merge pull request #2467 from wireapp/master
battermann Jun 9, 2022
e57adac
Fixed formatting after rebase.
elland Jun 9, 2022
a1a4842
Linted remaining services.
elland Jun 7, 2022
488bf54
Replace return with pure.
elland Jun 7, 2022
a557d17
Merge pull request #2458 from wireapp/lint-remainder-services
elland Jun 9, 2022
df13855
Fix: saml-auto-provisioned users don't get to change email address. (…
fisx Jun 9, 2022
e067d04
charts/nginz: Forward /i/users/:uid/features/:feature to brig (#2468)
smatting Jun 9, 2022
52d8a2e
Revert "Fix: saml-auto-provisioned users don't get to change email ad…
battermann Jun 9, 2022
4ff579b
fix: add missing newline in code-block (#2470)
comawill Jun 9, 2022
46d5edb
charts/*: drop wireService label, use app= instead, add servicemonito…
flokli Jun 10, 2022
1ae174d
fix(docs): use if-block to support older version of sphinx when addin…
comawill Jun 10, 2022
7d7b727
changelog.d/wire-service-label: document need for StatefulSet/Deploym…
flokli Jun 10, 2022
e99f684
Add AWS security token metrics to brig (#2473)
smatting Jun 10, 2022
598c3c7
Merge pull request #2463 from wireapp/lint-libs
elland Jun 11, 2022
e7f903a
Propagate MLS messages to remotes (#2415)
pcapriotti Jun 13, 2022
c53d9fd
chore: [charts] Update webapp version (#2475)
zebot Jun 13, 2022
3277513
//services/nginz/third_party/nginx-module-vts: update
flokli Jun 13, 2022
4da2458
nginx-ingress-services: unify nginz{-http,-tcp} services
flokli Jun 13, 2022
3e5aa1f
Sqservices 759 backend splash screen store image (#2474)
battermann Jun 14, 2022
aae7648
charts/nginz: add servicemonitor support
flokli Jun 13, 2022
2516550
charts/nginz: move nginz service into nginz chart
flokli Jun 13, 2022
2801cb7
changelog: add nginz release notes.
flokli Jun 13, 2022
4c22cca
Merge pull request #2476 from wireapp/bump-nginz-vts
flokli Jun 14, 2022
0ae3635
chore: [charts] Update team-settings version (#2477)
zebot Jun 14, 2022
ebee2a6
Add changelog for Release 2022-06-14
zebot Jun 14, 2022
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
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
# [2022-06-14] (Chart Release 4.14.0)

## Release notes


* The `nginz{-tcp,-http}` services have been unified into a `nginz` service, and
moved into the nginz chart.

The nginz-ingress-services chart simply targets the `nginz` service, so there's
no need to set matching `service.nginz.external{Http,Tcp}Port` inside the
`nginx-ingress-services` chart anymore.

The `config.http.httpPort` and `config.ws.wsPort` values in the `nginz` chart
still configure the ports the `nginz` service is listening on.

The `nginz` chart also gained support for `metrics.serviceMonitor.enabled`,
creating a `ServiceMonitor` resource to scrape metrics, like for other wire
services.

(#2476)

* Upgrade team-settings version to 4.10.0-v0.29.7-0-3be8ca3 (#2180)

* Upgrade webapp version to 2022-06-13-production.0-v0.29.7-0-2819b90 (#2302)

* In the helm charts, the `wireService` label has been removed.

In some cases, we were already setting the `app` label too.

Now we consistently use the `app` label to label different wire services.

The `wireService` label was also used in the `spec.selector.matchLabels` field
on existing `Deployment` / `StatefulSet` resources.
As these fields being immutable, changing them isn't possible without recreation.

If you encounter an issue like

> field is immutable && cannot patch "*" with kind *

you need to manually delete these StatefulSet and Deployment resources, and apply helm again, which will recreate them.

This means downtime, so plan a maintenance window for it.

The `wire-server-metrics` chart was previously running some custom
configuration to automatically add all payloads with a `wireService` label into
metrics scraping.

With the removal of the `wireService` label, this custom configuration has been
removed.

Instead, all services that expose metrics will now create `ServiceMonitor`
resources, if their helm chart is applied with `metrics.serviceMonitor.enable`
set to true.

This prevents scraping agents from querying services that don't expose metrics
at /i/metrics unnecessarily.

Additionally, makes it easier to run other metric scraping operators, like
`grafana-agent-operator`, without the need to also create some custom
`wireService` label config there.

Generally, if you have any monitoring solution installed in your cluster that
uses the Prometheus CRDs, set `metrics.serviceMonitor.enable` for the following charts:

- brig
- cannon
- cargohold
- galley
- gundeck
- proxy
- spar (#2413)


## Features


* MLS implementation progress:
- Remote users can be added to MLS conversations
- MLS messages (both handshake and application) are now propagates to remote
conversation participants. (#2415)

* `GET teams/:tid` response now contains an optional field `splash_screen` which contains the asset key of the team's splash screen. `PUT teams/:tid` now supports updating the splash screen asset key. (#2474)


## Internal changes


* Forward /i/users/:uid/features/:feature to brig (#2468)

* charts/nginz: Forward `/i/legalhold/whitelisted-teams` to galley instead of brig (#2460)

* Add AWS security token metrics to brig (#2473)


# [2022-06-08] (Chart Release 4.13.0)

## Release notes
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ kube-integration-teardown-sans-federation:

.PHONY: kube-restart-%
kube-restart-%:
kubectl delete pod -n $(NAMESPACE) -l wireService=$(*)
kubectl delete pod -n $(NAMESPACE)-fed2 -l wireService=$(*)
kubectl delete pod -n $(NAMESPACE) -l app=$(*)
kubectl delete pod -n $(NAMESPACE)-fed2 -l app=$(*)

.PHONY: latest-tag
latest-tag:
Expand Down Expand Up @@ -522,8 +522,8 @@ kind-restart-nginx-ingress: .local/kind-kubeconfig

kind-restart-%: .local/kind-kubeconfig
export KUBECONFIG=$(CURDIR)/.local/kind-kubeconfig && \
kubectl delete pod -n $(NAMESPACE) -l wireService=$(*) && \
kubectl delete pod -n $(NAMESPACE)-fed2 -l wireService=$(*)
kubectl delete pod -n $(NAMESPACE) -l app=$(*) && \
kubectl delete pod -n $(NAMESPACE)-fed2 -l app=$(*)

# This target can be used to template a helm chart with values filled in from
# hack/helm_vars (what CI uses) as overrrides, if available. This allows debugging helm
Expand Down
2 changes: 2 additions & 0 deletions cassandra-schema.cql
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ CREATE TABLE galley_test.member_remote_user (
user_remote_domain text,
user_remote_id uuid,
conversation_role text,
mls_clients set<text>,
PRIMARY KEY (conv, user_remote_domain, user_remote_id)
) WITH CLUSTERING ORDER BY (user_remote_domain ASC, user_remote_id ASC)
AND bloom_filter_fp_chance = 0.1
Expand Down Expand Up @@ -480,6 +481,7 @@ CREATE TABLE galley_test.team (
icon_key text,
name text,
search_visibility int,
splash_screen text,
status int
) WITH bloom_filter_fp_chance = 0.1
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
Expand Down
4 changes: 1 addition & 3 deletions charts/account-pages/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: account-pages
labels:
wireService: account-pages
app: account-pages
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -16,12 +16,10 @@ spec:
maxSurge: {{ .Values.replicaCount | mul 2 }}
selector:
matchLabels:
wireService: account-pages
app: account-pages
template:
metadata:
labels:
wireService: account-pages
app: account-pages
release: {{ .Release.Name }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
type: LoadBalancer
selector:
wireService: account-pages
app: account-pages
ports:
- name: https
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-ingress/templates/ELB_nginz_https.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
spec:
type: LoadBalancer
selector:
wireService: nginz
app: nginz
ports:
- name: https
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-ingress/templates/ELB_nginz_wss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
type: LoadBalancer
selector:
wireService: nginz
app: nginz
ports:
- name: wss
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
type: LoadBalancer
selector:
wireService: team-settings
app: team-settings
ports:
- name: https
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-ingress/templates/ELB_webapp_https.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
spec:
type: LoadBalancer
selector:
wireService: webapp
app: webapp
ports:
- name: https
protocol: TCP
Expand Down
6 changes: 3 additions & 3 deletions charts/backoffice/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: backoffice
labels:
wireService: backoffice
app: backoffice
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -16,11 +16,11 @@ spec:
maxSurge: {{ .Values.replicaCount }}
selector:
matchLabels:
wireService: backoffice
app: backoffice
template:
metadata:
labels:
wireService: backoffice
app: backoffice
release: {{ .Release.Name }}
annotations:
# An annotation of the configmap checksum ensures changes to the configmap cause a redeployment upon `helm upgrade`
Expand Down
4 changes: 2 additions & 2 deletions charts/backoffice/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: backoffice
labels:
wireService: backoffice
app: backoffice
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -14,5 +14,5 @@ spec:
port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
selector:
wireService: backoffice
app: backoffice
release: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/brig/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: "brig"
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
6 changes: 3 additions & 3 deletions charts/brig/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: brig
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -16,11 +16,11 @@ spec:
maxSurge: {{ .Values.replicaCount }}
selector:
matchLabels:
wireService: brig
app: brig
template:
metadata:
labels:
wireService: brig
app: brig
release: {{ .Release.Name }}
annotations:
# An annotation of the configmap checksum ensures changes to the configmap cause a redeployment upon `helm upgrade`
Expand Down
2 changes: 1 addition & 1 deletion charts/brig/templates/geoip-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Secret
metadata:
name: brig-geoip
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
2 changes: 1 addition & 1 deletion charts/brig/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Secret
metadata:
name: brig
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
4 changes: 2 additions & 2 deletions charts/brig/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: brig
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -14,5 +14,5 @@ spec:
port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
selector:
wireService: brig
app: brig
release: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/brig/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount.name }}
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
19 changes: 19 additions & 0 deletions charts/brig/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: brig
labels:
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
endpoints:
- port: http
path: /i/metrics
selector:
matchLabels:
app: brig
release: {{ .Release.Name }}
{{- end }}
6 changes: 3 additions & 3 deletions charts/brig/templates/tests/brig-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: "brig-integration"
labels:
wireService: brig-integration
app: brig-integration
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -13,7 +13,7 @@ spec:
- port: 9000
targetPort: 9000
selector:
wireService: brig-integration
app: brig-integration
release: {{ .Release.Name }}
---
apiVersion: v1
Expand All @@ -23,7 +23,7 @@ metadata:
annotations:
"helm.sh/hook": test-success
labels:
wireService: brig-integration
app: brig-integration
release: {{ .Release.Name }}
spec:
volumes:
Expand Down
2 changes: 1 addition & 1 deletion charts/brig/templates/tests/nginz-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ spec:
- port: 8080
targetPort: 8080
selector:
wireService: nginz
app: nginz
2 changes: 1 addition & 1 deletion charts/brig/templates/turnconfigmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ConfigMap
metadata:
name: "turn"
labels:
wireService: brig
app: brig
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
3 changes: 3 additions & 0 deletions charts/brig/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ resources:
limits:
memory: "512Mi"
cpu: "500m"
metrics:
serviceMonitor:
enable: false
config:
logLevel: Info
logFormat: JSON
Expand Down
Loading