Suggestions on permission self-check
As a MaxCompute project moves from rapid development to stable operations, permissions granted early for convenience can create data security risks. Run the checks below to identify excessive access, then apply the recommended adjustments to reduce exposure.
Permission self-check
Account and permission checks
| Check item | Priority | What to look for | How to check |
|---|---|---|---|
| Number of accounts | High | Each project member must own exactly one account. Multiple accounts per person make user management error-prone and audit trails unreliable. | Review the user list and flag duplicates. |
| Abandoned accounts | High | Accounts that are no longer active but still hold permissions. An abandoned RAM user that is not properly removed displays as p4_xxxxxxxxxxxxxxxxxxxx and cannot be deleted. To remove it, you must first revoke the role from the RAM user in the project, and then delete the RAM user from the project. | Run list users; on the MaxCompute client and cross-reference with your active member roster. |
| Overstayed permissions | High | Members whose roles have changed but still hold their old permissions. | Review each member's current role and revoke permissions that no longer match their responsibilities. Notify affected members, and delete accounts that have been inactive for an extended period. |
| Shared accounts | Medium | Multiple members sharing a single account via an SDK that exposes an AccessKey pair. Once a key is shared, task ownership is untraceable—when an incident occurs, you cannot determine who submitted what. | Use the Information Schema TASKS_HISTORY view to identify accounts with unusually high task volumes across varied task types. |
| Personal account activity patterns | Medium | Abnormal task distributions that may indicate account misuse. | Query the TASKS_HISTORY view for personal accounts in the development phase over the last three months. Collect statistics on the top N users and analyze typical accounts. |
To view the user list, run the following command on the MaxCompute client:
list users;To analyze personal account activity, query the TASKS_HISTORY view from the Information Schema. A healthy pattern for an algorithm development account: most tasks are SQL tasks involving queries and table writes in the development environment, with fewer MapReduce and algorithm tasks. A red flag: many tasks submitted by a single account across different task types may indicate that account's AccessKey pair is being shared by multiple members through an SDK.
Data flow checks
| Check item | Priority | What to look for | How to check |
|---|---|---|---|
| Data download volume | High | Projects or accounts downloading data at unexpected scale. Once data leaves MaxCompute, its transmission is uncontrollable and cannot be revoked. | Use the TUNNELS_HISTORY view from the Information Schema to collect statistics on download request tasks by project. |
To analyze data downloads, query the TUNNELS_HISTORY view from the Information Schema to identify which projects and accounts are downloading data and at what volume.
Suggestions on permission adjustment
After completing the self-check, apply the following adjustments to harden your project's security posture.
Account and permission allocation
One account per member. Shared accounts make audit trails unreliable—when something goes wrong, you cannot determine who did it.
Grant permissions based on role and team, not by individual request. Tying permissions to business functions makes it easier to update them when someone's role changes.
Do not allow account sharing. Excessive permissions from shared accounts are a leading cause of data security incidents.
A common approach to account allocation in data development is to organize by business group:
| Business group | Typical responsibilities |
|---|---|
| Management group | Project oversight and governance |
| Data integration group | Data ingestion and pipeline management |
| Data model group | Schema design and modeling |
| Algorithm group | ML/AI development |
| Analysis group | Data querying and reporting |
| O&M group | Operations and maintenance |
| Security group | Permission management and auditing |
Grant each group only the data access permissions their work requires.
Data throttling
Restrict data export from specific projects. Free data flow between projects can disrupt your data architecture and create untracked paths for data leakage. Apply cross-project data throttling to most projects—allow data to flow only to explicitly approved projects or locations at the MaxCompute level.
Minimize file-based data export from MaxCompute. Once data is exported as files, its transmission is uncontrollable and cannot be revoked. Restrict specific business groups from exporting data based on their role. This does not affect their day-to-day development work within MaxCompute.