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

[improve][txn] Cleanup how superusers abort txns #38

Closed
wants to merge 1 commit into from

Conversation

michaeljmarshall
Copy link
Owner

PR for tests

michaeljmarshall added a commit to apache/pulsar that referenced this pull request Apr 6, 2023
### Motivation

This PR builds on #19467. When we modify/abort transactions, we need to make sure that authorization is checked for both the proxy and the client.

### Modifications

* Add a second authorization check when `originalPrincipal` is set in the `ServerCnx`.
* Fix a bug where we were not doing a deep copy of the `SubscriptionsList` object. (Tests caught this bug!)

### Verifying this change

Added a new test to cover some of the changes.

### Does this pull request potentially affect one of the following parts:

This is an internal change.

### Documentation

- [x] `doc-not-needed`

### Matching PR in forked repository

PR in forked repository: michaeljmarshall#38
michaeljmarshall added a commit to apache/pulsar that referenced this pull request Apr 6, 2023
This PR builds on #19467. When we modify/abort transactions, we need to make sure that authorization is checked for both the proxy and the client.

* Add a second authorization check when `originalPrincipal` is set in the `ServerCnx`.
* Fix a bug where we were not doing a deep copy of the `SubscriptionsList` object. (Tests caught this bug!)

Added a new test to cover some of the changes.

This is an internal change.

- [x] `doc-not-needed`

PR in forked repository: michaeljmarshall#38

(cherry picked from commit f76beda)
michaeljmarshall added a commit to apache/pulsar that referenced this pull request Apr 7, 2023
This PR builds on #19467. When we modify/abort transactions, we need to make sure that authorization is checked for both the proxy and the client.

* Add a second authorization check when `originalPrincipal` is set in the `ServerCnx`.
* Fix a bug where we were not doing a deep copy of the `SubscriptionsList` object. (Tests caught this bug!)

Added a new test to cover some of the changes.

This is an internal change.

- [x] `doc-not-needed`

PR in forked repository: michaeljmarshall#38

(cherry picked from commit f76beda)
(cherry picked from commit 5a180f78d7636537198a758e1c9416e58d80bf42)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request May 11, 2023
This PR builds on apache#19467. When we modify/abort transactions, we need to make sure that authorization is checked for both the proxy and the client.

* Add a second authorization check when `originalPrincipal` is set in the `ServerCnx`.
* Fix a bug where we were not doing a deep copy of the `SubscriptionsList` object. (Tests caught this bug!)

Added a new test to cover some of the changes.

This is an internal change.

- [x] `doc-not-needed`

PR in forked repository: michaeljmarshall#38

(cherry picked from commit f76beda)
(cherry picked from commit 5a180f78d7636537198a758e1c9416e58d80bf42)
(cherry picked from commit 716db37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant