-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3e3164
commit 674cef5
Showing
3 changed files
with
48 additions
and
44 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 |
---|---|---|
|
@@ -6,33 +6,36 @@ removing a user account. | |
|
||
Please do the following: | ||
|
||
1. **Add user to Gitlab instance:** | ||
Add a new account for the new user on the Gitlab instance. | ||
Note the username and email of the new account. | ||
**1. Add user to Gitlab instance:** | ||
|
||
1. Use the [DTaaS CLI](../cli.md) to bring up the workspaces for new users. | ||
This brings up the containers, without the backend authorization. | ||
Add a new account for the new user on the Gitlab instance. | ||
Note the username and email of the new account. | ||
|
||
1. Add backend authorization for the user | ||
**2. Create User Workspace:** | ||
|
||
1. Go to the _docker_ directory | ||
Use the [DTaaS CLI](../cli.md) to bring up the workspaces for new users. | ||
This brings up the containers, without the backend authorization. | ||
|
||
```bash | ||
cd <DTaaS>/docker | ||
``` | ||
**3. Add backend authorization for the user:** | ||
|
||
1. Add three lines to the `conf.server` file | ||
- Go to the _docker_ directory | ||
|
||
```txt | ||
rule.onlyu3.action=auth | ||
rule.onlyu3.rule=PathPrefix(`/alice`) | ||
rule.onlyu3.whitelist = [email protected] | ||
``` | ||
```bash | ||
cd <DTaaS>/docker | ||
``` | ||
|
||
1. Restart the docker container responsible for backend authorization. | ||
- Add three lines to the `conf.server` file | ||
|
||
```bash | ||
docker compose -f compose.server.yml --env-file .env up -d --force-recreate traefik-forward-auth | ||
``` | ||
```txt | ||
rule.onlyu3.action=auth | ||
rule.onlyu3.rule=PathPrefix(`/alice`) | ||
rule.onlyu3.whitelist = [email protected] | ||
``` | ||
|
||
1. The new users are now added to the DTaaS instance, with authorization enabled. | ||
**4. Restart the docker container responsible for backend authorization.** | ||
|
||
```bash | ||
docker compose -f compose.server.yml --env-file .env up -d --force-recreate traefik-forward-auth | ||
``` | ||
|
||
**5. The new users are now added to the DTaaS instance, with authorization enabled.** |
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 |
---|---|---|
|
@@ -6,38 +6,39 @@ removing a user account. | |
|
||
Please do the following: | ||
|
||
1. Remove an existing user with the [DTaaS CLI](../cli.md) | ||
**1. Remove an existing user with the [DTaaS CLI](../cli.md)** | ||
|
||
1. Remove backend authorization for the user: | ||
**2. Remove backend authorization for the user:** | ||
|
||
- Go to the _docker_ directory | ||
- Go to the _docker_ directory | ||
|
||
```bash | ||
cd <DTaaS>/docker | ||
``` | ||
```bash | ||
cd <DTaaS>/docker | ||
``` | ||
|
||
- Remove these three lines from the `conf.server` file | ||
- Remove these three lines from the `conf.server` file | ||
|
||
```txt | ||
rule.onlyu3.action=auth | ||
rule.onlyu3.rule=PathPrefix(`/alice`) | ||
rule.onlyu3.whitelist = [email protected] | ||
``` | ||
```txt | ||
rule.onlyu3.action=auth | ||
rule.onlyu3.rule=PathPrefix(`/alice`) | ||
rule.onlyu3.whitelist = [email protected] | ||
``` | ||
|
||
- Run the command for these changes to take effect: | ||
- Run the command for these changes to take effect: | ||
|
||
```bash | ||
docker compose -f compose.server.yml --env-file .env up -d --force-recreate traefik-forward-auth | ||
``` | ||
```bash | ||
docker compose -f compose.server.yml --env-file .env up -d --force-recreate traefik-forward-auth | ||
``` | ||
|
||
The extra users now have no backend authorization. | ||
The extra users now have no backend authorization. | ||
|
||
1. Remove users to Gitlab instance (optional) | ||
Please see | ||
[gitlab docs](https://docs.gitlab.com/ee/user/profile/account/delete_account.html) | ||
for more help. | ||
**3. Remove users to Gitlab instance (optional):** | ||
|
||
1. **The user account is now deleted** | ||
Please see | ||
[gitlab docs](https://docs.gitlab.com/ee/user/profile/account/delete_account.html) | ||
for more help. | ||
|
||
**4. The user account is now deleted.** | ||
|
||
## Caveat | ||
|
||
|