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.
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.