Skip to content

feat: get mapped controls resolver - #2481

Merged
golanglemonade merged 16 commits into
mainfrom
feat-get-mapped-controls-resolver
Jun 18, 2026
Merged

feat: get mapped controls resolver#2481
golanglemonade merged 16 commits into
mainfrom
feat-get-mapped-controls-resolver

Conversation

@golanglemonade

@golanglemonade golanglemonade commented Jun 15, 2026

Copy link
Copy Markdown
Member

Adds new controlReports and controlReportByCategory resolvers to enable the control report in the UI. These will return simplfied data for the report, its based on the control object so the same filters work, but its not all the data that can be returned on the full control object. RelatedControls was also added to the control object so that the UI can pull organization + mapped framework controls without using the mapped control data and mapping them back

Example when filtered on framework (and refCode for simplicity). It returns the category, controls under each category with refCode, description, title, related controls (mapped controls based on mappedControl data but returns only those available in the organization if if the mapping is from a system-owned mapping), evidenceStatus, linkedPolicies with simple data, and subcontrols with all the same data.

{
  "data": {
    "controlReportsByCategory": [
      {
        "category": "Control Environment",
        "controls": [
          {
            "id": "01KTYJ9TEMAHNVCQQ5WVA8AHWW",
            "refCode": "CC1.1.1",
            "relatedControls": [
              {
                "refCode": "CC1.1",
                "id": "01KTYJFQ169EJB4G2F16GXMAZS",
                "description": "The entity demonstrates a commitment to integrity and ethical values (COSO Principle 1)",
                "isSubcontrol": false,
                "referenceFramework": "SOC 2"
              },
              {
                "refCode": "A1.2",
                "id": "01KTYJFQ169EJB4G2F1H1NZ14W",
                "description": "The entity authorizes, designs, develops or acquires, implements, operates, approves, maintains, and monitors environmental protections, software, data backup processes, and recovery infrastructure to meet its objectives.",
                "isSubcontrol": false,
                "referenceFramework": "SOC 2"
              },
              {
                "refCode": "CC1.1.3",
                "id": "01KTYJ9TEMAHNVCQQ5WTJ2Y1MB",
                "description": "New hires are required to complete an acknowledgment form upon hire consenting to not disclose confidential or proprietary client and company information to unauthorized parties.",
                "isSubcontrol": false,
                "referenceFramework": null
              }
            ],
            "linkedPolicies": {
              "totalCount": 1,
              "internalPolicies": [
                {
                  "id": "01KTYAHYPNX96PES1JB95NKX6W",
                  "name": "Access Onboarding and Termination Policy",
                  "status": "DRAFT"
                }
              ]
            },
            "evidenceStatus": {
              "totalCount": 1,
              "worstStatus": "MISSING_ARTIFACT",
              "approvedCount": 0,
              "countByStatus": [
                {
                  "status": "MISSING_ARTIFACT",
                  "totalCount": 1
                }
              ]
            },
            "subcontrols": []
          }
        ]
      }
    ]
  },
  "extensions": {
    "auth": {
      "authentication_type": "api_token",
      "authorized_organization": [
        "01KTW6K1QRQ6DZRJ1GV1SHSF8S"
      ]
    },
    "server_latency": "41.510125ms",
    "trace_id": "qFmzjgSTjUZtMZSYECIwqFmCfzhiDZHM"
  }
}

@theopenlane-bender

Copy link
Copy Markdown

🔧 Configuration Changes Detected

This PR contains changes that will affect the Helm chart configuration. A draft infrastructure PR has been automatically created to preview these changes:

📋 Draft PR: https://github.com/theopenlane/openlane-infra/pull/1007

Changes Preview:

✅ Updated ConfigMap template

  • 🔄 Merged Helm values.yaml
  • 🔐 External secrets configuration updated
  • ✅ Updated ConfigMap template

The draft infrastructure PR will be closed automatically after this core PR is merged.

@golanglemonade
golanglemonade marked this pull request as ready for review June 17, 2026 21:28
@golanglemonade
golanglemonade requested a review from a team as a code owner June 17, 2026 21:28
@golanglemonade
golanglemonade force-pushed the feat-get-mapped-controls-resolver branch from 33264d3 to dc6139f Compare June 17, 2026 21:28
@golanglemonade
golanglemonade force-pushed the feat-get-mapped-controls-resolver branch from 99d5e70 to c8493bb Compare June 18, 2026 17:02
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
@golanglemonade
golanglemonade force-pushed the feat-get-mapped-controls-resolver branch from 3f30200 to 792a76e Compare June 18, 2026 20:32
@github-actions github-actions Bot removed the common label Jun 18, 2026
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
@golanglemonade
golanglemonade enabled auto-merge (squash) June 18, 2026 21:07
@sonarqubecloud

Copy link
Copy Markdown

@golanglemonade
golanglemonade merged commit ea94b34 into main Jun 18, 2026
20 checks passed
@golanglemonade
golanglemonade deleted the feat-get-mapped-controls-resolver branch June 18, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants