Skip to content

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

Merged
sijie merged 3 commits into
apache:masterfrom
zymap:function-superuser-permission
May 4, 2021
Merged

Fixes function api can not use authdata to check superuser#10364
sijie merged 3 commits into
apache:masterfrom
zymap:function-superuser-permission

Conversation

@zymap

@zymap zymap commented Apr 25, 2021

Copy link
Copy Markdown
Member

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.

@fantapsody fantapsody left a comment

Copy link
Copy Markdown
Contributor

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

zymap commented Apr 28, 2021

Copy link
Copy Markdown
Member Author

ping @freeznet @codelipenghui @sijie PTAL. Thanks

@freeznet freeznet left a comment

Copy link
Copy Markdown
Contributor

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