Skip to content

False rollout happening when LTPA is enabled caused by the last rotation label #886

Open

Description

@kabicin

In the Liberty application controller, GetSecretLastRotationLabel can fail due to a race between the Deployment and Secret when updating last rotation labels/annotations together.

In this case, the Deployment is updated with an annotation marking the last rotation time of the LTPA Secret. It is possible in a quick succession of events that the Secret's label update has not had enough time to update the informer cache. On the next call to client.Get() the Secret's labels are seen as empty, which causes a false rollout for the Deployment which is recreated by omitting the last rotation field. Eventually, the Secret's label information is updated to the informer cache, which properly rolls out the correct Deployment.

A fix might be to add a fallback query the API server instead of relying on the informer cache in case the Secret's labels are determined to be empty.

Activity

  1. leochr commented on Oct 5, 2026

    @leochr
    Member

    Discussed with Kirby. The additional reconcile is unnecessary and we should fix that. The LTPA secret must be rotated by the user to trigger this. Given this doesn't impact the availability of the app (one or more instance would still be available during the rolling update) and the it self-corrects (in the next reconcile), we decided to fix in next/future release (after 1.6.3).

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions