spiegel_podman/pkg/api/handlers/compat
Mikhail Dmitrichenko 3ba76de619 api: avoid sizing logs channel from tail
The compat logs handler uses the tail query parameter both to select how
many log lines should be returned and as the capacity of the internal log
channel.

Only the former is part of the API semantics. The channel capacity should
not depend on a user-controlled value: negative values can produce an
invalid channel size, while very large values can cause excessive
allocation before any logs are read.

Use a small fixed-size buffer instead.

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko00@bk.ru>
2026-06-26 10:31:13 +03:00
..
auth.go API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
changes.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
containers_archive.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
containers_attach.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_create.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
containers_export.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_logs.go api: avoid sizing logs channel from tail 2026-06-26 10:31:13 +03:00
containers_pause.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_prune.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_restart.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_start.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats_freebsd.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats_linux.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stop.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_top.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_unpause.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
events.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
exec.go exec: honor ConsoleSize so the terminal is sized at creation 2026-06-22 10:36:10 +08:00
images.go cmd, commit: change --pause default to true 2026-06-03 07:28:22 +02:00
images_build.go Adjust API calls for compression 2026-05-29 09:10:50 -04:00
images_history.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_prune.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_push.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
images_remove.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_tag.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
info.go info: report configured and discovered CDI devices 2026-06-01 21:45:41 +02:00
networks.go API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
ping.go RUN-4538: Fix buildah vendoring 2026-04-21 14:27:58 -05:00
resize.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
secrets.go API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
system.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
types.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
unsupported.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
version.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
volumes.go Merge pull request #28673 from kyounghunJang/feat/add-volume-prune-dry-run 2026-05-18 19:26:18 +02:00