Commit 1dabc657 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'doc-ticket-zd263753' into 'master'

Add alternative to mask token

See merge request gitlab-org/gitlab!79351
parents ece5d957 be583c74
...@@ -478,6 +478,9 @@ Follow these steps to provide the bearer token with `DAST_API_OVERRIDES_ENV`: ...@@ -478,6 +478,9 @@ Follow these steps to provide the bearer token with `DAST_API_OVERRIDES_ENV`:
`{"headers":{"Authorization":"Bearer dXNlcm5hbWU6cGFzc3dvcmQ="}}` (substitute your token). You `{"headers":{"Authorization":"Bearer dXNlcm5hbWU6cGFzc3dvcmQ="}}` (substitute your token). You
can create CI/CD variables from the GitLab projects page at **Settings > CI/CD**, in the can create CI/CD variables from the GitLab projects page at **Settings > CI/CD**, in the
**Variables** section. **Variables** section.
Due to the format of `TEST_API_BEARERAUTH` it's not possible to mask the variable.
To mask the token's value, you can create a second variable with the token value's, and define
`TEST_API_BEARERAUTH` with the value `{"headers":{"Authorization":"Bearer $MASKED_VARIABLE"}}`.
1. In your `.gitlab-ci.yml` file, set `DAST_API_OVERRIDES_ENV` to the variable you just created: 1. In your `.gitlab-ci.yml` file, set `DAST_API_OVERRIDES_ENV` to the variable you just created:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment