forked from wireapp/wire-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wire-server-enterprise as a service (wireapp#4357)
* services/wire-server-enterprise: Introduce * GHA: Use special token to checkout so private submodules can be pulled * services/wire-server-enterprise: Use https URL for submodule * cabal.project: Add wire-server-enterprise service * Update wire-server-enterprise submodule * Add internal endpoint for enterprise It defines only /status. * Follow feature branch * docs: Describe the Git repo URL rewriting hack * Add `wire-server-enterprise` to `integration` No tests so far, however we can start the service this way (`make cr`.) * Add changelog entry This should be improved / added to while we grow this feature. * Use latest version of actions/checkout We use this to clone wire-server for checking docs. * CI: Try different auth token Debugging... * Hi CI * Hi CI * Upgrade wire-server-enterprise * Install wire-server-enterprise for integration tests This may not work due to missing registry pull secrets. We'll see... * Provide wire-server-enterprise config to integration * Set image chart version for wire-server-enterprise * Take image pull secret from env variable Secrets won't work as they are scoped to the namespace. * Document usage of ENTERPRISE_IMAGE_PULL_SECRET * `integration` needs service binary * Mention that wire-server-enterprise is required to build wire-server * Let submodule point to main Feature branch has been merged. * More changelog --------- Co-authored-by: Matthias Fischmann <[email protected]>
- Loading branch information
Showing
19 changed files
with
122 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[submodule "libs/wire-message-proto-lens/generic-message-proto"] | ||
path = libs/wire-message-proto-lens/generic-message-proto | ||
url = https://github.com/wireapp/generic-message-proto | ||
[submodule "services/wire-server-enterprise"] | ||
path = services/wire-server-enterprise | ||
url = https://github.com/wireapp/wire-server-enterprise | ||
branch = main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This release contains a new Git submodule: `wire-server-enterprise`. This module | ||
represents a service which contains all non-open-source features. Wire can still | ||
be deployed and run without this service. Building it without | ||
`wire-server-enterprise` is currently not documented, but Wire will keep providing the artefacts. | ||
|
||
The service can be deployed with a dedicated Helm chart | ||
(`charts/wire-server-enterprise`.) The required service image is not freely | ||
available (the registry is password protected.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,9 +135,13 @@ Start by deploying a published release (see 2.1 or 2.2). | |
``` | ||
export NAMESPACE=$USER | ||
export DOCKER_TAG=2.116.32 | ||
export ENTERPRISE_IMAGE_PULL_SECRET=... # .dockerconfigjson of wire+wire_server_enterprise quay.io robot | ||
make kube-integration-setup | ||
``` | ||
|
||
(You may consider to export `ENTERPRISE_IMAGE_PULL_SECRET` in `.envrc.local` as | ||
well.) | ||
|
||
Then build and push the `brig` image by running | ||
|
||
``` | ||
|
@@ -211,3 +215,22 @@ Note: Simply deleting the namespaces is insufficient, because it leaves some res | |
We support two different ways of managing the docker-compose instance of rabbitmq: | ||
* A web console interface is available [here](http://localhost:15672) | ||
* `rabbitmqadmin` CLI is made available in the dev environment | ||
|
||
## Avoid Github HTTPS authentication for wire-server-enterprise | ||
|
||
Having to provide HTTPS authentication credentials is annoying. Unfortunately, | ||
we have to use HTTPS Git repository URLs for submodules, because some | ||
Concourse tasks require them (cannot clone with SSH.) | ||
|
||
A hacky workaround is to rewrite the URLs in the `~/.gitconfig`: | ||
|
||
``` | ||
git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
``` | ||
|
||
This leads to such entry: | ||
|
||
``` | ||
[url "[email protected]:"] | ||
insteadOf = https://github.com/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Wire.API.Routes.Internal.Enterprise where | ||
|
||
import Servant | ||
import Wire.API.Routes.MultiVerb | ||
import Wire.API.Routes.Named | ||
|
||
type InternalAPI = "i" :> InternalAPIBase | ||
|
||
type InternalAPIBase = | ||
Named | ||
"status" | ||
( "status" :> MultiVerb 'GET '[JSON] '[RespondEmpty 200 "OK"] () | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule wire-server-enterprise
added at
615602