-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3551 from owncloud/ocis-init
[full-ci] ocis init & remove default secrets
- Loading branch information
Showing
204 changed files
with
2,720 additions
and
757 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
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,10 @@ | ||
Change: Introduce `ocis init` and remove all default secrets | ||
|
||
We've removed all default secrets. This means you can't start oCIS any longer | ||
without setting these via environment variable or configuration file. | ||
|
||
In order to make this easy for you, we introduced a new command: `ocis init`. | ||
You can run this command before starting oCIS with `ocis server` and it will | ||
bootstrap you a configuration file for a secure oCIS instance. | ||
|
||
https://github.com/owncloud/ocis/pull/3551 |
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
23 changes: 2 additions & 21 deletions
23
deployments/examples/ocis_traefik/config/ocis/entrypoint-override.sh
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,24 +1,5 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
ocis server& | ||
sleep 10 | ||
|
||
echo "##################################################" | ||
echo "change default secrets:" | ||
|
||
# IDP | ||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o) | ||
echo " IDP user UUID: $IDP_USER_UUID" | ||
ocis accounts update --password $IDP_LDAP_BIND_PASSWORD $IDP_USER_UUID | ||
|
||
# REVA | ||
REVA_USER_UUID=$(ocis accounts list | grep " | Reva Inter " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o) | ||
echo " Reva user UUID: $REVA_USER_UUID" | ||
ocis accounts update --password $STORAGE_LDAP_BIND_PASSWORD $REVA_USER_UUID | ||
|
||
echo "default secrets changed" | ||
echo "##################################################" | ||
|
||
wait # wait for oCIS to exit | ||
ocis init || true # will only initialize once | ||
ocis server |
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
Oops, something went wrong.