Skip to content

Anonymous role resolution change may break stored Authentication objects #57711

Closed
@tvernum

Description

@tvernum

In #53453 we moved the resolution of the anonymous role from authorization time to authentication time.
As a consequence, it is likely that stored Authentication headers (as used in Watcher, ML and CCR) may see a change in behaviour.

Assume a cluster with the anonymous role set to superuser .
In 7.7, if user with no other roles authenticated and created a new Watch, we would serialize an Authentication object with no roles. When the watch ran we would deserialize that object, but we would run the with superuser privileges because the AuthorizationService would add the role in automatically.

If that same Authentication object is deserialized on 7.8, it will have no roles, and will not be granted the superuser role because the anonymous role logic no longer exists in the AuthorizationService.

We intend to revert #53453 and come up with a new solution to the original problem regarding reporting of anonymous roles.

Metadata

Metadata

Assignees

Labels

:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>bugTeam:SecurityMeta label for security teamblocker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions