Authentication issues with remote UI bundles
Hello,
I'm trying to use a bundle stored behind an auth-protected http server, specifically artifactory. Here's the relevant antora-playbook.yml
:
ui:
bundle:
url: https://<hostname>/artifactory/raw-local/antora/antora-bundle.zip
snapshot: true
This fails when trying to generate
the site:
$ antora --stacktrace generate antora-playbook.yml
Error: Failed to download UI bundle: https://<hostname>/artifactory/raw-local/antora/antora-bundle.zip
reason: Response code 401 (Unauthorized)
at /usr/lib/node_modules/@antora/site-generator-default/node_modules/@antora/ui-loader/lib/load-ui.js:133:13
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Promise.all (index 0)
at async loadUi (/usr/lib/node_modules/@antora/site-generator-default/node_modules/@antora/ui-loader/lib/load-ui.js:77:17)
at async Promise.all (index 1)
at async generateSite (/usr/lib/node_modules/@antora/site-generator-default/lib/generate-site.js:17:39)
at async run (/usr/lib/node_modules/@antora/cli/lib/cli.js:17:21)
I took a look at #280, but the auth
section isn't described in the documentation. Is it a valid one? Also, that's not really a solution for me, i don't want to have credentials in a committed file.
I also tried setting get-credentials for this, to no avail.
So I guess my questions are:
- Is getting an ui.bundle from a auth-protected url possible?
- Is there any plan to implement it if it's not?
Edited by Paul Ollivier