# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/features/cover-reports/cover-reports-contributor/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
