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

Add text field attribute to hide sensitive input config #13873

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

thll
Copy link
Contributor

@thll thll commented Nov 3, 2022

Description

Adds an is_sensitive attribute to hide input config in the same way as the is_password attribute. Enables masking of sensitive values not only for password fields.

Motivation and Context

Closes #13383

How Has This Been Tested?

Set custom_properties in Kafka input config and checked that

  • it's shown in plaintext when editing the input
  • it's shown as ******** on the inputs overview page
  • when the user does not have the inputs:edit permission, the field's value is masked with <value hidden> in the response to GET /api/system/inputs

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@thll thll marked this pull request as ready for review November 4, 2022 06:31
@thll thll requested review from mpfz0r, AntonEbel and mnin November 4, 2022 06:31
Copy link
Contributor

@mnin mnin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@AntonEbel AntonEbel left a comment

Choose a reason for hiding this comment

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

LGTM.

@thll thll merged commit ee646a4 into master Nov 8, 2022
@thll thll deleted the mask-kafka-custom-properties branch November 8, 2022 13:43
thll added a commit that referenced this pull request Nov 9, 2022
thll added a commit that referenced this pull request Nov 10, 2022
…3922)

* Add text field attribute to hide sensitive input config (#13873)

(cherry picked from commit ee646a4)

* Add changelog snippet for #13837
mnin added a commit that referenced this pull request Nov 10, 2022
* master:
  Bump @typescript-eslint/parser (#13904)
  Bump @typescript-eslint/eslint-plugin (#13902)
  fixed Extractor order can't be changed (#13915)
  Updating yarn lockfile (#13924)
  [graylog2-server] prepare for next development iteration
  Bump package.json version to 5.0.0-SNAPSHOT
  [graylog2-server] prepare release 5.0.0-beta.3
  Bump package.json version to 5.0.0-beta.3
  Limits the number of unknown field validation messages (#13923)
  Bump stylelint (#13907)
  Bump eslint-plugin-jest (#13903)
  Bump jest-environment-jsdom (#13920)
  Bump babel-jest in /graylog2-web-interface/packages/jest-preset-graylog (#13918)
  Bump jest in /graylog2-web-interface/packages/jest-preset-graylog (#13917)
  Bump @jest/types in /graylog2-web-interface/packages/jest-preset-graylog (#13919)
  Add text field attribute to hide sensitive input config (#13873)
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.

Custom default Reader role
3 participants