Skip to content

Commit

Permalink
CID-1751: Add PAT desc on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqamaral committed Aug 28, 2023
1 parent 24ea711 commit 97e7dcf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ To use the Broker client with a GitLab Enterprise deployment, run `docker pull l

- `LEANIX_DOMAIN` - the LeanIX domain, obtained from your LeanIX url (example if your workspace is located at `https://my-company.leanix.net` then the domain is `my-company`).
- `LEANIX_API_TOKEN` - the LeanIX token, obtained from your admin panel. :warning: Make sure the api token has `ADMIN`rights.
- `GITLAB_TOKEN` - a [personal access token](#personal-access-token) with `api` scope.
- `GITLAB_URL` - the hostname of your GitLab deployment, such as `https://ghe.domain.com`. This must include the protocol (http vs https) of the GitLab deployment.

### Personal Access Token
As part of the setup the vsm-broker requires a personal access token (PAT) with according rights to run effectively. For more details on how to create the PAT, see [GitLab's documentation](https://docs.gitlab.com/16.1/ee/user/profile/personal_access_tokens.html#personal-access-token-scopes).

The following scopes are required:
Gitlab Scope | VSM Usage
------------- | -------------
`api` | To read repository data and manage the webhook on system-level

#### Command-line arguments

Expand All @@ -23,5 +32,7 @@ docker run --pull=always --restart=always \
-p 8080:8080 \
-e LEANIX_DOMAIN=<region>.leanix.net \
-e LEANIX_TECHNICAL_USER_TOKEN=<technical_user-token>\
-e GITLAB_TOKEN=<secret-gitlab-token> \
-e GITLAB_URL=<GitHub Ent URL(https://ghe.domain.com)> \
leanixacrpublic.azurecr.io/vsm-gitlab-broker
```

0 comments on commit 97e7dcf

Please sign in to comment.