Yopass Administrator Guide
Introduction
This guide provides system administrators with detailed instructions for setting up, configuring, and managing Yopass integration with Ed-Fi Admin App. Yopass is a secure, one-time password sharing service that helps protect sensitive information like API credentials by creating self-destructing links.
Setting Up Yopass Integration
Step 1: Configure Admin App to Use Yopass
Add the following configuration to your Admin App environment:
{
  "USE_YOPASS": true,
  "YOPASS_URL": "http://your-yopass-service:8082"
}
Key configuration flags:
- USE_YOPASS- Set to- trueto enable Yopass integration
- YOPASS_URL- The full URL where the Yopass service is accessible
For local development:
{
  "USE_YOPASS": true,
  "YOPASS_URL": "http://localhost:8082"
}
Where to add the configuration?
You should add the following lines in the packages/api/config/local.js file, inside the module.exports object:
USE_YOPASS: true,
YOPASS_URL: 'http://your-yopass-service:8082',
For example:
module.exports = {
  // ...existing code...
  USE_YOPASS: true,
  YOPASS_URL: 'http://your-yopass-service:8082',
  // ...existing code...
};
This enables Yopass integration in the local environment or whichever environment you are configuring.
Step 2: Verify the Integration
- After configuring, restart the Admin App service
- Create or reset API client credentials in the Admin App
- Verify that a secure link is generated instead of displaying credentials directly
- Test the link to ensure it successfully retrieves the credentials
- Verify the link only works once
Troubleshooting
Common Issues
Connection Problems
Issue: Admin App can't connect to Yopass service Solution:
- Verify that Yopass service is running
- Check network connectivity between Admin App and Yopass
- Ensure firewall rules allow communication
Secret Creation Failures
Issue: Error when creating secrets Solution:
- Check Memcached/Redis is running and accessible
- Verify maximum secret size has not been exceeded
- Look for error logs in the Yopass service
Expired Secrets
Issue: Secrets expire before they can be viewed Solution:
- Adjust expiration time settings
- Check for time synchronization issues between services
Diagnostic Approaches
When troubleshooting Yopass integration, check the following:
- Verify Yopass service health status
- Examine application logs for error messages
- Test connectivity between Admin App and Yopass service
- Check memory cache status and availability
Security and Compliance Recommendations
To ensure secure and compliant operation of Yopass within the AdminApp environment, follow these recommendations:
- Treat Yopass as an internal service: Deploy Yopass so that only trusted systems within your organization can access it. Avoid exposing Yopass to the public internet.
- Restrict CORS access: Configure CORS settings to only allow requests from authorized AdminApp domains. This helps prevent unauthorized access from external sources.
- Enforce firewall rules: Limit network access to the Yopass service using firewall rules, allowing only necessary traffic from AdminApp servers.
- Enable TLS/SSL: Always use encrypted connections (HTTPS) for Yopass, especially in production environments, to protect sensitive data in transit.
- Monitor and audit usage: Regularly review logs and monitor access to Yopass for unusual activity or potential security incidents.
Following these practices will help maintain the confidentiality and integrity of sensitive information managed by Yopass.
Disabling Yopass Integration
If you need to disable Yopass integration:
- Set the USE_YOPASSconfiguration flag tofalsein the Admin App configuration
- The system will fall back to displaying credentials directly in the UI