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

credsutil: Include underscore as part of reqStr #3037

Merged
merged 3 commits into from
Aug 3, 2017
Merged

Conversation

calvn
Copy link
Contributor

@calvn calvn commented Jul 19, 2017

Fixes #3036

@calvn calvn requested a review from jefferai July 19, 2017 18:37
@calvn calvn changed the title credsutil: Include '-' as part of reqStr credsutil: Include underscore as part of reqStr Jul 19, 2017
@calvn
Copy link
Contributor Author

calvn commented Jul 19, 2017

Changed to use underscore because Cassandra doesn't like "-" for their usernames unless the statement wraps the username with double quotes. I feel like credsutil.RandomAlphaNumeric could be refactored to be more flexible especially since it is used for handling multiple DB's that might have different requirements, but this should do for now on existing DB's.

@jefferai jefferai added this to the 0.8.0 milestone Aug 2, 2017
@jefferai
Copy link
Member

jefferai commented Aug 2, 2017

I think we landed on using a hyphen since any backends that need underscores instead already do that conversion? Or am I misremembering?

@calvn
Copy link
Contributor Author

calvn commented Aug 3, 2017

That's right. I was getting CI errors for the cassandra db plugin because the character conversion for the username was not ported over, but it's now fixed.

@jefferai jefferai merged commit 7d55652 into master Aug 3, 2017
@jefferai jefferai deleted the db-pwd-specialchars branch August 3, 2017 11:34
chrishoffman pushed a commit that referenced this pull request Aug 8, 2017
* oss/master: (55 commits)
  update dr replication docs with the promotion response (#3124)
  Make travis_wait Travis wait longer_wait
  changelog++
  Set allowed headers via API instead of defaulting to wildcard. (#3023)
  Fix formatting in mfa docs (#3122)
  Fix minor typo (#3120)
  Update go-plugin to include go-hclog support
  Unlock the statelock on unsuccessful sealInitCommon
  Remove a couple unneeded cancels
  Make seal/stepdown functions async internally so they can poke the request context
  Update mock-plugin (#3107)
  Fix minor grammatical error (#3110)
  docs: MFA API (#3109)
  Cut version 0.8.0-rc1
  Update version
  Migrate physical backends into separate packages (#3106)
  changeling ++
  changelog++
  changelog++
  credsutil: Include hyphen as part of reqStr (#3037)
  ...
issacg added a commit to ironSource/vault-redshift-plugin that referenced this pull request Aug 9, 2017
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.

2 participants