-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Rename user.username
to user.name
for SetSecurityUserProcessor
#51799
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
Comments
Pinging @elastic/es-security (:Security/Security) |
Pinging @elastic/es-core-features (:Core/Features/Ingest) |
Summary from team discussion:
|
@albertzaharovits Could you please review my following analysis and proposed solution? I have some new findings which lead to a slightly different approach. Thanks! The name of the top level field used to store authentication information is configurable. The example in the doc configures it to be "user". However, in theory, this field can be called anything. For ESC to be really applicable here, the parent field must be named as "user". If it is not, there is no point to apply ECS to the sub-fields, since ESC's choice of using "name" instead of "username" is to follow the Avoid repetition guideline. In addition, we could even argue that when the parent field is not Therefore my plan is as follows:
|
Per Tim's comment, I am tightening the behaviour so that: |
In the light of this, maybe we should nest all the user properties under a Maybe it's better to continue this discussion under #54051 (review) |
Pinging @elastic/es-security (Team:Security) |
Pinging @elastic/es-data-management (Team:Data Management) |
The SetSecurityUserProcessor auguments ingested documents by adding an user object, where the
username
field does not conform to the recommended naming convention (name
) described in ECS. The purpose of this issue is to faciliate discussion on whether we should rename this field.PS: there are a few other fields under the user object. They are either confirm to ECS (
email
,full_name
) or have no definition in ECS, i.e. custom fields (metadata
,roles
etc). Both situations are valid per ECS spec.The text was updated successfully, but these errors were encountered: