Configure HTTP Artifact Credentials
Spinnaker supports reading HTTP files directly for artifacts.
If the files are hidden behind basic auth, you can configure an artifact account with the needed credentials to read your artifact. If not, no further configuration is needed, Spinnaker automatically adds a no-auth-http-account
for this purpose.
You can configure more than one artifact account, each with separate credentials. Specify which account to use in the configuration for the stage that reads the data. If you have only one such account configured, the stage config for this is hidden, and the single account is automatically used.
Prerequisites
Collect your basic auth
$USERNAME
and$PASSWORD
Pick a
$USERNAME_PASSWORD_FILE
location on your diskRun:
echo ${USERNAME}:${PASSWORD} > $USERNAME_PASSWORD_FILE
Edit your artifact settings
Collect the
$USERNAME_PASSWORD_FILE
value returned from the prerequisites section above.Enable artifact support .
Enable the HTTP artifact provider:
hal config artifact http enable
Add an artifact account:
hal config artifact http account add my-http-account \
--username-password-file $USERNAME_PASSWORD_FILE
There are more options described here if you need more control over your configuration.
Last modified May 7, 2021: docs(migration): fix imgs and links (9a18ce6)