Skip to content

Conversation

@dido18
Copy link

@dido18 dido18 commented Nov 27, 2025

The auth configuration of the apt-repo can be removed.

At the time of writing endpoints apt-repo.oniudra.cc and apt-repo.arduino.cc are still protected by basic auth.

Related Pr

https://github.com/bcmi-labs/infrastructure/pull/2650
WAIT devops to remove basic auth before merging

How to test

Expected: After basic auth is removed from apt-repo.oniudra, the apt does not return 401 error code.

Change the config of a board as follows:

  • remove the /etc/apt/auth.conf.d/arduino.conf file
  • change the /etc/apt/sources.list.d/arduino.list and put deb [signed-by=/etc/apt/keyrings/arduino.asc] https://apt-repo.oniudra.cc/ stable main
  • execute arduino-app-cli system update --only-arduino

@dido18
Copy link
Author

dido18 commented Dec 5, 2025

arduino@dido:/$ cat /etc/apt/sources.list.d/arduino.list
deb [signed-by=/etc/apt/keyrings/arduino.asc] https://apt-repo.arduino.cc unstable main

arduino@dido:/$ sudo rm -rf /etc/apt/auth.conf.d/arduino.conf
[sudo] password for arduino

arduino@dido:/$ arduino-app-cli system update --only-arduino
Found 1 upgradable packages:
Package: arduino-app-cli, From: 0.0.0-95e47bb, To: 0.8.0-rc.2
Do you want to upgrade these packages? (yes/no)
yes
[starting] Upgrade is starting
[log] Download started: https://downloads.arduino.cc/packages/package_index.tar.bz2
[log] Download progress: downloaded:92392 total_size:92392
[log] Download completed: success:true
[log] Platform 'arduino:zephyr' is already at the latest version
[starting] Upgrade is starting
[log] Reading package lists...
[log] Building dependency tree...
[log] Reading state information...
[log] The following packages will be upgraded:
[log]   arduino-app-cli
[log] 1 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
[log] Need to get 39.5 MB of archives.
[log] After this operation, 0 B of additional disk space will be used.
[log] Get:1 https://apt-repo.arduino.cc unstable/main arm64 arduino-app-cli arm64 0.8.0-rc.2 [39.5 MB]
[log] apt-listchanges: Reading changelogs...
[log] Fetched 39.5 MB in 12s (3,206 kB/s)
(Reading database ... 61498 files and directories currently installed.)
[log] Preparing to unpack .../arduino-app-cli_0.8.0-rc.2_arm64.deb ...
[log] Removed '/etc/systemd/system/multi-user.target.wants/arduino-app-cli.service'.
[log] Removed '/etc/systemd/system/multi-user.target.wants/arduino-burn-bootloader.service'.
[log] Removed '/etc/systemd/system/multi-user.target.wants/arduino-avahi-serial.service'.
[log] Unpacking arduino-app-cli (0.8.0-rc.2) over (0.0.0-95e47bb) ...
[log] Setting up arduino-app-cli (0.8.0-rc.2) ...
[log] Created symlink '/etc/systemd/system/multi-user.target.wants/arduino-app-cli.service' → '/etc/systemd/system/arduino-app-cli.service'.
[log] Created symlink '/etc/systemd/system/multi-user.target.wants/arduino-burn-bootloader.service' → '/etc/systemd/system/arduino-burn-bootloader.service'.
[log] Created symlink '/etc/systemd/system/multi-user.target.wants/arduino-avahi-serial.service' → '/etc/systemd/system/arduino-avahi-serial.service'.
[log]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant