Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@inteon
Copy link
Member

@inteon inteon commented Mar 25, 2024

Update the vendored atomic writer to match upstream.

See kubernetes/kubernetes@96306f1

Release notes:
Updated the atomic writer based on upstream changes: Files are now chowned before being made visible to the workload, avoiding a possible race condition.

@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 25, 2024
@inteon inteon force-pushed the update_atomic_writer branch from 8438789 to 1f84151 Compare March 25, 2024 09:50
@munnerz
Copy link
Member

munnerz commented Mar 25, 2024

Awesome, so this also moves the chown step to before the atomic update operation, in turn helping to avoid a race condition where the files may not have the current permission bits set immediately after they are made visible to the workload?

Can you update the title/release note to reflect this behavioural change so it can bubble up into release notes?

@inteon inteon changed the title Update atomic writer Update atomic writer based on upstream: avoiding chown race condition Mar 25, 2024
Copy link
Member

@munnerz munnerz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm
/kind bug

@jetstack-bot jetstack-bot added kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. labels Mar 25, 2024
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: munnerz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 25, 2024
@jetstack-bot jetstack-bot merged commit bff7666 into cert-manager:main Mar 25, 2024
This was referenced Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants