Connection Vault
The Connection Vault securely stores MongoDB connection strings with encryption.
What is the Connection Vault?โ
The Connection Vault provides:
- Secure Storage: Encrypted connection strings
- Easy Access: Use saved connections
- Team Sharing: Share connections with team
- Connection Testing: Verify connections work
Adding Connectionsโ
Manual Entryโ
-
Go to Connection Vault:
- Navigate to settings
- Click "Connection Vault"
- Click "Add Connection"
-
Enter Details:
- Name: Descriptive name
- Connection String: MongoDB URI
- Database: Default database
- Allowed Collections: Restrict access (optional)
-
Test Connection:
- Click "Test Connection"
- Verify connection works
- Save if successful
From Atlasโ
If using MongoDB Atlas:
- Auto-Detect: NetPad can detect clusters
- Select Cluster: Choose from available clusters
- Auto-Configure: Connection configured automatically
Connection Securityโ
Encryptionโ
- AES-256-GCM: Strong encryption
- Encrypted Storage: Connection strings encrypted at rest
- Key Management: Encryption keys managed securely
- Never Exposed: Keys never stored in database
Access Controlโ
- Organization Level: Connections per organization
- Role-Based: Access based on role
- Permission Control: Who can view/use connections
Using Connectionsโ
In Formsโ
When creating forms:
- Select Connection: Choose from vault
- Select Database: Choose database
- Select Collection: Choose collection
- Auto-Connect: Connection used automatically
In Workflowsโ
When building workflows:
- MongoDB Nodes: Use saved connections
- Select Connection: Choose from vault
- Configure Query: Set up query
- Execute: Workflow uses connection
In Data Explorerโ
When browsing data:
- Select Connection: Choose connection
- Browse Collections: View collections
- Access Data: Use connection securely
Managing Connectionsโ
Editing Connectionsโ
- Open Connection: Click connection
- Edit Details: Modify settings
- Update: Save changes
- Test: Verify still works
Testing Connectionsโ
- Test Button: Test connection anytime
- Status Indicator: Shows connection status
- Error Messages: Clear error information
- Auto-Test: Periodic health checks
Deleting Connectionsโ
- Select Connection: Choose to delete
- Confirm Deletion: Confirm action
- Check Dependencies: Warn if in use
- Delete: Remove connection
Sharing Connectionsโ
With Team Membersโ
- Organization Level: Shared with organization
- Role-Based: Based on permissions
- View Only: Some roles view-only
- Full Access: Admins have full access
Connection Permissionsโ
- Owner: Full control
- Admin: Can edit and use
- User: Can use connection
- Viewer: View only
Best Practicesโ
- Use Descriptive Names: Name connections clearly
- Test Regularly: Verify connections work
- Limit Access: Use allowed collections
- Rotate Credentials: Update passwords regularly
- Monitor Usage: Track connection usage