Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

METRON-1962: Make entering JDBC details in REST config to be optional#1318

Closed
anandsubbu wants to merge 3 commits intoapache:masterfrom
anandsubbu:METRON-1962
Closed

METRON-1962: Make entering JDBC details in REST config to be optional#1318
anandsubbu wants to merge 3 commits intoapache:masterfrom
anandsubbu:METRON-1962

Conversation

@anandsubbu
Copy link
Copy Markdown
Contributor

Contributor Comments

The following parameters related to JDBC is now optional to enter in REST config:

  • Metron JDBC URL
  • Metron JDBC Driver
  • Metron JDBC username
  • Metron JDBC password
  • Metron JDBC platform

** Testing Done **

  • Made these changes on a multi-node setup and verified that Ambari UI does not mandate for these parameters to be configured.

Pull Request Checklist

Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.

In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:

For all changes:

  • Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
  • Does your PR title start with METRON-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)?

For code changes:

  • Have you included steps to reproduce the behavior or problem that is being changed or addressed?

  • Have you included steps or a guide to how the change may be verified and tested manually?

  • Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:

    mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh 
    
  • Have you written or updated unit tests and or integration 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?

  • Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:

    cd site-book
    mvn site
    

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.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.

<display-name>User password attribute</display-name>
<description>LDAP attribute for the user password</description>
<value-attributes>
<type>password</type>
Copy link
Copy Markdown
Contributor Author

@anandsubbu anandsubbu Jan 3, 2019

Choose a reason for hiding this comment

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

While I was here, I also set the LDAP password type appropriately.

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.

This isn't actually a password, it's the LDAP attribute that contains the password for a given user. It doesn't need the password type.

The default is just the value "userPassword", because that's at least often where the value is stored.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh okay, got it. Sorry, I mis-interpreted it. Let me revert this change.

Copy link
Copy Markdown
Contributor

@justinleet justinleet Jan 3, 2019

Choose a reason for hiding this comment

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

To add to this, check out

userPassword:admin-password

The field is "userPassword", but the actual value is "admin-password". In an actual instance with hashed passwords it might be "userPassword:{SSHA}<hashed password>".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yup, makes sense.

@mmiklavc
Copy link
Copy Markdown
Contributor

mmiklavc commented Jan 3, 2019

@anandsubbu @justinleet Does this require any doc updates now that these values are not going to be required?

@anandsubbu
Copy link
Copy Markdown
Contributor Author

@anandsubbu @justinleet Does this require any doc updates now that these values are not going to be required?

@mmiklavc , I updated the README. Let me know what you think.

@anandsubbu
Copy link
Copy Markdown
Contributor Author

@mmiklavc and @justinleet let me know if anything else is required for this PR.

@mmiklavc
Copy link
Copy Markdown
Contributor

mmiklavc commented Jan 9, 2019

@anandsubbu - doc change looks good to me. I was most concerned there may have been something talking about requiring those fields in doc changes in this PR - https://github.com/apache/metron/pull/1246/files but it doesn't look like it. @justinleet can you confirm we didn't miss anything there? I'm +1 by inspection pending Justin's feedback.

@justinleet
Copy link
Copy Markdown
Contributor

+1 by inspection, thanks @anandsubbu!

@justinleet
Copy link
Copy Markdown
Contributor

@mmiklavc Just to answer your question explicitly, we should have been good. The change here should have been in the original PR, so I wouldn't expect any doc changes. There are ways to improve this further, but I think just making it not required for everyone is a good start.

@anandsubbu
Copy link
Copy Markdown
Contributor Author

Thanks @mmiklavc and @justinleet !

@asfgit asfgit closed this in 46b4c15 Jan 22, 2019
JonZeolla pushed a commit to JonZeolla/metron that referenced this pull request Jan 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants