သဘောတရား
Troubleshooting ML security issues
Work out whether a failure is a permission or a network path, then read the error and the CloudTrail event.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
AccessDenied on CreateTrainingJob
- Likely cause
- Missing PassRole
- Check
- Caller policy
Denied reading encrypted data
- Likely cause
- Key policy or role lacks KMS rights
- Check
- KMS key policy
Image pull times out
- Likely cause
- No ECR or S3 endpoint, no NAT
- Check
- VPC endpoints
Bedrock call times out
- Likely cause
- No interface endpoint or route
- Check
- Endpoints, Flow Logs
Job cannot call any API
- Likely cause
- Network isolation on
- Check
- Job settings
| Symptom | Likely cause | Check |
|---|---|---|
| AccessDenied on CreateTrainingJob | Missing PassRole | Caller policy |
| Denied reading encrypted data | Key policy or role lacks KMS rights | KMS key policy |
| Image pull times out | No ECR or S3 endpoint, no NAT | VPC endpoints |
| Bedrock call times out | No interface endpoint or route | Endpoints, Flow Logs |
| Job cannot call any API | Network isolation on | Job settings |
1 / 2
AccessDenied on CreateTrainingJob
- Likely cause
- Missing PassRole
- Check
- Caller policy
Denied reading encrypted data
- Likely cause
- Key policy or role lacks KMS rights
- Check
- KMS key policy
Image pull times out
- Likely cause
- No ECR or S3 endpoint, no NAT
- Check
- VPC endpoints
| Symptom | Likely cause | Check |
|---|---|---|
| AccessDenied on CreateTrainingJob | Missing PassRole | Caller policy |
| Denied reading encrypted data | Key policy or role lacks KMS rights | KMS key policy |
| Image pull times out | No ECR or S3 endpoint, no NAT | VPC endpoints |
2 / 2
Bedrock call times out
- Likely cause
- No interface endpoint or route
- Check
- Endpoints, Flow Logs
Job cannot call any API
- Likely cause
- Network isolation on
- Check
- Job settings
| Symptom | Likely cause | Check |
|---|---|---|
| Bedrock call times out | No interface endpoint or route | Endpoints, Flow Logs |
| Job cannot call any API | Network isolation on | Job settings |
ဘာလဲ
AccessDenied has several causes. The role lacks the action or resource in its identity policy. The caller lacks iam:PassRole for the execution role. The data is encrypted with a KMS key that the role or key policy does not allow, which looks like a denied S3 read although the bucket policy is fine. A bucket policy denies the request, for example because it requires a VPC endpoint or HTTPS. An SCP, a permissions boundary or a session policy denies it. Or the trust policy does not let the service assume the role. Newer error messages say which kind it was.
ဘာလဲ
Network failures are timeouts, not denials. A training job, endpoint or Studio app in a private subnet with no NAT gateway cannot reach S3, ECR or CloudWatch Logs without VPC endpoints: a gateway endpoint for S3, interface endpoints for ECR (the API and the Docker registry) and for logs. A missing Bedrock interface endpoint makes Bedrock calls time out. Security groups must allow outbound HTTPS from the job and inbound HTTPS to the endpoint. A job with network isolation has no network at all, by design, so code that calls an API fails.
ဘာလဲ
Trace in this order. Read the error text. Find the failed call in CloudTrail and read its errorCode and errorMessage. Test the policy with the IAM policy simulator. Run IAM Access Analyzer policy validation, or generate a policy from real activity. For network paths, check VPC Flow Logs for REJECT records and VPC Reachability Analyzer.
မှတ်ထားရန်
- Timeouts mean network. Denials mean permissions.
- No NAT in a private subnet: S3, ECR and logs need VPC endpoints.
- Tools: CloudTrail, policy simulator, Access Analyzer, Flow Logs.
စာမေးပွဲမှာ
- “Job in a private subnet cannot pull the image” points to missing ECR and S3 VPC endpoints.
- “S3 read fails although the bucket policy allows it” points to the KMS key permissions.
- “Training call fails with iam:PassRole” points to PassRole on the execution role.
- “Which policy denied this request?” points to the CloudTrail error message and the policy simulator.
ဒါတွေနဲ့ မရောပါနဲ့
- IAM roles for SageMaker and ML workloadsTwo identities are involved: the person or app who calls the API, and the execution role SageMaker assumes. PassRole joins them.
- Isolating ML systems with VPCsRun ML in private subnets, reach AWS services through endpoints, and turn on network isolation where code must not call out.
- Logs and tracing to troubleshoot ML systemsRead the signal first: logs for container errors, traces for slow hops, CloudTrail for denied or failed API calls.
ဒီ task ထဲမှာ · 4.3
- Scanning code and images in CI/CD
- Least privilege for ML artifacts
- IAM roles for SageMaker and ML workloads
- Bedrock access control
- Credential types for Bedrock
- Auditing, logging and compliance for ML
- Troubleshooting ML security issues
- Isolating ML systems with VPCs
- Encryption and data protection for ML
- AI and ML security risks
Guardrails