-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
backend/s3: Ignore default workspace prefix errors #34511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% TF_ACC=1 go test ./internal/backend/remote-state/s3/...
ok github.com/hashicorp/terraform/internal/backend/remote-state/s3 150.979s
Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
In versions prior to v1.6, the S3 backend ignored all errors other than
NoSuchBucket
when listing workspaces. This allowed cases where the user did not have access to the default workspace prefixenv:
to succeed.In order to preserve this behaviour, now ignore
AccessDenied
errors when the user does not have access to the default workspace prefix. Ifworkspace_key_prefix
is specified,AccessDenied
errors will cause a failure.Updates documentation to list permissions needed when using workspaces.
Fixes #34223
Target Release
1.7.0
Draft CHANGELOG entry
BUG FIXES
env: