diff --git a/extensions/_includes/accounts-config-example.yaml b/extensions/_includes/accounts-config-example.yaml index 90fc07ab505..6e7ba896eeb 100644 --- a/extensions/_includes/accounts-config-example.yaml +++ b/extensions/_includes/accounts-config-example.yaml @@ -60,4 +60,4 @@ service_user: uid: 0 gid: 0 hash_difficulty: 11 -demo_users_and_groups: true +demo_users_and_groups: false diff --git a/extensions/_includes/accounts_configvars.md b/extensions/_includes/accounts_configvars.md index 77d004a4487..2cb061c0e8b 100644 --- a/extensions/_includes/accounts_configvars.md +++ b/extensions/_includes/accounts_configvars.md @@ -24,4 +24,4 @@ | ACCOUNTS_SERVICE_USER_UID | int64 | 0 | The uid of the accounts service user.| | ACCOUNTS_SERVICE_USER_GID | int64 | 0 | The gid of the accounts service user.| | ACCOUNTS_HASH_DIFFICULTY | int | 11 | The hash difficulty makes sure that validating a password takes at least a certain amount of time.| -| ACCOUNTS_DEMO_USERS_AND_GROUPS | bool | true | If this flag is set the service will setup the demo users and groups.| \ No newline at end of file +| ACCOUNTS_DEMO_USERS_AND_GROUPS | bool | false | If this flag is set the service will setup the demo users and groups.| \ No newline at end of file diff --git a/extensions/_includes/idm-config-example.yaml b/extensions/_includes/idm-config-example.yaml index 3352d0f5bb3..e19b14b28fe 100644 --- a/extensions/_includes/idm-config-example.yaml +++ b/extensions/_includes/idm-config-example.yaml @@ -19,7 +19,7 @@ idm: cert: ~/.ocis/idm/ldap.crt key: ~/.ocis/idm/ldap.key database: ~/.ocis/idm/ocis.boltdb -create_demo_users: true +create_demo_users: false service_user_passwords: admin_password: idm reva_password: reva diff --git a/extensions/_includes/idm_configvars.md b/extensions/_includes/idm_configvars.md index e410bb13e44..1bace2be182 100644 --- a/extensions/_includes/idm_configvars.md +++ b/extensions/_includes/idm_configvars.md @@ -10,7 +10,7 @@ | IDM_LDAPS_CERT | string | ~/.ocis/idm/ldap.crt | File name of the TLS server certificate for the ldaps listener| | IDM_LDAPS_KEY | string | ~/.ocis/idm/ldap.key | File name for the TLS certificate key for the server certificate| | IDM_DATABASE_PATH | string | ~/.ocis/idm/ocis.boltdb | Full path to the idm backend database| -| IDM_CREATE_DEMO_USERS;ACCOUNTS_DEMO_USERS_AND_GROUPS | bool | true | Flag to enabe/disable the creation of the demo users| +| IDM_CREATE_DEMO_USERS;ACCOUNTS_DEMO_USERS_AND_GROUPS | bool | false | Flag to enabe/disable the creation of the demo users| | IDM_ADMIN_PASSWORD | string | idm | Password to set for the "idm" service users. Either cleartext or an argon2id hash| | IDM_REVASVC_PASSWORD | string | reva | Password to set for the "reva" service users. Either cleartext or an argon2id hash| | IDM_IDPSVC_PASSWORD | string | idp | Password to set for the "idp" service users. Either cleartext or an argon2id hash| \ No newline at end of file diff --git a/grpc_apis/ocis/messages/accounts/v0/grpc.md b/grpc_apis/ocis/messages/accounts/v0/grpc.md index 8943b5033aa..0f8f25d2416 100644 --- a/grpc_apis/ocis/messages/accounts/v0/grpc.md +++ b/grpc_apis/ocis/messages/accounts/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.accounts.v0" url: /grpc_apis/ocis_messages_accounts_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index 67f2e761889..8fa7a67003f 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index dd4666c456e..7fcba2a15bb 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index 18824539121..0e7a03199c6 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/accounts/v0/grpc.md b/grpc_apis/ocis/services/accounts/v0/grpc.md index 50f4433e632..69a26d30b8b 100644 --- a/grpc_apis/ocis/services/accounts/v0/grpc.md +++ b/grpc_apis/ocis/services/accounts/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.accounts.v0" url: /grpc_apis/ocis_services_accounts_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index 9b9abd1ac84..48bc63682d5 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index 15917b8bb31..38a1341e93f 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index e3f42bf86f9..cf0207dd5cc 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-04-11T06:02:56Z +date: 2022-04-11T09:15:13Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/ocis/deployment/_index.md b/ocis/deployment/_index.md index 29e8bb2517a..d2db1b8eb98 100644 --- a/ocis/deployment/_index.md +++ b/ocis/deployment/_index.md @@ -50,8 +50,7 @@ You can change it by setting the `OCIS_MACHINE_AUTH_API_KEY` environment variabl {{< hint info >}} Before deleting the demo users mentioned below, you must create a new account for yourself and assign it to the administrator role. -To skip the generation of demo users in the first place, run the inital setup step with an additional environment variable. -`ACCOUNTS_DEMO_USERS_AND_GROUPS=false ./bin/ocis server` generates only the admin, and one user for IDP and Reva respectively. +By default, oCIS doesn't create any demo users. During the first startup, it generates only the admin and one user for IDP and Reva respectively. {{< /hint >}} oCIS ships with a few demo users besides the system users: diff --git a/ocis/getting-started/_index.md b/ocis/getting-started/_index.md index 84904501c69..534d7bde054 100644 --- a/ocis/getting-started/_index.md +++ b/ocis/getting-started/_index.md @@ -42,8 +42,8 @@ curl https://download.owncloud.com/ocis/ocis/stable/1.19.1/ocis-1.19.1-linux-amd # make binary executable chmod +x ocis -# run -OCIS_INSECURE=true ./ocis server +# run with demo users +OCIS_INSECURE=true ACCOUNTS_DEMO_USERS_AND_GROUPS=true ./ocis server ``` The default primary storage location is `~/.ocis` or `/var/lib/ocis` depending on the packaging format and your operating system user. You can change that value by configuration. @@ -64,13 +64,17 @@ The `latest` tag always reflects the current master branch. ```console docker pull owncloud/ocis -docker run --rm -ti -p 9200:9200 -e OCIS_INSECURE=true owncloud/ocis +docker run --rm -ti -p 9200:9200 -e OCIS_INSECURE=true -e ACCOUNTS_DEMO_USERS_AND_GROUPS=true owncloud/ocis ``` {{< hint info >}} When you're using oCIS with self-signed certificates, you need to set the environment variable `OCIS_INSECURE=true`, in order to make oCIS work. {{< /hint >}} +{{< hint warming >}} +When you're creating the [demo users]({{< ref "./demo-users" >}}) by setting `ACCOUNTS_DEMO_USERS_AND_GROUPS=true`, you need to be sure that this instance is not used in prodution because the passwords are public. +{{< /hint >}} + {{< hint warning >}} In order to persist your data, you need to mount a docker volume or create a host bind-mount at `/var/lib/ocis`, for example with: `-v /some/host/dir:/var/lib/ocis` diff --git a/ocis/getting-started/demo-users.md b/ocis/getting-started/demo-users.md index d5a5373a832..1865446d93e 100644 --- a/ocis/getting-started/demo-users.md +++ b/ocis/getting-started/demo-users.md @@ -7,11 +7,11 @@ geekdocEditPath: edit/master/docs/ocis/getting-started geekdocFilePath: demo-users.md --- -As long as oCIS is released as [technology preview]({{< ref "../release_roadmap#release_roadmap" >}}) it will come with default demo users. These enable you to do quick testing and developing. +oCIS has the option to create demo users during the first startup. These enable you to do quick testing and developing. {{< hint info >}} -To skip the generation of demo users, run the inital setup step with an additional environment variable. -`ACCOUNTS_DEMO_USERS_AND_GROUPS=false ./bin/ocis server` generates only the admin, and one user for IDP and Reva respectively. +To create the demo users, run the inital setup step with an additional environment variable. +`ACCOUNTS_DEMO_USERS_AND_GROUPS=true ./bin/ocis server` will generate the demo users listed in the table below. By default, it only generates the admin and one user for IDP and Reva respectively. {{< /hint >}} Following users are available in the demo set: