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

WPB-15480: Import SFTD-Disco tool into this repo #14

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lwille
Copy link

@lwille lwille commented Jan 28, 2025

Changes

  • updated base image to fix CVEs
  • update Helm chart to use most recent image

PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

  • The last release of the sftd-disco sidecar Docker image was in 2019, and it has not been updated since then. Because of this, the most recent image is riddled with CVEs.
  • The sftd-disco sidecar's Dockerfile, README and Makefile were previously contained in the wire-server repo, to which it is unrelated.
    • The only usage of sftd-disco is in the wire-avs-service Helm chart, which is contained in this repo.

Solutions


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

jschaul and others added 3 commits January 4, 2022 20:38
…ftd_disco sidecar process. (#2019)

Related to https://wearezeta.atlassian.net/browse/FS-266.

Implements querying the list of all SFT servers from the sftd's sidecar nginx pod. This is a different take on the above issue and if this list provided by sft servers is made use of; then that makes some of the work introduced in #2012 #2014 #2015 obsolete (sorry 😟 ). 

From brig, using the url configured in `setSftStaticUrl`, and calling `/sft_servers_all.json` on that URL, this PR provides a list of all SFT servers available. The list is computed on the SFTD chart itself (using a sftd_disco sidecar container). This has the advantage of allowing brig to be hosted on a separate kubernetes cluster to sftd, and moves the business logic of knowing sftd servers to sftd itself.

From a brig pod on a test cluster:

```
 # cat /etc/wire/brig/conf/brig.yaml | grep sft
  setSftStaticUrl: https://sftd.a.adhoc-testing.wire.link:443
/ # curl -ks https://sftd.a.adhoc-testing.wire.link:443/sft_servers_all.json
{
  "sft_servers_all": [
    "https://sftd.a.adhoc-testing.wire.link/sfts/wire-server-a-sftd-0"
  ]
}
```

Co-authored-by: Marko Dimjašević <[email protected]>
@lwille lwille requested a review from a team as a code owner January 28, 2025 11:56
@echoes-hq echoes-hq bot added the echoes: technical-roadmap/security More specific category, to highlight task that tackle security requirements. label Jan 28, 2025
@lwille lwille marked this pull request as draft January 28, 2025 11:59
@lwille lwille changed the title WPB-15480: Import SFTD-Disco tool WPB-15480: Import SFTD-Disco tool into this repo Jan 28, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-roadmap/security More specific category, to highlight task that tackle security requirements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants