Shared mining infrastructure needs a clear boundary between who can view performance, who can change configuration, and who can move or receive funds. Subaccounts and role-based permissions can make that boundary easier to manage, but only when identifiers, ownership, and audit records are configured deliberately. EMCD’s pool API supports master-account roles and subaccount access; operators should compare those scopes with their internal separation-of-duties policy before connecting systems.
Why account boundaries matter
A farm may be operated by a company, a hosting provider, technicians, customers, and an accounting team. These parties rarely need the same level of access. A technician may need device status but not payout settings. A reporting system may need read-only hashrate and reward data. A finance user may reconcile payments without changing worker endpoints.
When credentials are shared, access becomes difficult to revoke and actions are hard to attribute. Separate identities make it easier to disable one contractor without rotating every integration. A subaccount can help group devices by site or customer, but it is not automatically a legal or accounting boundary. Confirm precisely which data and actions it isolates.
Build permissions in the right order
Permission design works best as a sequence. Establish identity and scope first; then add monitoring, review, and recovery procedures. The following ranked control checklist prioritizes foundational controls over convenience:
| Rank | Control | Example implementation | Review question |
|---|---|---|---|
| 1 | Named identity | Individual account or service principal per person or system | Can an action be traced to one actor? |
| 2 | Least privilege | Read-only access for dashboards; write access only where required | Does each role have only the necessary scope? |
| 3 | Subaccount mapping | Separate IDs by site, customer, or operational unit | Is the ownership and reporting boundary documented? |
| 4 | Secret lifecycle | Vault storage, rotation, revocation, and no secrets in logs | Can access be removed without production downtime? |
| 5 | Audit trail | Record actor, timestamp, endpoint, object, and result | Can the team reconstruct a configuration change? |
| 6 | Periodic review | Remove dormant users and test recovery paths | Do permissions still match current roles? |
This order reflects control dependencies: identity and scope come before monitoring and review. The EMCD pool API documents its authentication and role model; check the current schema and account behavior before implementation.
What to check in API permissions
The API documentation describes HMAC-SHA256 request signatures, a timestamp requirement, and master-account scopes that include read-only and read-write roles. It also describes using a subaccount identifier to request data for a specific subaccount. Exact scopes matter: an integration that only reports hashrate should not receive write permissions for subaccounts or addresses without a documented need.
Timestamp-based signatures make clock synchronization part of security and reliability. If the client clock drifts beyond the documented tolerance, valid requests can fail. Keep time synchronized, test the integration, and monitor authentication errors separately from network errors. Never include an API secret or complete signature inputs in application logs.
Match roles to operational needs
A practical access matrix makes permission decisions reviewable. Defaults should be narrow, and any broader access should have an owner and a reason.
| Role | Typical need | Suggested default | Avoid by default |
|---|---|---|---|
| Operations viewer | Status, hashrate, alerts | Read-only access | Changing wallet or account settings |
| Site technician | Assigned hardware and incident actions | Narrow device or site scope | Organization-wide account control |
| Finance reviewer | Reward and payout records | Read-only reporting | Worker configuration changes |
| Integration service | Scheduled metrics | Scoped API key and protected secret | Human login or broad permissions |
| Account owner | User and account administration | Restricted, monitored identity | Daily use of owner credentials for scripts |
Exact roles depend on platform features and company controls. If a platform cannot express a required boundary, document the limitation and apply compensating controls in the surrounding system.
Roll out a subaccount integration safely
Start with one noncritical subaccount and a read-only integration. Confirm that returned devices, earnings, and worker identifiers match the intended boundary. Test expired keys, incorrect timestamps, missing subaccount IDs, and insufficient permissions. Add write scopes only after those tests pass, and keep a manual recovery route.
Before creating subaccounts, decide what each grouping represents: location, customer, legal entity, algorithm, or reporting team. Do not make one identifier represent several unrelated boundaries. Maintain a mapping with the internal owner, platform subaccount ID, assigned devices, reporting audience, and approved actions. Reconcile it after hardware moves or customer changes.
| Review event | What to inspect | Evidence to retain |
|---|---|---|
| New employee or contractor | Role, site scope, expiry, and training | Approval and account assignment |
| Site or customer transfer | Device mapping and report visibility | Before-and-after inventory |
| API integration launch | Key owner, scopes, storage, and logs | Test result and credential reference, never the secret |
| Role change or offboarding | Disable access and rotate shared dependencies | Revocation timestamp and owner |
| Security incident | Exposed scopes, affected records, and recovery actions | Incident timeline and remediation |
Treat access as a lifecycle
Permissions should change when responsibilities change. A technician moving to another site may need a different device scope; a contractor’s access should end when the engagement ends; a reporting script should be disabled when the integration is retired. Keep an owner for each key and record its purpose, creation date, permissions, and rotation or expiry plan. An unowned service credential is a risk because no one knows whether it can be revoked safely.
Use a two-person check for sensitive changes where the platform and team size allow it. One person prepares the change; another verifies the target account, site, or address. Require an approval record for broad configuration changes, and test emergency access separately from daily access. This helps prevent a routine dashboard credential from becoming the only route to recover the system.
Separate data access from control access. An analyst may need historical rewards to prepare a report, while an operator may need to restart devices or change a worker. If one platform role combines these capabilities, consider exporting reports into a separate store and restricting the privileged platform account. The compensating control should preserve audit history and should not expose sensitive data publicly.
Test revocation and recovery
A permission design is incomplete until the team has tested how to revoke a key and restore operations. In a staging environment, disable one service credential, confirm that expected requests fail, and verify that an authorized replacement can be created without exposing the secret. Document the owner and recovery path. Keep emergency access protected and monitored rather than leaving a shared administrator password in a runbook.
If an API key might be exposed, revoke it promptly, review logs for use outside the expected pattern, rotate dependent credentials, and document the incident. Do not paste an exposed key into a ticket or chat to ask whether it is valid. A response should reference the credential record, not reproduce the secret.
Frequently asked questions
Are subaccounts the same as separate legal entities?
No. A software account structure does not establish corporate ownership, custody, tax, or legal separation. Use it for operational grouping only unless the service terms and legal analysis establish more.
Should an API key be shared across a team?
Avoid sharing secrets. Use individual identities or service-specific keys where the platform supports them. Shared credentials make revocation and attribution harder and increase the impact of a leak.
How often should permissions be reviewed?
Set a recurring schedule based on staff turnover, system criticality, and policy. Review after role changes, vendor offboarding, suspected exposure, and major integration changes. Record what was checked and what was removed.
What should be logged?
Log actor or service identity, time, action, target object, request outcome, and correlation ID. Exclude secrets, private keys, signatures, and unnecessary personal data.
Conclusion
Subaccounts are useful when their boundaries match real operational responsibilities. Define identities, permissions, and audit requirements first; test read-only access before enabling changes. Treat API documentation as the technical contract, and periodically verify the mapping between people, service keys, sites, and subaccounts.





