Skip to content

rauc: fix scp/sftp upgrades (pw handling) #523

@troglobit

Description

@troglobit
Contributor

RAUC limits the capabilities of libcurl, which it uses internally, to only recognize HTTP/HTTPS/SFTP/FTP as "remote" protocols. This means that protocols like SCP and TFTP are not accepted by RAUC, though supported by libcurl.

Culprit: https://github.com/rauc/rauc/blob/2666da0ce1fcb0206b4beaf5f1e8e883434f8f51/src/bundle.c#L1314

We should patch this.

Activity

added
bugSomething isn't working
triagePending investigation & classification (CCB)
on Jul 2, 2024
troglobit

troglobit commented on Jul 2, 2024

@troglobit
ContributorAuthor

TFTP support added in #223

troglobit

troglobit commented on Jul 2, 2024

@troglobit
ContributorAuthor

Found the root cause for the scp problems, libcurl use libssh2 for SSH (SCP/SFTP) access. Not to be confused with libssh, which libnetconf2 uses.

root@infix-00-00-00:~# curl -V
curl 8.1.2 (x86_64-buildroot-linux-gnu) libcurl/8.1.2 OpenSSL/1.1.1u zlib/1.2.13 libssh2/1.10.0
Release-Date: 2023-05-30
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz SSL threadsafe TLS-SRP UnixSockets

Only thing blocking this issue is adding a -u user[:pass] option to rauc, because from what I can tell, libcurl/curl does not support scp://user@address URIs.

troglobit

troglobit commented on Jul 2, 2024

@troglobit
ContributorAuthor

scp/sftp support added to curl in #300

changed the title [-]RAUC: Fix SCP and TFTP upgrades[/-] [+]RAUC: Fix SCP/SFTP upgrades (pw handling)[/+] on Oct 1, 2024
removed
triagePending investigation & classification (CCB)
on Oct 1, 2024
modified the milestones: FUTURE, Infix v24.10 on Oct 1, 2024
changed the title [-]RAUC: Fix SCP/SFTP upgrades (pw handling)[/-] [+]rauc: fix scp/sftp upgrades (pw handling)[/+] on Oct 1, 2024

14 remaining items

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Todo

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @troglobit@rical@jovatn

      Issue actions

        rauc: fix scp/sftp upgrades (pw handling) · Issue #523 · kernelkit/infix