-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Velero policy does not contain necessary S3 PutObjectTagging permissions #518
Comments
if their policy contains this, we'll support it - but not before then |
Looks like they've approved the PR to add it to their docs - I'll post back here once it's merged. Thanks, @bryantbiggs |
@bryantbiggs FYI, the upstream PR to include this in the docs has been merged. |
This issue has been resolved in version 5.44.2 🎉 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
The
velero-plugin-for-aws
supports tagging the objects in S3, as advertised here and implemented here. This requires thes3:PutObjectTagging
permission for the bucket, which the current velero policy here does not contain.Versions
Module version [Required]:
5.44.0
Terraform version: OpenTofu
1.7.3
5.66.0
Reproduction Code [Required]
Probably a bit overkill, but: https://github.com/chrisRedwine/velero-mre
The following steps show not only how to reproduce the behavior, but also how the fix in this PR resolves the issue:
tofu init
andtofu apply
to create and configure the required resources (VPC, EKS, EBS CSI driver, Snapshot Controller, Velero, Pod w/ PVC and data, etc.).ebs-pvc-pod
has run and saved data to the volume.velero backup create ebs-test-broken --include-namespaces=default --snapshot-move-data
.velero backup describe ebs-test-broken
shows the backup failed.use_fixed_velero_policy
variable interraform.tfvars
totrue
in thechrisRedwine/velero-mre
repo.tofu apply
velero
pods to restart so that they use the fixed IRSA.velero backup create ebs-test-fixed --include-namespaces=default --snapshot-move-data
.velero backup describe ebs-test-fixed
shows the backup succeeded.tofu destroy
afterwards)Expected behavior
The command should succeed without any errors.
Actual behavior
The command fails with the following permissions issue (taken from the
velero
pod logs):Notice that the IRSA role lacks the
s3:PutObjectTagging
permission, which it needs because of this code.Additional context
velero-plugin-for-aws
repo.The text was updated successfully, but these errors were encountered: