-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dnf doesn't pick up credentials stored in dnf.conf #2036
Comments
yml file? Is this for another application that generates the configuration for DNF? DNF configuration - the I am wondering if there is a problem with some character in the name or password. I don't know what characters were used. At the very least, the ':' character cannot be used in the |
I can't preproduce the problem. Username and password are used from "dnf.conf". However, I created an issue for a problem with |
Hi, the Yml file is part of automotive sample images Anyways the issue is seen giving username and password both in And yes the username does contain a : |
@ashuk2000 |
Looks like the problem was the colon in the username. And fixed PRs: I am closing this issue. |
So I have a yml file where repo info is configured.
`
version: '2'
mpp-vars:
distro_name: rhivos
distro_copr_tree: epel
distro_version: 9
distro_baseurl: https://qartifactory.com/ER4
distro_baseurl_repo: $distro_baseurl/RHIVOS/$arch/os/
distro_repos:
baseurl: $distro_baseurl/RHIVOS/$arch/os/
priority: 10
baseurl: https://mirror.stream.centos.org/SIGs/9-stream/automotive/$arch/packages-main/
distro_devel_repos: []
distro_debug_repos:
baseurl: $distro_baseurl/RHIVOS/$arch/debug/
priority: 10
distro_module_id: platform:el9
osname: rhel
uefi_vendor: redhat
linux_firmware_rpm: linux-firmware
release_rpm: redhat-release
`
This repo needs a username and password to be accessed which I have provided in /etc/dnf/dnf.conf
[qartifactory]
baseurl=https://qartifactory.com/ER4/RHIVOS/aarch64/os
name=rhivos
username=dummy-username
password=dummy-password
but when I build the image dnf gives error saying can't download the metadata,
if I embed the credentials in the url itself and put that in the yaml file it works fine. But I don't want to hardcode credentials in the yml
What am I doing wrong
The text was updated successfully, but these errors were encountered: