hashicorp / vault-plugin-database-couchbase

Mozilla Public License 2.0
6 stars 5 forks source link

template: change default template to truncate username at 128 chars #19

Closed calvn closed 3 years ago

calvn commented 3 years ago

Change the default template to truncate usernames at 128 characters since this is the hard cap on Couchbase according to their docs.

Previous to Vault 1.7.0 (before username customization support got added to this engine), the generation of usernames went through credsutil.GenerateUsername, which had an internal cap of 100 characters for username that it generates, thus preventing this issue from occurring.