Skip to content

Commit 49f589d

Browse files
Merge pull request #12525 from mheon/bump_343
Backports for and bump to v3.4.3
2 parents 1aeb61c + 014bbdb commit 49f589d

File tree

335 files changed

+8760
-12028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+8760
-12028
lines changed

RELEASE_NOTES.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Release Notes
22

3+
## 3.4.3
4+
### Security
5+
- This release addresses CVE-2021-4024, where the `podman machine` command opened the `gvproxy` API (used to forward ports to `podman machine` VMs) to the public internet on port 7777.
6+
- This release addresses CVE-2021-41190, where incomplete specification of behavior regarding image manifests could lead to inconsistent decoding on different clients.
7+
8+
### Features
9+
- The `--secret type=mount` option to `podman create` and `podman run` supports a new option, `target=`, which specifies where in the container the secret will be mounted ([#12287](https://github.com/containers/podman/issues/12287)).
10+
11+
### Bugfixes
12+
- Fixed a bug where rootless Podman would occasionally print warning messages about failing to move the pause process to a new cgroup ([#12065](https://github.com/containers/podman/issues/12065)).
13+
- Fixed a bug where the `podman run` and `podman create` commands would, when pulling images, still require TLS even with registries set to Insecure via config file ([#11933](https://github.com/containers/podman/issues/11933)).
14+
- Fixed a bug where the `podman generate systemd` command generated units that depended on `multi-user.target`, which has been removed from some distributions ([#12438](https://github.com/containers/podman/issues/12438)).
15+
- Fixed a bug where Podman could not run containers with images that had `/etc/` as a symlink ([#12189](https://github.com/containers/podman/issues/12189)).
16+
- Fixed a bug where the `podman logs -f` command would, when using the `journald` logs backend, exit immediately if the container had previously been restarted ([#12263](https://github.com/containers/podman/issues/12263)).
17+
- Fixed a bug where, in containers on VMs created by `podman machine`, the `host.containers.internal` name pointed to the VM, not the host system ([#11642](https://github.com/containers/podman/issues/11642)).
18+
- Fixed a bug where containers and pods created by the `podman play kube` command in VMs managed by `podman machine` would not automatically forward ports from the host machine ([#12248](https://github.com/containers/podman/issues/12248)).
19+
- Fixed a bug where `podman machine init` would fail on OS X when GNU Coreutils was installed ([#12329](https://github.com/containers/podman/issues/12329)).
20+
- Fixed a bug where `podman machine start` would exit before SSH on the started VM was accepting connections ([#11532](https://github.com/containers/podman/issues/11532)).
21+
- Fixed a bug where the `podman run` command with signal proxying (`--sig-proxy`) enabled could print an error if it attempted to send a signal to a container that had just exited ([#8086](https://github.com/containers/podman/issues/8086)).
22+
- Fixed a bug where the `podman stats` command would not return correct information for containers running Systemd as PID1 ([#12400](https://github.com/containers/podman/issues/12400)).
23+
- Fixed a bug where the `podman image save` command would fail on OS X when writing the image to STDOUT ([#12402](https://github.com/containers/podman/issues/12402)).
24+
- Fixed a bug where the `podman ps` command did not properly handle PS arguments which contained whitespace ([#12452](https://github.com/containers/podman/issues/12452)).
25+
- Fixed a bug where the `podman-remote wait` command could fail to detect that the container exited and return an error under some circumstances ([#12457](https://github.com/containers/podman/issues/12457)).
26+
- Fixed a bug where the Windows MSI installer for `podman-remote` would break the PATH environment variable by adding an extra `"` ([#11416](https://github.com/containers/podman/issues/11416)).
27+
28+
### API
29+
- Updated the containers/image library to v5.17.0
30+
- The Libpod Play Kube endpoint now also accepts `ConfigMap` YAML as part of its payload, and will use provided any `ConfigMap` to configure provided pods and services.
31+
- Fixed a bug where the Compat Create endpoint for Containers would not always create the container's working directory if it did not exist ([#11842](https://github.com/containers/podman/issues/11842)).
32+
- Fixed a bug where the Compat Create endpoint for Containers returned an incorrect error message with 404 errors when the requested image was not found ([#12315](https://github.com/containers/podman/pull/12315)).
33+
- Fixed a bug where the Compat Create endpoint for Containers did not properly handle the `HostConfig.Mounts` field ([#12419](https://github.com/containers/podman/issues/12419)).
34+
- Fixed a bug where the Compat Archive endpoint for Containers did not properly report errors when the operation failed ([#12420](https://github.com/containers/podman/issues/12420)).
35+
- Fixed a bug where the Compat Build endpoint for Images ignored the `layers` query parameter (for caching intermediate layers from the build) ([#12378](https://github.com/containers/podman/issues/12378)).
36+
- Fixed a bug where the Compat Build endpoint for Images did not report errors in a manner compatible with Docker ([#12392](https://github.com/containers/podman/issues/12392)).
37+
- Fixed a bug where the Compat Build endpoint for Images would fail to build if the context directory was a symlink ([#12409](https://github.com/containers/podman/issues/12409)).
38+
- Fixed a bug where the Compat List endpoint for Images included manifest lists (and not just images) in returned results ([#12453](https://github.com/containers/podman/issues/12453)).
39+
40+
### Misc
41+
- Updated the containers/image library to v5.17.0
42+
- Updated the containers/storage library to v1.37.0
43+
- Podman now builds by default with cgo enabled on OS X, resolving some issues with SSH ([#10737](https://github.com/containers/podman/issues/10737)).
44+
345
## 3.4.2
446
### Bugfixes
547
- Fixed a bug where `podman tag` could not tag manifest lists ([#12046](https://github.com/containers/podman/issues/12046)).

cmd/podman/common/create_opts.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c
102102
addField(&builder, "type", string(m.Type))
103103
addField(&builder, "source", m.Source)
104104
addField(&builder, "target", m.Target)
105-
addField(&builder, "ro", strconv.FormatBool(m.ReadOnly))
105+
if m.ReadOnly {
106+
addField(&builder, "ro", "true")
107+
}
106108
addField(&builder, "consistency", string(m.Consistency))
107109
// Map any specialized mount options that intersect between *Options and cli options
108110
switch m.Type {

cmd/podman/pods/logs.go

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ type logsOptionsWrapper struct {
2727
var (
2828
logsPodOptions logsOptionsWrapper
2929
logsPodDescription = `Displays logs for pod with one or more containers.`
30-
logsPodCommand = &cobra.Command{
30+
podLogsCommand = &cobra.Command{
3131
Use: "logs [options] POD",
3232
Short: "Fetch logs for pod with one or more containers",
3333
Long: logsPodDescription,
34-
// We dont want users to invoke latest and pod togather
34+
// We dont want users to invoke latest and pod together
3535
Args: func(cmd *cobra.Command, args []string) error {
3636
switch {
3737
case registry.IsRemote() && logsPodOptions.Latest:
@@ -53,35 +53,16 @@ var (
5353
podman pod logs --follow=true --since 10m podID
5454
podman pod logs mywebserver`,
5555
}
56-
57-
containerLogsCommand = &cobra.Command{
58-
Use: logsPodCommand.Use,
59-
Short: logsPodCommand.Short,
60-
Long: logsPodCommand.Long,
61-
Args: logsPodCommand.Args,
62-
RunE: logsPodCommand.RunE,
63-
ValidArgsFunction: logsPodCommand.ValidArgsFunction,
64-
Example: `podman pod logs podId
65-
podman pod logs -c ctrname podName
66-
podman pod logs --tail 2 mywebserver
67-
podman pod logs --follow=true --since 10m podID`,
68-
}
6956
)
7057

7158
func init() {
59+
// pod logs
7260
registry.Commands = append(registry.Commands, registry.CliCommand{
73-
Command: logsPodCommand,
74-
})
75-
logsFlags(logsPodCommand)
76-
validate.AddLatestFlag(logsPodCommand, &logsPodOptions.Latest)
77-
78-
// container logs
79-
registry.Commands = append(registry.Commands, registry.CliCommand{
80-
Command: containerLogsCommand,
61+
Command: podLogsCommand,
8162
Parent: podCmd,
8263
})
83-
logsFlags(containerLogsCommand)
84-
validate.AddLatestFlag(containerLogsCommand, &logsPodOptions.Latest)
64+
logsFlags(podLogsCommand)
65+
validate.AddLatestFlag(podLogsCommand, &logsPodOptions.Latest)
8566
}
8667

8768
func logsFlags(cmd *cobra.Command) {

contrib/msi/podman.wxs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
</Directory>
3333

3434
<Property Id="setx" Value="setx.exe"/>
35-
<CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
35+
<!-- Directory table entries have a trailing slash, so an extra backslash is needed to prevent escaping the quote -->
36+
<CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]\&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
3637

3738
<Feature Id="Complete" Level="1">
3839
<ComponentRef Id="INSTALLDIR_Component"/>

contrib/podmanimage/stable/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ RUN useradd podman; \
1919
echo podman:10000:5000 > /etc/subuid; \
2020
echo podman:10000:5000 > /etc/subgid;
2121

22-
RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
23-
2422
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf
2523
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf /home/podman/.config/containers/containers.conf
2624

25+
RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
26+
2727
# Note VOLUME options must always happen after the chown call above
2828
# RUN commands can not modify existing volumes
2929
VOLUME /var/lib/containers

contrib/podmanimage/testing/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ RUN useradd podman; \
1919
echo podman:10000:5000 > /etc/subuid; \
2020
echo podman:10000:5000 > /etc/subgid;
2121

22-
RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
23-
2422
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf
2523
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf /home/podman/.config/containers/containers.conf
2624

25+
RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
26+
2727
# Note VOLUME options must always happen after the chown call above
2828
# RUN commands can not modify existing volumes
2929
VOLUME /var/lib/containers

contrib/podmanimage/upstream/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ RUN useradd podman; \
6868
echo podman:10000:5000 > /etc/subuid; \
6969
echo podman:10000:5000 > /etc/subgid;
7070

71-
RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
72-
7371
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf
7472
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf /home/podman/.config/containers/containers.conf
7573

74+
RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
75+
7676
# Note VOLUME options must always happen after the chown call above
7777
# RUN commands can not modify existing volumes
7878
VOLUME /var/lib/containers

contrib/spec/podman.spec.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Epoch: 99
3636
%else
3737
Epoch: 0
3838
%endif
39-
Version: 3.4.3
39+
Version: 3.4.4
4040
Release: #COMMITDATE#.git%{shortcommit0}%{?dist}
4141
Summary: Manage Pods, Containers and Container Images
4242
License: ASL 2.0

docs/source/markdown/podman-build.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ given.
114114

115115
#### **--cert-dir**=*path*
116116

117-
Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry.
117+
Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry. (Default: /etc/containers/certs.d)
118118
Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client)
119119

120120
#### **--cgroup-parent**=*path*

docs/source/markdown/podman-container-runlabel.1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Display the label's value of the image having populated its environment variable
4141

4242
#### **--cert-dir**=*path*
4343

44-
Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry. Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client)
44+
Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry. (Default: /etc/containers/certs.d)
45+
Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client)
4546

4647
#### **--creds**=*[username[:password]]*
4748

0 commit comments

Comments
 (0)