Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Reports
    • Case Studies
    • Whitepapers
    • Blog
    • Testimonials
    • Community
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Career
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • My License
  • Download
search

How Do I Stop My Tasks Prompting For Database Passwords? #Studio3T_AMA

Posted on: 12/01/2022 by DJ Walker-Morgan

Q: How do I stop my Tasks prompting for database passwords?

Welcome to the latest Studio 3T Ask Manatees Anything – #Studio3T_AMA. Want to know how to use Studio 3T to make your MongoDB life better? Just tweet and use #Studio3T_AMA or email [email protected].

A: For a Task to run unattended, it needs to be able to make its database connections without any user intervention. You can configure a connections to a databases in the Connections Manager to use a saved database password. If you leave the field blank, Studio 3T will prompt for a database password from the user when connecting. It’s that latter case that causes a Task to need user input.

The simple solution to this, is to save a password with the connection the task. You set this in the Authentication tab of the Connection Manager. By setting the password in the Authentication tab, the connection is usable without user intervention. Studio 3T saves these passwords using our own default encryption system. 

Adding A Master Password

If you want to ensure that only authorised users have access to the connections with passwords, enable the cryptographic key store in Studio 3T. This adds a layer of defence by using a master password to encrypt stored keys (and passwords). You will then have to enter the master password when you start Studio 3T. Without the master password, Studio 3T will not be able to decrypt saved database passwords. 

Using the cryptographic key store is also useful for situations where you want to control access to the credentials stored in Studio 3T. It helps ensure only users with the master password can start and use the application.

You can enable the cryptographic key store when installing Studio 3T for the first time, or from Studio 3T’s preferences. Studio 3T will decrypt passwords to make use of them. This means that saved passwords can be made visible when exporting MongoDB connection strings. By default, passwords are omitted from connection strings.

Export Connections defaults to not export database passwords.
Export Connections

If you do want to include the stored passwords, you will have to select the option at the top of the Export Connections dialog. This also applies to the Export URI option:

Export URI uses the same default settings as Export Connections.
Export URI

As you can see, this makes accidental leakage of passwords much less likely.

If you consider this is still an issue, consider configuring your MongoDB to use certificate-based authentication to avoid this particular possibility. For most client side operations, securely storing the passwords and only extracting them when needed is an effective strategy.


How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

DJ Walker-Morgan

Dj has been around since Commodore had Pets and Apples grew everywhere. With a background in Unix and development, he's been around the technology business writing code or writing content ever since.

Related articles

  • What is the fastest way to make a database connection? #Studio3T_AMA
  • MongoDB, A Database with Porpoise – When You Have a Whale of a Performance Problem
  • How to Copy a MongoDB Collection to Another Database
  • The Main NoSQL Database Types
  • 6 Tips for Adding MongoDB to Your Database Architecture

Tags

academy aggregation AMA atlas community connections date tags events export features hackolade import intellishell JSON knowledge base migration modelling mongodb mongoodb productivity query regex releases schema security SQL Studio 3T tasks tips updates webinar windows

Browse by MongoDB topic

  • Connecting to MongoDB
  • Database Administration & Security
  • Getting Started with MongoDB
  • Getting Started with Studio 3T
  • Import/Export
  • Job Automation & Scheduling
  • MongoDB Aggregation Framework
  • MongoDB/Studio 3T Workshops
  • Performance
  • Query & CRUD Operations
  • Reference
  • Schema
  • Studio 3T Licensing
  • Support and other resources
  • Working with MongoDB & SQL
  • Working with MongoDB Atlas

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • Case Studies
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2022 3T Software Labs GmbH. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum
When you click "Accept", you are agreeing to cookies being on your device. They may improve site navigation, site usage analysis, or the relevance of messages. It is up to you which cookies are enabled. Read our Privacy Policy.
Manage cookies
Accept
✕

Privacy Preference Center

A cookie is a small file of letters and numbers that is downloaded on to your computer when you visit a website. Cookies are used by many websites and can do a number of things, eg remembering your preferences, recording what you have put in your shopping basket, and counting the number of people looking at a website. In the form below you can choose which cookies, except for essential cookies, to allow or disable.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected