A random person on lemmy. Banner art from Deemo switch version

Alt lemmy @[email protected]

Alt kbin: @[email protected]

FMHY (archive): @[email protected]

  • 4 Posts
  • 29 Comments
Joined 1 year ago
cake
Cake day: July 20th, 2023

help-circle


  • “origin=cloudsmith/caddy/stable”;

    Unable to parse Unattended-Upgrade::Allowed-Origins. An error occurred: not enough values to unpack (expected 2, got 1)

    
    // Automatically upgrade packages from these (origin:archive) pairs
    //
    // Note that in Ubuntu security updates may pull in new dependencies
    // from non-security sources (e.g. chromium). By allowing the release
    // pocket these get automatically pulled in.
    Unattended-Upgrade::Allowed-Origins {
            "${distro_id}:${distro_codename}";
            "${distro_id}:${distro_codename}-security";
            // Extended Security Maintenance; doesn't necessarily exist for
            // every release and this system may not have it installed, but if
            // available, the policy for updates is such that unattended-upgrades
            // should also install from here by default.
            "${distro_id}ESMApps:${distro_codename}-apps-security";
            "${distro_id}ESM:${distro_codename}-infra-security";
            "${distro_id}:${distro_codename}-updates";
    //      "${distro_id}:${distro_codename}-proposed";
    //      "${distro_id}:${distro_codename}-backports";
            "origin=cloudsmith/caddy/stable";
    };
    
    Edit:
    
    Replacing 
    
    "origin=cloudsmith/caddy/stable";
    
    to
    
    `"cloudsmith/caddy/stable:any-version";`
    
    fixes error
    
    I have no idea why ubuntu doesn't like the origin syntax
    
    

  • Firstly thank you so much for explaing this for me.

    “origin=Zabbix,codename=${distro_codename}”; //Zabbix Agent repository

    I tried using this as a template for caddy

     500 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version/main arm64 Packages
         release o=cloudsmith/caddy/stable,a=any-version,n=any-version,l=source=none,c=main,b=arm64
         origin dl.cloudsmith.io
    

    I assume origin is:

    o=cloudsmith/caddy/stable

    When adding this rule

    "origin=cloudsmith/caddy/stable,codename=${distro_codename}"; //Caddy repository

    I get this error

    Unable to parse Unattended-Upgrade::Allowed-Origins.
    An error occurred: not enough values to unpack (expected 2, got 1)
    Traceback (most recent call last):
    

    https://pastebin.com/raw/7gtkRw7c

    When changing the syntax to:

    "cloudsmith/caddy/stable:${distro_codename}"; // Caddy

    The error goes away.

    Any ideas?















  • remote UI connection passes through the Home Assistant Central servers, the Central servers could maintain that safety database and off switch

    I think this is how home assistant handles it. When they put out a cve they can update the insecure version list which makes nabucasa refuse remote forwarding (until you update).

    Initially I was just thinking if a open-source project is on github and uses the security disclosure feature if it would be possible to pull data from it and disable remote acess (either by auto shutting down the service or simply disabling routing on a reverse proxy).

    Having a system that does without a security disclosure list from a project maintainer would be far mor difficult like having the proxy disable one of your services if it detects a vulnerability in a dependency.