> For the complete documentation index, see [llms.txt](https://cover-docs.diffblue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cover-docs.diffblue.com/features/cover-reports/cover-reports-contributor/authentication.md).

# Authenticated uploads

By default, any Diffblue Cover user can upload reports bundles to Cover Reports. However, your Cover Reports Administrator may have restricted access using upload authentication. Contact your Cover Reports Administrator for details of what restrictions may be in place and any associated username and password needed for uploads.

{% hint style="info" %}
For general information on generating and uploading reports bundles, see [Generate and upload reports bundles](/features/cover-reports/cover-reports-contributor/reports-bundles.md).
{% endhint %}

## Upload with authentication

Once upload authentication has been enabled you will need to use the `--report-username` and `--report-password` options in Cover CLI and Cover Pipeline when uploading reports bundles. The username and password must match those configured by your Cover Reports Administrator.

Authenticated uploads using `dcover create`:

```bash
dcover create
--coverage-reports
--upload=http://cover-reports-service:8080
--report-username="myusername"
--report-password="mypassword"
```

Authenticated uploads using `dcover upload`:

```bash
dcover upload http://cover-reports-service:8080
--report-username="myusername"
--report-password="mypassword"
```

## Using environment variables

If you don't want to supply the `--report-username` and `--report-password` options each time you upload reports bundles, you can use the following environment variables instead:

* `DIFFBLUE_COVER_REPORTS_USERNAME`
* `DIFFBLUE_COVER_REPORTS_PASSWORD`

As with the command line options, these variables must match the username and password configured by your Cover Reports Administrator.
