Skip to content

bogus "Couldn't authenticate user: Invalid username/password" error #415

Closed
@Dieterbe

Description

@Dieterbe

trying to connect with a valid user and pass, but incorrect database specified, yields "Couldn't authenticate user: Invalid username/password" error.
this wording is very confusing, arguably incorrect. maybe it should say something like "Could not authenticate with user/pass on database"

I've noticed this with both the admin web interface, as well as the python client.

Activity

Dieterbe

Dieterbe commented on Apr 7, 2014

@Dieterbe
ContributorAuthor

if the db doesn't even exist, maybe the error should just be "this database doesn't exist"

jvshahid

jvshahid commented on Apr 7, 2014

@jvshahid
Contributor

I'm worried that someone can use the error message to detect valid database names. InfluxDB is built to be a multitenant database, this error message leaks information that could potentially be a security risk. That's my opinion, I'm happy to hear other's opinion on this.

pauldix

pauldix commented on Apr 7, 2014

@pauldix
Member

I could go either way on this. On the one hand, better error messages is better usability. But I see the potential security issue. Maybe we should optimize for usability? For those that care about security, they probably won't be exposing InfluxDB directly to the net anyway. Thus they'll have a proxy that everything has to go through and they can hide things there.

Dieterbe

Dieterbe commented on Apr 7, 2014

@Dieterbe
ContributorAuthor

ok so maybe no "this database doesn't exist" messages. but then at least we can say "the user/password/database combination is incorrect", which reveals nothing, yet is clearer that it can be any of those 3 that's wrong.

jvshahid

jvshahid commented on Apr 7, 2014

@jvshahid
Contributor

Ok, that's doable. Moving this to 0.5.6

added this to the 0.5.6 milestone on Apr 7, 2014
self-assigned this
on Apr 7, 2014
malthe

malthe commented on Sep 8, 2014

@malthe
Contributor

Not sure if this is related, but I get some strange characters in that error message:

error

jvshahid

jvshahid commented on Sep 8, 2014

@jvshahid
Contributor

@malthe This issue is closed and is not related. can you you trace the request using tcpdump or wireshark and send the reuslts on the mailing list with the error you're getting. I'm suspecting this has something to do with compression.

malthe

malthe commented on Sep 8, 2014

@malthe
Contributor

@jvshahid – I have started a new topic on the mailing list and attached the wireshark dump.

added a commit that references this issue on Feb 10, 2025

Merge pull request #415 from influxdata/feat/cli-env-var-for-email-ad…

8acd75f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      bogus "Couldn't authenticate user: Invalid username/password" error · Issue #415 · influxdata/influxdb