Skip to content

Provide official debian and RPM packages #16867

Open

Description

@codefromthecrypt

Title: Provide official debian and RPM packages

Description:
Right now, everything on the website mentioning "getenvoy" can be removed without breaking people.. except debian and RPM packages.

Can you please host official debian and RPM packages? Seems they can be built from the same binaries used to make docker images similar to #16830

Once this is done, hopefully there's no need for confusion anymore as getenvoy's build and packaging pipeline can quietly turn off.

Relevant Links:
#16830

Activity

  1. added
    enhancement
    triage
    on Jun 8, 2021
  2. codefromthecrypt commented on Jun 8, 2021

    @codefromthecrypt
    ContributorAuthor

    cc @phlax I did a recursive grep and basically this is the last thing people can't do properly upstream.

  3. phlax commented on Jun 8, 2021

    @phlax
    Member

    im very +1 to this - and ultimately would like to create a "request to package" with debian - it really feels like envoy would be incredibly useful to end users to just be able to apt-get install (or rh equiv)

    in the interim i would be very happy to create the packaging for us to host these ourselves

    ...and the necessary deb repo

  4. added and removed
    triage
    on Jun 8, 2021
  5. self-assigned this
    on Jun 8, 2021
  6. phlax commented on Jun 8, 2021

    @phlax
    Member

    im wondering about using bazel for this - looks like a reasonable approach - although at least for debian its not clear if source packages are supoorted

    in terms of prior art - tetrate's packaging is here https://github.com/tetratelabs/getenvoy-package/blob/master/envoy_pkg/packages/getenvoy_package.bzl

  7. snowp commented on Jun 9, 2021

    @snowp
    Contributor

    I think in the past there has been some resistance towards hosting/distributing binaries (c.f. #9006 (comment)), but we could always revisit that decision.

    @envoyproxy/maintainers for visibility

  8. phlax commented on Jun 9, 2021

    @phlax
    Member

    I think in the past there has been some resistance towards hosting/distributing binaries (c.f. #9006 (comment)), but we could always revisit that decision.

    i think that because getenvoy are no longer going to host binaries this role is shifting to CNCF

  9. snowp commented on Jun 9, 2021

    @snowp
    Contributor

    Talked offline, seems like we've got resources allocated for this so no more complaints from me :)

  10. 63 remaining items

  11. phlax commented on Sep 14, 2024

    @phlax
    Member

    Which strategy did you have in mind for packages in the repo?

    im not sure im following exactly

    we dont keep any binaries in the (Envoy) repo - the binaries are produced as part of the release process, the apt repo requests a list of supported versions from Envoy main and then constructs the apt repo from that by pulling in the released packages

    ... i have a vague plan ...

    as part of our normal push/pr CI we build and test the deb packages - atm we do it for all of the supported distros - this suggestion was more about just testing the earliest version of each distro rather than all (atm that would be bullseye and focal)

  12. GhostLyrics commented on Sep 14, 2024

    @GhostLyrics
    Contributor

    When maintaining a package repository for a Debian-like, you can generally use two approaches:

    1. Only the latest version of a package stays in the repository. Debian itself does this. If other versions of a package are available, it will be because a user has configured multiple sources (e.g. a higher version of the same package may come in via the Debian Security repo)
    2. All historical versions of a package stay available. Old ones are not purged when publishing a new one, allowing to request e.g. envoy=1.2.3 during installation and getting exactly that one, despite it not being the latest. (e.g. GitLab does this, see below)
    apt-cache policy gitlab-ee
    gitlab-ee:
      Installed: (none)
      Candidate: 17.3.2-ee.0
      Version table:
         17.3.2-ee.0 500
            500 https://packages.gitlab.com/gitlab/gitlab-ee/debian bullseye/main arm64 Packages
         17.3.1-ee.0 500
            500 https://packages.gitlab.com/gitlab/gitlab-ee/debian bullseye/main arm64 Packages
         17.3.0-ee.0 500
            500 https://packages.gitlab.com/gitlab/gitlab-ee/debian bullseye/main arm64 Packages
         17.2.5-ee.0 500
            500 https://packages.gitlab.com/gitlab/gitlab-ee/debian bullseye/main arm64 Packages
    ...
    

    Given these, I was wondering what you had in mind for the envoy repo.

  13. phlax commented on Sep 14, 2024

    @phlax
    Member

    ah - i see - i did ponder this, but didnt come to any firm conclusion

    atm - there is no cycling of old versions - all are present - see these:

    relatedly im wondering whether to keep no longer supported branches around - ie whether to delete 1.28 when it goes EOL (in ~4 weeks)

    open to suggestions on this - even better PRs (repo is here for ref https://github.com/envoyproxy/apt)

  14. matihost commented on Sep 14, 2024

    @matihost

    in the meantime @matihost you can almost certainly just use the latest ubuntu that we do currently support - atm, its the same statically compiled binaries in each

    Yes, i can confirm that envoy package from jammy works on Ubuntu noble (24.04).

  15. psvmcc commented on Sep 18, 2024

    @psvmcc

    Hi, maybe use single repo like vector did? Without building for each distro, only for package system.

  16. phlax commented on Sep 18, 2024

    @phlax
    Member

    ... use single repo ...

    not sure tbh

    firstly i dont want to add a script-from-interwebs-that-needs-root.sh

    then also i think the debian/ubuntu versions are significant - the currently statically compiled bin doesnt work with pre-bookworm (iirc) - so we do want to make these distro versions explicit

  17. GhostLyrics commented on Sep 18, 2024

    @GhostLyrics
    Contributor

    the currently statically compiled bin doesnt work with pre-bookworm
    so we do want to make these distro versions explicit

    In this case you already have exactly what's recommended.


    I would, however, strongly advise against unpublishing packages. With a single exception - the content of the package being so broken that it doesn't start or destroys data - you should not unpublish software releases. In any other cases a SemVer patch-level release or similar should suffice.
    Unpublishing often leads to immense breakage amongst your users.

    For example:

    • if someone installs a specific version in their CI → you just broke their builds
    • if someone asks for a specific version in their configuration management (e.g. Ansible, Puppet) → you just broke their playbook

    I strongly recommend to only ever unpublish if that specific release actively harms its users. If you are pressed for disk space, consider unpublishing things that are older than 3 years, but I hesitate to even suggest that.

    <personal, subjective opinion here> It's really not your responsibility whether envoy users use a version that no longer officially receives any support. It's theirs - as long as you have documented what is supported at this moment and what isn't. </end of opinion>

  18. phlax commented on Sep 18, 2024

    @phlax
    Member

    I would, however, strongly advise against unpublishing packages. With a single exception - the content of the package being so broken that it doesn't start or destroys data - you should not unpublish software releases. In any other cases a SemVer patch-level release or similar should suffice.
    Unpublishing often leads to immense breakage amongst your users.

    in general i would agree - however - in this case my concern is that once these minor branches - eg 1.28 - go EOL they are no longer supported with patch updates

    this usually means there are known/published vulnerabilities with these versions so im not entirely clear whether we want to distribute vulnerable warez

    ... only ever unpublish if that specific release actively harms its users ...

    well, that is arguably the case

  19. GhostLyrics commented on Sep 18, 2024

    @GhostLyrics
    Contributor

    I see that you're trying to mix your security strategy into your availability here. I'm a bit conflicted about that, but if you insist there's also an already working example of solving that. Debian and Ubuntu do that for their outdated releases by moving them from the regular repository into a dedicated archival one (see example).

    Both use slightly different terminology, like this:

    - deb http://deb.debian.org/debian CODENAME main
    + deb http://archive.debian.org/debian CODENAME main
    
    - deb http://archive.ubuntu.com/ubuntu/ CODENAME main
    + deb http://old-releases.ubuntu.com/ubuntu/ CODENAME main

    That repository (likely) has less bandwidth and is not enabled by default anywhere. Users that manually choose to use it know they are getting outdated things and unsupported things but they know the releases stay there for archival reasons.

    I you'd like to make things very explicit you could use unsupported-apt.envoyproxy.io or outdated-apt.envoyproxy.io, for example. Not as pretty as archive but certainly makes it very clear what you're getting.

  20. phlax commented on Sep 18, 2024

    @phlax
    Member

    yeah - i considered adding a unsupported apt repo/s

    it would need to live under apt.envoyproxy.io tho as adding dns and/or maintaining a separate site would be non-trivial

    im open to PRs to address this - the current setup wont delete anything as it stands

  21. GhostLyrics commented on Sep 18, 2024

    @GhostLyrics
    Contributor

    the current setup wont delete anything as it stands

    Glad to hear it!


    If you don't want to use a subdomain for the archive repo, you could use the components field of the spec.

    cat debian.sources
    
    Types: deb
    # http://snapshot.debian.org/archive/debian/20240722T000000Z
    URIs: http://deb.debian.org/debian
    Suites: bookworm bookworm-updates
    Components: main <================================================= this
    Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
    

    If users then want to activate it, they would change:

    ...
    - deb[signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io bookworm main
    + deb[signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io bookworm main unsupported 
    ...

    It would require some more configuration of your aptly repo.

  22. phlax commented on Sep 18, 2024

    @phlax
    Member

    would it not be possible to just add a directory unsupported and move everything under that - so users do

    deb[signed-by=/etc/apt/keyrings/envoy-keyring.gpg] `https://apt.envoyproxy.io/unsupported bookworm main 
    

    it might require some path mangling to work - not sure if it would at all

    trying to think of a setup that requires minimal maintenance/complexity

    i like the idea that users have to add unsupported somewhere to continue using the repo for old versions tho

  23. GhostLyrics commented on Sep 18, 2024

    @GhostLyrics
    Contributor

    would it not be possible to just add a directory unsupported and move everything under that

    This has the same effect as what I suggested but it's less clean.

    trying to think of a setup that requires minimal maintenance/complexity

    If you tell me what you think will bring a maintenance burden, it's easier for me to suggest things. Specifically I think you could:

    • publish to both repositories
    • unpublish what you no longer want from the regular one

    Is this super clean? No, because you'll also have supported packages in unsupported for some time, but the only manual task left here would be periodically unpublishing releases you no longer want from the main one.

  24. phlax commented on Sep 18, 2024

    @phlax
    Member

    by low maintenance im meaning

    • doesnt require any intervention - ie automated
    • doesnt add a lot of CI time - fs sizes are an issue here

    tbh - the complexity issue is probs just as important, if not more

    not really seeing why using a subdir is "less clean" - mho is that its more explicit - but as said above - open to PRs

    on that note - we should probably be having conversations like this in the apt repo itself so future selves can see them

  25. phlax commented on Sep 18, 2024

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

Metadata

Metadata

Assignees

Labels

area/buildarea/communityarea/installenhancementno stalebot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions