9 months ago
I am using Railway to manage a MongoDB database and have encountered an issue related to user authentication. I have configured my database on Railway, but it seems that user authentication is not working as expected.
Description of the Problem:
Database: MongoDB
Configuration on Railway: I have set up the database with the appropriate credentials, but I am able to access the database without restrictions, which suggests that authentication is not properly enabled.
Configuration File: On my local MongoDB setup (on my PC), authentication is enabled, but this does not seem to apply to the Railway environment.
Expected Behavior: I want user authentication to be enabled so that users can only access the database with the appropriate credentials.
Actions Taken:
I have attempted to connect to the database with different credentials using tools like MongoDB Compass and the mongo shell.
I have reviewed the Railway interface for options to enable or manage authentication but have not found specific configurations for this.
Request:
Could you please assist me with:
Confirming if user authentication is enabled on my MongoDB database on Railway.
Guiding me on how to correctly configure user authentication on Railway.
Informing me if there are additional steps I need to follow to ensure that authentication settings are active and functioning as expected.
Thank you in advance for your help in resolving this issue. I look forward to your response.
0 Replies
9 months ago
please ask your questions without using chat gpt, and provide actual errors.
I have a database and I try to give some roles and permissions so that certain users can enter the database, however when creating the users and logging in with them I still have the permissions as if I were in root and it does not apply the user restrictions, my question is, does this have something to do with some railway configuration?
I am a Spanish user, that's why gpt chat helps me to do te question:(
9 months ago
why do users need to log into your database?
My database is for a sports venue project, so for example the administrator can see all the collections, however the other users, for example the referee, cannot see all the collections, because of this I am creating roles, however restrictions are not being applied, I am using compass to handle this
9 months ago
I'm not sure why that means your users need to directly access the database, the only thing that should be accessing the database is your code