Portainer 2.45.3 → 2.45.4
1 release · 15 breaking changes · 16 security fixes · 0 advisories fixed
16security15breaking0deprecated2feature7fix
Breaking changes
- breaking curl removed from the kubectl shell image. curl and its libraries were removed from the kubectl shell image to cut the OS-package vulnerabilities they brought in. Upgraded installs keep their existing kubectl shell image until it is updated with --kubectl-shell-image (or KUBECTL_SHELL_IMAGE) or… in 2.45.4
- breaking Stacks can only use networks the user has access to. Non-administrators could previously attach containers and stacks to Docker networks they had no access to, which bypassed network access control. Now, a non-administrator's Compose or Swarm stack that uses such a network (as external, through… in 2.45.4
- breaking In-app updates pull a specific version. In-app updates on Docker standalone and Swarm used to pull the latest tag, which on Kubernetes could report success without changing anything. They now pull the exact Portainer version tag, for example portainer/portainer-ee:2.45.4. Installs that pull images… in 2.45.4
- breaking GitOps source connection tests need write access. A user with only read access to a GitOps source could run its connection test against a different repository URL, which sent the source's stored credentials there. In CE and BE, POST /gitops/sources/{id}/test now requires write access to the source… in 2.45.4
- breaking Kubernetes permissions follow each user's role (since 2.45.0). Portainer used to carry out some Kubernetes actions with the agent's cluster-wide permissions, so a user's role wasn't always enforced. It now uses each user's own ServiceAccount, limited to the namespaces their role covers. in 2.45.4
- breaking Who is affected: users other than administrators and environment administrators. in 2.45.4
- breaking What fails: these actions now fail with a Kubernetes "forbidden" error if they include cluster-scoped resources, custom resources that Portainer's roles don't grant (for example a cert-manager Certificate), or resources in namespaces the user can't access: in 2.45.4
- breaking manifest stack deploys, updates and removals in 2.45.4
- breaking Git and webhook redeploys in 2.45.4
- breaking application rolling restarts in 2.45.4
- breaking Helm charts deployed from Git. in 2.45.4
- breaking Stacks created before the upgrade are affected when they're updated or redeployed. in 2.45.4
- breaking Access outside their namespaces: Operators, Helpdesk, Read-only and Standard users also lose access they previously had outside their namespaces, including to system namespaces. in 2.45.4
- breaking Read-only and Helpdesk users can no longer view secret values in the UI or the API, or read secrets with kubectl or a kubeconfig. Helm release values, manifests and notes are hidden from them, and the helm CLI no longer works to list releases. in 2.45.4
- breaking What to do: for deployments that fail with “forbidden”, have an administrator deploy those resources, or grant the extra permissions in the cluster. For Read-only and Helpdesk users who need to read secrets, give them a role that allows it in that namespace, such as Standard user or Operator. See… in 2.45.4
Security changes
- security Fixed GET /stacks returning stacks from environments the user cannot access. Non-admin users could list Public stacks, including their stored environment variables and Git configuration, on any environment; the list is now filtered by environment access as well as stack access control in 2.45.4
- security Fixed non-administrators being able to mount the Docker socket through the Compose use_api_socket option. The stack validator now rejects it when bind mounts are disabled for regular users in 2.45.4
- security Fixed the Compose stack validator skipping services that use profiles: and not checking include:. Non-administrator stack restrictions now apply to every service whatever its profile and include is rejected when bind mounts are disabled for regular users; in BE, the SSRF policy checks on… in 2.45.4
- security Fixed stack updates authorizing against a caller-chosen environment. PUT /stacks/{id}, POST /stacks/{id}/git and PUT /stacks/{id}/git/redeploy now return 403 when endpointId differs from the environment the stack already belongs to, so users can no longer update, re-source or redeploy stacks on… in 2.45.4
- security Fixed Git stack redeploy disclosing another environment’s stored stack environment variables. PUT /stacks/{id}/git/redeploy now rejects an endpointId that differs from the environment the stack already belongs to, so a user can no longer redeploy a stack they cannot access and read its stored Env… in 2.45.4
- security Restricted joining Docker networks to users with access to them. Non-administrators can no longer attach to a network they cannot access through container create (HostConfig.NetworkMode, NetworkingConfig.EndpointsConfig), service create and update, image build (networkmode), or Compose and Swarm… in 2.45.4
- security Fixed Docker network connect and disconnect checking only the network in the URL. Non-administrators now also need access to the container named in the request body, so they can no longer connect or disconnect containers they cannot access in 2.45.4
- security Fixed Docker network authorization ignoring EndpointSettings.NetworkID. Container create and network connect now also check the network named by NetworkID, so non-administrators can no longer use it to join a network they cannot access in 2.45.4
- security Fixed Docker proxy access checks using the wrong resource ID when the URL has extra path segments. Container, network (including connect and disconnect) and volume requests with a slash in the ID, and config and secret updates, are now authorized against the full ID instead of being skipped or… in 2.45.4
- security Fixed the /websocket/attach and /websocket/exec endpoints bypassing container access control. Non-administrators can now attach to or exec into only the containers they can access, and are refused with a 403 otherwise in 2.45.4
- security Fixed PUT /endpoints/{id}/forceupdateservice skipping the service's resource control. Non-administrators can now force-update only the Swarm services they can access, and get a 404 for both inaccessible and missing services in 2.45.4
- security Fixed stack start and stop acting on a different environment from the one authorized. POST /stacks/{id}/start and POST /stacks/{id}/stop now return 403 when endpointId is not the stack's own environment, except for administrators (in BE, also edge administrators) acting on orphaned stacks, so… in 2.45.4
- security Fixed a flaw letting a user with only read access to a GitOps source point its connection test at an attacker-controlled repository URL, sending the source's stored git credentials there. Testing a source now requires write access to send any field other than name and interval in 2.45.4
- security Restricted GitOps workflows to environments and namespaces the user can access. GET /gitops/workflows, /gitops/workflows/summary, /gitops/workflows/{id} and source workflow counts no longer show workflows on inaccessible environments (including through the default namespace fallback) and… in 2.45.4
- security Prevented deleting or demoting the last administrator. Delete and update now return 409, in BE OAuth and LDAP role sync keeps the administrator role, and concurrent user changes can no longer be lost in 2.45.4
- security Stopped registry responses returning the stored access token Portainer holds for ECR. Every registry list, inspect, create and update response and the environment registries list now clear it, including for administrators, and non-administrators no longer receive AccessTokenExpiry either in 2.45.4
Every release in between
featureIt's not possible to add Podman environments via socket, when running a Portainer server on Docker (and vice versa)
featureSupport for only CentOS 9, Podman 5 rootful
breakingcurl removed from the kubectl shell image. curl and its libraries were removed from the kubectl shell image to cut the OS-package vulnerabilities they brought in. Upgraded installs keep their existing kubectl shell image until it is updated with --kubectl-shell-image (or KUBECTL_SHELL_IMAGE) or…
breakingStacks can only use networks the user has access to. Non-administrators could previously attach containers and stacks to Docker networks they had no access to, which bypassed network access control. Now, a non-administrator's Compose or Swarm stack that uses such a network (as external, through…
breakingIn-app updates pull a specific version. In-app updates on Docker standalone and Swarm used to pull the latest tag, which on Kubernetes could report success without changing anything. They now pull the exact Portainer version tag, for example portainer/portainer-ee:2.45.4. Installs that pull images…
breakingGitOps source connection tests need write access. A user with only read access to a GitOps source could run its connection test against a different repository URL, which sent the source's stored credentials there. In CE and BE, POST /gitops/sources/{id}/test now requires write access to the source…
breakingKubernetes permissions follow each user's role (since 2.45.0). Portainer used to carry out some Kubernetes actions with the agent's cluster-wide permissions, so a user's role wasn't always enforced. It now uses each user's own ServiceAccount, limited to the namespaces their role covers.
breakingWho is affected: users other than administrators and environment administrators.
breakingWhat fails: these actions now fail with a Kubernetes "forbidden" error if they include cluster-scoped resources, custom resources that Portainer's roles don't grant (for example a cert-manager Certificate), or resources in namespaces the user can't access:
breakingmanifest stack deploys, updates and removals
breakingGit and webhook redeploys
breakingapplication rolling restarts
breakingHelm charts deployed from Git.
breakingStacks created before the upgrade are affected when they're updated or redeployed.
breakingAccess outside their namespaces: Operators, Helpdesk, Read-only and Standard users also lose access they previously had outside their namespaces, including to system namespaces.
breakingRead-only and Helpdesk users can no longer view secret values in the UI or the API, or read secrets with kubectl or a kubeconfig. Helm release values, manifests and notes are hidden from them, and the helm CLI no longer works to list releases.
breakingWhat to do: for deployments that fail with “forbidden”, have an administrator deploy those resources, or grant the extra permissions in the cluster. For Read-only and Helpdesk users who need to read secrets, give them a role that allows it in that namespace, such as Standard user or Operator. See…
securityFixed GET /stacks returning stacks from environments the user cannot access. Non-admin users could list Public stacks, including their stored environment variables and Git configuration, on any environment; the list is now filtered by environment access as well as stack access control
securityFixed non-administrators being able to mount the Docker socket through the Compose use_api_socket option. The stack validator now rejects it when bind mounts are disabled for regular users
securityFixed the Compose stack validator skipping services that use profiles: and not checking include:. Non-administrator stack restrictions now apply to every service whatever its profile and include is rejected when bind mounts are disabled for regular users; in BE, the SSRF policy checks on…
securityFixed stack updates authorizing against a caller-chosen environment. PUT /stacks/{id}, POST /stacks/{id}/git and PUT /stacks/{id}/git/redeploy now return 403 when endpointId differs from the environment the stack already belongs to, so users can no longer update, re-source or redeploy stacks on…
securityFixed Git stack redeploy disclosing another environment’s stored stack environment variables. PUT /stacks/{id}/git/redeploy now rejects an endpointId that differs from the environment the stack already belongs to, so a user can no longer redeploy a stack they cannot access and read its stored Env…
securityRestricted joining Docker networks to users with access to them. Non-administrators can no longer attach to a network they cannot access through container create (HostConfig.NetworkMode, NetworkingConfig.EndpointsConfig), service create and update, image build (networkmode), or Compose and Swarm…
securityFixed Docker network connect and disconnect checking only the network in the URL. Non-administrators now also need access to the container named in the request body, so they can no longer connect or disconnect containers they cannot access
securityFixed Docker network authorization ignoring EndpointSettings.NetworkID. Container create and network connect now also check the network named by NetworkID, so non-administrators can no longer use it to join a network they cannot access
securityFixed Docker proxy access checks using the wrong resource ID when the URL has extra path segments. Container, network (including connect and disconnect) and volume requests with a slash in the ID, and config and secret updates, are now authorized against the full ID instead of being skipped or…
securityFixed the /websocket/attach and /websocket/exec endpoints bypassing container access control. Non-administrators can now attach to or exec into only the containers they can access, and are refused with a 403 otherwise
securityFixed PUT /endpoints/{id}/forceupdateservice skipping the service's resource control. Non-administrators can now force-update only the Swarm services they can access, and get a 404 for both inaccessible and missing services
securityFixed stack start and stop acting on a different environment from the one authorized. POST /stacks/{id}/start and POST /stacks/{id}/stop now return 403 when endpointId is not the stack's own environment, except for administrators (in BE, also edge administrators) acting on orphaned stacks, so…
securityFixed a flaw letting a user with only read access to a GitOps source point its connection test at an attacker-controlled repository URL, sending the source's stored git credentials there. Testing a source now requires write access to send any field other than name and interval
securityRestricted GitOps workflows to environments and namespaces the user can access. GET /gitops/workflows, /gitops/workflows/summary, /gitops/workflows/{id} and source workflow counts no longer show workflows on inaccessible environments (including through the default namespace fallback) and…
securityPrevented deleting or demoting the last administrator. Delete and update now return 409, in BE OAuth and LDAP role sync keeps the administrator role, and concurrent user changes can no longer be lost
securityStopped registry responses returning the stored access token Portainer holds for ECR. Every registry list, inspect, create and update response and the environment registries list now clear it, including for administrators, and non-administrators no longer receive AccessTokenExpiry either
fixFixed stack webhooks silently doing nothing for inactive (stopped) Git stacks since 2.44.0. Invoking a webhook now redeploys the stack even when it is stopped, while scheduled automatic updates still skip inactive stacks
fixFixed Helm chart installs by a standard user failing when the release namespace already existed, because Helm's automatic namespace creation tried to patch it despite the user lacking permission. Namespace creation is now skipped whenever the namespace already exists
fixFixed the Atomic option being ignored on a Helm chart's first install. A failed first install with Atomic set is now rolled back and removed instead of being left in a failed state, and its default timeout is raised from 15 to 30 minutes as for upgrades [BE-13621]
fixTeam leaders can no longer remove themselves from, or change their own role in, a team they lead. DELETE and PUT /team_memberships/{id} return 403 for a non-admin's own membership, and their own row hides the Remove button
fixFixed the Users list never loading for team leaders, caused by a call to the admin-only settings endpoint
fixThe Users page's New User form, row selection and bulk delete are now shown to administrators only, not to team leaders who can't use them
fixFixed the git auto-update toggle on a Workflow or stack edit page showing enabled just because a poll interval was set, even with no webhook configured. Fixed the displayed webhook URL always using the regular stack endpoint, including for Edge Stacks, which need the Edge Stack webhook URL instead
+5 more items in the release notes