Network and database access, without 0.0.0.0/0
Locked out because your IP changed? Shardherd adds your current public IP to the project's IP access list for the hours you choose, and Atlas deletes the entry itself when the time is up, even if the app is closed. Temporary database users work the same way. Every entry and user shows how long it has left.
Allow my current IP for N hours
The most common reason an Atlas connection fails is an IP that isn't on the project's access list: a new office, a hotel, a phone hotspot. The common "fix" is 0.0.0.0/0, which opens every cluster in the project to the internet and tends to stay there. Shardherd makes the safe option the quick one: tap Allow my current IP, pick a duration, confirm with Face ID. The entry is created with an expiry date (Atlas's deleteAfterDate, up to one week ahead), so the clean-up is Atlas's job, not something you have to remember.
Background on the list, the 200-entry limit and why /0 is risky: how to whitelist an IP in Atlas.
The whole access list, readable
See every entry in the project with its comment, whether it is a single IP or a CIDR range, and the time left on temporary ones. Delete an entry you no longer need with Face ID first. Changing the list needs the Project Owner or Project Network Access Manager role in Atlas.
Temporary database users
Need to give a contractor, a script or yourself database access for an afternoon? Create a database user with an expiry and the role it needs, and Atlas deletes it when the time is up. Existing users show their roles and, for temporary ones, how long they have left, which is also the quickest way to explain a sudden bad auth : authentication failed.
Two access lists, explained
Atlas has a second list on the API credentials an app like Shardherd uses. Organizations created in the Atlas UI require it, and calls from an address that isn't listed get HTTP 403, which matters for a phone whose IP changes during the day. Shardherd checks for this when you connect and tells you which options you have. The API keys guide has the details.
Questions
What happens to the IP entry if I delete the app?
Nothing changes: the entry lives in Atlas, and Atlas deletes it at the expiry time you chose, whether or not Shardherd is installed.
What is the longest an entry can last?
Atlas accepts expiry dates up to one week ahead for temporary access list entries and temporary database users.
Does Shardherd connect to my database?
Not in the first version. It manages Atlas through the Atlas Administration API at cloud.mongodb.com. A Data Explorer that connects directly is planned.
Sources
- Configure IP Access List Entrieswww.mongodb.com
- Configure Database Userswww.mongodb.com
- Configure API Accesswww.mongodb.com
Shardherd brings your Atlas clusters to iPhone.