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

Fixes function api can not use authdata to check superuser #10364

Merged
merged 3 commits into from
May 4, 2021

Conversation

zymap
Copy link
Member

@zymap zymap commented Apr 25, 2021


Fixes #10332

Motivation

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from #8560,
it's safe to change it since there is no release for that.

---

Fixes apache#10332

*Motivation*

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.
Copy link
Contributor

@fantapsody fantapsody left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@zymap
Copy link
Member Author

zymap commented Apr 28, 2021

ping @freeznet @codelipenghui @sijie PTAL. Thanks

Copy link
Contributor

@freeznet freeznet left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sijie sijie added this to the 2.8.0 milestone May 4, 2021
@sijie sijie merged commit 76c93a3 into apache:master May 4, 2021
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request May 11, 2021
)

---

Fixes apache#10332

*Motivation*

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from apache#8560,
it's safe to change it since there is no release for that.
zymap added a commit to zymap/pulsar that referenced this pull request Jul 22, 2021
---

*Motivation*

Port the fix apache#10364 to the branch 2.7.

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from apache#8560,
it's safe to change it since there is no release for that.'

*Modifications*

Change the isSuperUser method to accept the authenticationData
and pass it to the authentication provider. So authenticatoin prodiver
can get the data saved in the authenticationDataSource.
zymap added a commit that referenced this pull request Jul 22, 2021
…er (#11418)

---

*Motivation*

Port the fix #10364 to the branch 2.7.

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from #8560,
it's safe to change it since there is no release for that.'

*Modifications*

Change the isSuperUser method to accept the authenticationData
and pass it to the authentication provider. So authenticatoin prodiver
can get the data saved in the authenticationDataSource.
jerrypeng pushed a commit to jerrypeng/incubator-pulsar that referenced this pull request Nov 4, 2021
)

---

Fixes apache#10332

*Motivation*

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from apache#8560,
it's safe to change it since there is no release for that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function api not pass the auth data to check superuser role
6 participants