Skip to content

[NIFI-3439] when users type into sensitive property fields in NiFI, t…#1546

Closed
scottyaslan wants to merge 1 commit intoapache:masterfrom
scottyaslan:NIFI-3439
Closed

[NIFI-3439] when users type into sensitive property fields in NiFI, t…#1546
scottyaslan wants to merge 1 commit intoapache:masterfrom
scottyaslan:NIFI-3439

Conversation

@scottyaslan
Copy link
Contributor

…he values on the screen/browser should be masked *** unless specified by user to show plain text.

Thank you for submitting a contribution to Apache NiFi.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

  • Is your initial contribution a single, squashed commit?

For code changes:

  • Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
  • If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
  • If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

…he values on the screen/browser should be masked *** unless specified by user to show plain text.
@mcgilman
Copy link
Contributor

Will review...

@mcgilman
Copy link
Contributor

Hey @scottyaslan,

This is a great start, but I think there are a few fundamental issues with how PropertyDescriptors relay what sort of editor should be used. There does not appear to be a cross-browser support for masking textareas (multi-line input). There exists sensitive properties that currently expect the field to support multi-line input. The input[type=password] only supports a single line.

I think we would need to introduce a new attribute of PropetyDescriptor which would drive whether or not to use a masked single line input or the existing multi-line textarea. The existing multi-line textareas support sensitive by not returning/showing the value once set. We would not be able to support a PropertyDescriptor that requires masking and multi-line input.

Additional complications exist for sensitive properties that support expression language. We'd have to spend some time to determine if CodeMirror supports masking or if it's possible to introduce that sort of capability. If not, we would not be able to support a PropertyDescriptor that requires masking and supports expression language.

@trixpan
Copy link
Contributor

trixpan commented Apr 10, 2017

@trixpan
Copy link
Contributor

trixpan commented Apr 10, 2017

The approach linked above seems to work on chrome without the javascript but firefox required the js code.

@trixpan
Copy link
Contributor

trixpan commented Apr 10, 2017

forget it. Seen what @mcgilman was referring to. Possible to play with text area but it becomes single line. :-(

@Ramakrishnan-V
Copy link

Ramakrishnan-V commented Apr 16, 2017

Hi @mcgilman,

I strongly agree on your point that need to introduce new attribute of PropetyDescriptor which would drive whether or not to use a masked single line input or the existing multi-line textarea. Our focus is only on properties that require user to enter password. All sensitive properties need not be a password property. And password properties are supposed to be single line and should not support expression-language. (Also i believe password boxes cannot be created without <input type="password">)

Also understand the impact that you mentioned -

There exists sensitive properties that currently expect the field to support multi-line input. The input[type=password] only supports a single line.

I am willing to contribute.. Would be great if you could suggest some good place for me to look for impact...

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.

4 participants