diff --git a/docs/usage/assets/images/app-settings/add-host-rule.png b/docs/usage/assets/images/app-settings/add-host-rule.png new file mode 100644 index 0000000000000000000000000000000000000000..b55ff559357aa021da2209870ed1c1ef76f17cf4 Binary files /dev/null and b/docs/usage/assets/images/app-settings/add-host-rule.png differ diff --git a/docs/usage/assets/images/app-settings/host-rules.png b/docs/usage/assets/images/app-settings/host-rules.png new file mode 100644 index 0000000000000000000000000000000000000000..ed2427f5d36bf0f6eb71c75e3a889344d82ea06f Binary files /dev/null and b/docs/usage/assets/images/app-settings/host-rules.png differ diff --git a/docs/usage/getting-started/private-packages.md b/docs/usage/getting-started/private-packages.md index 5efa53b1bb51c059d799973e6c4c9115fa7554c4..0e6eb2f0dbca413e8277ad8c136f2b02f2144dae 100644 --- a/docs/usage/getting-started/private-packages.md +++ b/docs/usage/getting-started/private-packages.md @@ -611,7 +611,7 @@ If you need to provide credentials to the Mend Renovate App, please do this: } ``` -For more details, see [Using Secrets with Mend Cloud Apps](../mend-hosted/app-secrets.md). +For more details, see [Using Secrets with Mend Cloud Apps](../mend-hosted/credentials.md). ### Access to GitHub Actions Secrets diff --git a/docs/usage/mend-hosted/.pages b/docs/usage/mend-hosted/.pages index 90b6607a9f50840bd88b09de8d82947ba1005f35..01b1b47debd098bcef51aa2f90568bb8d72b8d62 100644 --- a/docs/usage/mend-hosted/.pages +++ b/docs/usage/mend-hosted/.pages @@ -1,5 +1,5 @@ title: Mend-hosted Apps nav: - 'Configuration': 'hosted-apps-config.md' - - 'App Secrets': 'app-secrets.md' + - 'Credentials': 'credentials.md' - 'Migrating Secrets': 'migrating-secrets.md' diff --git a/docs/usage/mend-hosted/app-secrets.md b/docs/usage/mend-hosted/credentials.md similarity index 78% rename from docs/usage/mend-hosted/app-secrets.md rename to docs/usage/mend-hosted/credentials.md index 4e01c4a718eadcef5c1ef754519ad846d5acfb97..b0fdab984b1cf8280e3097e1ff1e9ca5ba580988 100644 --- a/docs/usage/mend-hosted/app-secrets.md +++ b/docs/usage/mend-hosted/credentials.md @@ -31,6 +31,7 @@ To add a secret for the Mend cloud app:  4. Reference the secret from Renovate config files inside the repo. + Alternatively, you can use the Host Rules UI (see below). ```json { @@ -43,6 +44,21 @@ To add a secret for the Mend cloud app: } ``` +### Adding a host rule through the UI + +You can centrally add/configure Host Rules through the Mend UI as an alternative to including them in Renovate presets. + +1. Open the _Credentials_ section of the settings page for the relevant Org or Repo. +2. Select `ADD HOST RULE` to open the "Add a Host Rule" dialog box. + +  + +3. Fill out the details for your host rule. + + As an example, if you are a Bitbucket or Azure DevOps user, and you want to specify a github.com token to fetch release notes and enable github-based datasources, you could create a host rule like this: + +  + ## Organization secrets vs repository secrets ### Secret scope diff --git a/docs/usage/mend-hosted/migrating-secrets.md b/docs/usage/mend-hosted/migrating-secrets.md index ac74c451bc2f414218e4af4a2b8590dbac2a48a7..269fbaf150d6eedeffa269bcec82ad96748c9e1c 100644 --- a/docs/usage/mend-hosted/migrating-secrets.md +++ b/docs/usage/mend-hosted/migrating-secrets.md @@ -102,4 +102,4 @@ If you were expecting to import a secret originally encrypted by Renovate: ## Related links -- [Using Secrets with Mend Cloud Apps](app-secrets.md) +- [Using Secrets with Mend Cloud Apps](credentials.md)