Merge: a3d219dec 89a5d3468
Author: Michael Barz <mbarz@owncloud.com>
Date:   Mon Apr 11 11:13:13 2022 +0200

    Merge pull request #3474 from owncloud/no-demo-users

    [full-ci] set demo users to default off
This commit is contained in:
Michael Barz committed 2022-04-11 09:16:00 +00:00
1 parent a74eba1503
commit 0cf10c5c71
15 files changed
+23 -20

No files matched your search

@@ -60,4 +60,4 @@ service_user:
uid: 0
gid: 0
hash_difficulty: 11
demo_users_and_groups: true
demo_users_and_groups: false
+1 -1
View File
@@ -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.|
| ACCOUNTS_DEMO_USERS_AND_GROUPS | bool | false | If this flag is set the service will setup the demo users and groups.|
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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|
+1 -1
View File
@@ -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
---
+1 -1
View File
@@ -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
---
+1 -1
View File
@@ -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
---
@@ -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
---
+1 -1
View File
@@ -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
---
+1 -1
View File
@@ -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
---
+1 -1
View File
@@ -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
---
@@ -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
---
+1 -2
View File
@@ -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:
+7 -3
View File
@@ -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`
+3 -3
View File
@@ -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: