add feedback from review

This commit is contained in:
Willy Kloucek committed 2021-02-11 10:53:07 +01:00
1 parent 9c648f93cc
commit 9bfe930978
5 files changed
+7 -7

No files matched your search

@@ -19,7 +19,7 @@ echo " Reva user UUID: $REVA_USER_UUID"
ocis accounts update --password $STORAGE_LDAP_BIND_PASSWORD $REVA_USER_UUID
killall ocis
echo "default serets changed"
echo "default secrets changed"
echo "##################################################"
ocis server
+3 -3
View File
@@ -18,11 +18,11 @@ OCIS_DOCKER_TAG=
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test"
OCIS_DOMAIN=
# IDP LDAP bind password. Must be changed in order to have a secure oCIS. Defaults to "idp".
IDP_LDAP_BIND_PASSWORD=
IDP_LDAP_BIND_PASSWORD=foo
# Storage LDAP bind password. Must be changed in order to have a secure oCIS. Defaults to "reva".
STORAGE_LDAP_BIND_PASSWORD=
STORAGE_LDAP_BIND_PASSWORD=foo
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
OCIS_JWT_SECRET=
OCIS_JWT_SECRET=foo
# If you want to use debugging and tracing with this stack,
# you need uncomment following line. Please see documentation at
@@ -19,7 +19,7 @@ echo " Reva user UUID: $REVA_USER_UUID"
ocis accounts update --password $STORAGE_LDAP_BIND_PASSWORD $REVA_USER_UUID
killall ocis
echo "default serets changed"
echo "default secrets changed"
echo "##################################################"
ocis server
+1 -1
View File
@@ -39,7 +39,7 @@ Both have simple default passwords which need to be changed. Currently, changing
The new password for the Reva Inter Operability Platform user must be made available to oCIS by using the environment variable `STORAGE_LDAP_BIND_PASSWORD`. The same applies to the new Kopano IDP user password, which needs do be made available to oCIS in `IDP_LDAP_BIND_PASSWORD`.
Furthermore oCIS needs to share a JWT token with REVA, which also need to be changed by the user.
Furthermore, oCIS uses a shared secret to sign JWT tokens for inter service authorization, which also needs to be changed by the user.
You can change it by setting the `OCIS_JWT_SECRET` environment variable for oCIS to a random string.
### Delete demo users
+1 -1
View File
@@ -74,7 +74,7 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
Name: "jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to dismantle the access token, should equal reva's jwt-secret",
EnvVars: []string{"OCIS_JWT_SECRET", "OCIS_JWT_SECRET"},
EnvVars: []string{"OCIS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
}