Skip to content

Secure codejail code-exec #927

@timmc-edx

Description

@timmc-edx

The codejail-service IDA currently runs all code directly, without sandboxing. We need to ensure it runs code securely in all circumstances.

Acceptance criteria

  • Testing procedure is complete enough to validate security of a deployment's sandboxing: Create codejail functionality and security test script #896 (parallel work)
  • Devstack deployment runs code-exec securely (or, if manual steps are required, rejects code-exec until those steps are taken)
  • CODEJAIL_ENABLED is still disabled by default, and is not yet enabled in edge and prod
  • If IDA is misconfigured, refuse to answer code-exec calls, and return a 500 on the healthcheck endpoint
  • Go through apparmor profile carefully and make sure we understand every line, stripping it down to just the most essential and restrictive profile that still works.

Implementation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done - Long Term Storage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions