You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Sebastian Lövdahl, Alexander Skiba, Kotaro Inoue, Greg Dubicki, Daniel Kimsey, Luke Goyer, Joe Grund, Josep Rubió Piqué, Alexcei, Theodore Salvo and 31 more
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
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
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 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
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)
When maintaining a package repository for a Debian-like, you can generally use two approaches:
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)
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)
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).
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
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>
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 ...
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.
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
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.
Activity
codefromthecrypt commentedon Jun 8, 2021
cc @phlax I did a recursive grep and basically this is the last thing people can't do properly upstream.
phlax commentedon Jun 8, 2021
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
Removes most references to getenvoy
phlax commentedon Jun 8, 2021
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
snowp commentedon Jun 9, 2021
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
phlax commentedon Jun 9, 2021
i think that because getenvoy are no longer going to host binaries this role is shifting to CNCF
snowp commentedon Jun 9, 2021
Talked offline, seems like we've got resources allocated for this so no more complaints from me :)
jpeach commentedon Jun 14, 2021
FYI https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987544
63 remaining items
phlax commentedon Sep 14, 2024
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
mainand then constructs the apt repo from that by pulling in the released packagesas 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
bullseyeandfocal)GhostLyrics commentedon Sep 14, 2024
When maintaining a package repository for a Debian-like, you can generally use two approaches:
envoy=1.2.3during installation and getting exactly that one, despite it not being the latest. (e.g. GitLab does this, see below)Given these, I was wondering what you had in mind for the envoy repo.
phlax commentedon Sep 14, 2024
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)
matihost commentedon Sep 14, 2024
Yes, i can confirm that envoy package from jammy works on Ubuntu noble (24.04).
psvmcc commentedon Sep 18, 2024
Hi, maybe use single repo like vector did? Without building for each distro, only for package system.
phlax commentedon Sep 18, 2024
not sure tbh
firstly i dont want to add a
script-from-interwebs-that-needs-root.shthen 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
GhostLyrics commentedon Sep 18, 2024
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:
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>phlax commentedon Sep 18, 2024
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
well, that is arguably the case
GhostLyrics commentedon Sep 18, 2024
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:
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.iooroutdated-apt.envoyproxy.io, for example. Not as pretty asarchivebut certainly makes it very clear what you're getting.phlax commentedon Sep 18, 2024
yeah - i considered adding a
unsupportedapt repo/sit 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
GhostLyrics commentedon Sep 18, 2024
Glad to hear it!
If you don't want to use a subdomain for the archive repo, you could use the
componentsfield of the spec.If users then want to activate it, they would change:
It would require some more configuration of your aptly repo.
phlax commentedon Sep 18, 2024
would it not be possible to just add a directory
unsupportedand move everything under that - so users doit 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
unsupportedsomewhere to continue using the repo for old versions thoGhostLyrics commentedon Sep 18, 2024
This has the same effect as what I suggested but it's less clean.
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:
Is this super clean? No, because you'll also have supported packages in
unsupportedfor some time, but the only manual task left here would be periodically unpublishing releases you no longer want from themainone.phlax commentedon Sep 18, 2024
by low maintenance im meaning
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
phlax commentedon Sep 18, 2024
envoyproxy/apt#23