Skip to content
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

Alternator: Support new DeletionProtectionEnabled feature #14482

Open
nyh opened this issue Jul 3, 2023 · 2 comments · May be fixed by #14864
Open

Alternator: Support new DeletionProtectionEnabled feature #14482

nyh opened this issue Jul 3, 2023 · 2 comments · May be fixed by #14864
Labels
area/alternator Alternator related Issues
Milestone

Comments

@nyh
Copy link
Contributor

nyh commented Jul 3, 2023

As recently announced in https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-dynamodb-table-deletion-protection/, DynamoDB added a new option for tables, DeletionProtectionEnabled. This option can be set or unset on a table with CreateTable and UpdateTable. If set for a table, the table cannot be deleted with DeleteTable.

This is not a security feature and is separate from IAM support (#5047) - a user can still delete any table by first disabling its DeletionProtectionEnabled protection, and then deleting it. This feature was only meant as a way to protect against accidental deletion of tables.

@nyh nyh added the area/alternator Alternator related Issues label Jul 3, 2023
nyh added a commit to nyh/scylla that referenced this issue Jul 3, 2023
This patch adds to docs/alternator/compatibility.md mentions of three
recently-added DynamoDB features (ReturnValuesOnConditionCheckFailure,
DeletionProtectionEnabled and TableClass) which Alternator does not yet
support.

Each of these mentions also links to the github issue we have on each
feature - issues scylladb#14481, scylladb#14482 and scylladb#10431 respectively.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>
nyh added a commit to nyh/scylla that referenced this issue Jul 12, 2023
This patch adds to docs/alternator/compatibility.md mentions of three
recently-added DynamoDB features (ReturnValuesOnConditionCheckFailure,
DeletionProtectionEnabled and TableClass) which Alternator does not yet
support.

Each of these mentions also links to the github issue we have on each
feature - issues scylladb#14481, scylladb#14482 and scylladb#10431 respectively.

During a review of this patch, the reviewers didn't like that I used
words like "recent" and "new" to describe recently-added DynamoDB
features, and asked that I use specific dates instead. So this is what
I do in this patch for the new features - and I also went back and
fixed a few pre-existing references to "recent" and "new" features,
and added the dates.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>
kbr-scylla pushed a commit that referenced this issue Jul 13, 2023
This patch adds to docs/alternator/compatibility.md mentions of three
recently-added DynamoDB features (ReturnValuesOnConditionCheckFailure,
DeletionProtectionEnabled and TableClass) which Alternator does not yet
support.

Each of these mentions also links to the github issue we have on each
feature - issues #14481, #14482 and #10431 respectively.

During a review of this patch, the reviewers didn't like that I used
words like "recent" and "new" to describe recently-added DynamoDB
features, and asked that I use specific dates instead. So this is what
I do in this patch for the new features - and I also went back and
fixed a few pre-existing references to "recent" and "new" features,
and added the dates.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>

Closes #14483
@Rjerk
Copy link
Contributor

Rjerk commented Jul 18, 2023

Looks nice, do you have a plan for implementing the feature recently?

Rjerk added a commit to Rjerk/scylla that referenced this issue Jul 28, 2023
When the deletion protection property is enabled
for a table, the table cannot be deleted. Now
'DeletionProtectionEnabled' is fully supported
in CreateTable/UpdateTable/DescribeTable/DeleteTable.

Signed-off-by: Liu Lan <liulan_yewu@cmss.chinamobile.com>

Closes scylladb#14482
@Rjerk Rjerk linked a pull request Jul 28, 2023 that will close this issue
@Rjerk
Copy link
Contributor

Rjerk commented Jul 28, 2023

Recently our maintainer of ScyllaDB accidentally deleted a table causing data loss. Fortunately, there are snapshots to restore the data. However, supporting the table protection function is necessary, so I started to implement it: #14864

Can you review it for me?

Rjerk added a commit to Rjerk/scylla that referenced this issue Aug 1, 2023
When the deletion protection property is enabled
for a table, the table cannot be deleted. Now
'DeletionProtectionEnabled' is fully supported
in CreateTable/UpdateTable/DescribeTable/DeleteTable.

Signed-off-by: Liu Lan <liulan_yewu@cmss.chinamobile.com>

Closes scylladb#14482
@DoronArazii DoronArazii added this to the Backlog milestone Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alternator Alternator related Issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants