# Protect your account and proxy credentials

Provides security management recommendations for console account numbers, sub-account passwords, agent configurations, devices, and logs.

Console credentials and agent sub-account credentials assume different privileges, but neither should be disclosed, shared, or written into client front-end code.

## Minimum permissions

- Each application uses an independent sub-account, and testing and production are separate.
- Only provide proxy configuration to services that really need access.

## Secure storage

- The password is stored in the service-side environment variable or key management system.
- The code store only retains the variable name.
- The logs are username-insensitive, and do not record passwords, full proxy URLs, or console cookies.

## Exception handling

- Disable the sub-account immediately when unknown traffic is detected.
- Save time, source, usage and request ID.
- After confirming the impact, reset the password and update the legitimate clients one by one.

## Routine inspection

- Regularly check the status of sub-accounts, traffic limits and recent usage.
- Synchronize retrieve permissions when projects end or environments go offline.
