# AI Governance Source: https://docs.draftt.io/ai-governance Discover the AI models used across your organization and govern their usage, estimated cost, calling identities, and lifecycle risk. AI Governance shows which AI models are in use across your connected cloud and AI platforms, how many tokens they consume, their estimated cost, and who calls them. Track upcoming model retirements to plan migrations before they affect your applications. Open **AI Governance** from the main navigation to explore three tabs: **Token Usage**, **Models In Use**, and **Principals**. ## Supported Providers | Provider | Integration | Coverage | | - | - | - | | ![Amazon Bedrock logo](https://mintcdn.com/draftt/I4DH-gizvuBr9kQz/images/logos/bedrock.svg?fit=max\&auto=format\&n=I4DH-gizvuBr9kQz\&q=85\&s=ccc52c6b1e0cb532cc0622004ddd1d12)AWS Bedrock | [AWS](/aws) | Model inventory, token usage, estimated cost, and calling identities. | | ![Azure AI Foundry logo](https://mintcdn.com/draftt/I4DH-gizvuBr9kQz/images/logos/azure-ai-foundry.svg?fit=max\&auto=format\&n=I4DH-gizvuBr9kQz\&q=85\&s=c572f919edbf27e44b0365b56bf5bc41)Azure AI Foundry | [Azure](/azure) | Model inventory, token usage, and estimated cost. | | ![OpenAI logo](https://mintcdn.com/draftt/I4DH-gizvuBr9kQz/images/logos/openai.svg?fit=max\&auto=format\&n=I4DH-gizvuBr9kQz\&q=85\&s=de435e8fec74e3dcbb9d54a970f901a7)OpenAI | [OpenAI](/openai) | Model inventory, usage, and lifecycle risk. | | ![Google Gemini logo](https://mintcdn.com/draftt/I4DH-gizvuBr9kQz/images/logos/gemini.svg?fit=max\&auto=format\&n=I4DH-gizvuBr9kQz\&q=85\&s=5a019f9c87da8992211e3b4d5fb122e1)Google Gemini | [GCP](/gcp) | Model inventory, token usage, invocations, calling identities, and lifecycle risk. | Estimated costs, where available, are based on published model pricing. ## Token Usage The **Token Usage** tab shows token consumption over time, broken down into input, output, cache read, and cache write tokens. Switch between **This Month** and **Last Month**, and filter by vendor. ## Models In Use The **Models In Use** tab lists discovered models with their usage, estimated cost, calling principals, and lifecycle status. Select a model to review its attributes, lifecycle timeline, and invocation counts. | Lifecycle Status | Meaning | | - | - | | Active | The model is current and fully supported. | | Legacy | A newer version is available. | | Extended Support | The model is supported under an extended-support arrangement, which may carry additional cost. | | EOL | The model has reached End of Life. | ## Principals The **Principals** tab shows the identities calling your models, along with their token consumption, models used, estimated cost, and last activity. | Type | Description | | - | - | | User | A human identity. | | Service Account | A non-human application identity. | | Managed Identity | An Azure managed identity. | | IAM Role | An AWS IAM role. | | API Key | Usage authenticated with a shared API key rather than an individual identity. For Azure, Draftt displays the caller's masked source IP. | | Unresolved | An identity that could not be resolved to a readable name. Draftt displays the provider's object ID instead. | ## Identity Attribution * **AWS Bedrock**: Calling identities are attributed automatically once AWS is connected. * **Azure AI Foundry**: Calling identity attribution requires diagnostic logging and Microsoft Graph permissions. See [Enable AI model identity attribution](/azure#enable-ai-model-identity-attribution-optional) in the Azure integration guide. * **Google Gemini**: Identity attribution depends on which logs you enable in each GCP project. None are enabled by default: * **[Data Access audit logs](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/enable-audit-logs)**: Invocations by human users and service accounts. * **[Inference request metadata logs](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/inference-metadata-logging)**: Token usage and invocations by service accounts. * **[Request-response logging to BigQuery](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/request-response-logging)** (optional): Token usage by human users. Grant the service account used by your Draftt GCP integration these roles: * **BigQuery Job User** (`roles/bigquery.jobUser`) on the project where queries run * **BigQuery Data Viewer** (`roles/bigquery.dataViewer`) on the logging table or a dedicated dataset only ## Related Policies Draftt's lifecycle policies evaluate AI models against vendor end-of-life dates and check whether they run the latest version. See [Governance Policies](/governance-policies). # API Access Source: https://docs.draftt.io/api-access Draftt exposes a REST API for programmatic access to your inventory, findings, and governance data. Full API reference is available in the [API Documentation](/api-reference) tab. ## Authentication All API requests authenticate via API keys. Generate and manage keys in **Settings > Access Keys**. API keys are scoped to a role. A key with the Developer role can query and export data but cannot modify platform configuration. A key with the Admin role has full API access. > [!NOTE] > > Users can only generate API keys scoped to their own role. A Developer can create Developer-scoped keys but not Admin-scoped keys. ## Common Use Cases **Export inventory data:** Pull your full resource inventory into a data warehouse, BI tool, or internal dashboard for custom reporting. **Query findings programmatically:** Integrate Draftt findings into your internal governance portals or executive dashboards. **Trigger policy evaluation:** Call the policy evaluation endpoint on demand as part of a scheduled job or workflow. **Sync ownership data:** Pull resolved ownership from Draftt to enrich other internal tools with team attribution. # Query certificates with filtering, sorting and pagination Source: https://docs.draftt.io/api-reference/certificate/query-certificates-with-filtering-sorting-and-pagination https://api.draftt.io/swagger post /certificates/query Query certificates with filtering, sorting and pagination # Retrieve a specific certificate by ID Source: https://docs.draftt.io/api-reference/certificate/retrieve-a-specific-certificate-by-id https://api.draftt.io/swagger get /certificates/{id} # Ingest a code SBOM Source: https://docs.draftt.io/api-reference/code/ingest-a-code-sbom https://api.draftt.io/swagger post /code/sbom Ingests an SBOM as one project (`project`), or as all the projects it contains (`repository` only). # Bulk Update Components Source: https://docs.draftt.io/api-reference/component/bulk-update-components https://api.draftt.io/swagger post /component/update # Delete an imported component by ID Source: https://docs.draftt.io/api-reference/component/delete-an-imported-component-by-id https://api.draftt.io/swagger delete /component/{componentId} Deletes a single component. Only imported components (e.g. components created by SBOM ingestion) can be deleted. # Discover the queryable details$ fields for a technology or technology group Source: https://docs.draftt.io/api-reference/component/discover-the-queryable-details$-fields-for-a-technology-or-technology-group https://api.draftt.io/swagger post /component/detailsSchema Returns the queryable `details$.` fields for one technology or technology group. These fields are per-technology and are NOT part of any schema in this document, so this endpoint is the only source of truth for them. Call it before building a component policy or a `details$.` component query, and use the returned `field` paths verbatim - a path that is not returned does not exist and is rejected with a 400 when the policy is created. The response `type` tells you which comparison values are valid for a field, and `availableValues`, when present, enumerates the only accepted values. `filterable` tells you whether the field is indexed - an un-indexed field exists on the component but cannot be filtered on in a component query. # Query components with filtering, sorting and pagination Source: https://docs.draftt.io/api-reference/component/query-components-with-filtering-sorting-and-pagination https://api.draftt.io/swagger post /component/query Query components with filtering, sorting and pagination # Query Upgrade Plan sections for a component Source: https://docs.draftt.io/api-reference/component/query-upgrade-plan-sections-for-a-component https://api.draftt.io/swagger post /component/{componentId}/draftt/query Deprecated. Use POST /component/{componentId}/upgradePlan/query instead. # Retrieve a specific component by ID Source: https://docs.draftt.io/api-reference/component/retrieve-a-specific-component-by-id https://api.draftt.io/swagger get /component/{componentId} # Search and filter components Source: https://docs.draftt.io/api-reference/component/search-and-filter-components https://api.draftt.io/swagger post /component/search Deprecated as of: 2026-06-04. Scheduled for removal: 2026-09-04. Replacement: POST /component/query. Please migrate to the DrafttQL query endpoint for advanced filtering, field selection, and cursor-based pagination. # Update Component by ID Source: https://docs.draftt.io/api-reference/component/update-component-by-id https://api.draftt.io/swagger patch /component/{componentId} # Query upgrade plans with filtering, sorting and pagination Source: https://docs.draftt.io/api-reference/draftt/query-upgrade-plans-with-filtering-sorting-and-pagination https://api.draftt.io/swagger post /draftt/query Deprecated. Use POST /upgradePlan/query instead. # Query integrations with filtering, sorting and pagination Source: https://docs.draftt.io/api-reference/integration/query-integrations-with-filtering-sorting-and-pagination https://api.draftt.io/swagger post /integration/query Query integrations with filtering, sorting and pagination # Retrieve a specific integration by ID Source: https://docs.draftt.io/api-reference/integration/retrieve-a-specific-integration-by-id https://api.draftt.io/swagger get /integration/{integrationId} # Search and filter integration Source: https://docs.draftt.io/api-reference/integration/search-and-filter-integration https://api.draftt.io/swagger post /integration/search Deprecated as of: 2026-06-04. Scheduled for removal: 2026-09-04. Replacement: POST /integration/query. Please migrate to the DrafttQL query endpoint for advanced filtering, field selection, and cursor-based pagination. # Discover queryable Kubernetes resource detail fields by kind Source: https://docs.draftt.io/api-reference/k8s-resource/discover-queryable-kubernetes-resource-detail-fields-by-kind https://api.draftt.io/swagger post /k8sResource/detailsSchema Returns registry-approved details$ paths and their field metadata. The selected kind is required when those paths are later used in a resource query. # Get full public context for one Kubernetes resource Source: https://docs.draftt.io/api-reference/k8s-resource/get-full-public-context-for-one-kubernetes-resource https://api.draftt.io/swagger get /k8sResource/{id} Returns the collected manifest, management, Node/CRD, and Analyzer enrichment context. Internal persistence and index fields are not exposed. # Query scoped Kubernetes resources Source: https://docs.draftt.io/api-reference/k8s-resource/query-scoped-kubernetes-resources https://api.draftt.io/swagger post /k8sResource/query Queries collected Kubernetes resources with DrafttQL filtering, selection, sorting, and pagination. Discover supported details$ fields with POST /k8sResource/detailsSchema first. # Retrieve a specific policy component by ID Source: https://docs.draftt.io/api-reference/policy-component/retrieve-a-specific-policy-component-by-id https://api.draftt.io/swagger get /policy/{policyId}/component/{componentId} # Search and filter policy components Source: https://docs.draftt.io/api-reference/policy-component/search-and-filter-policy-components https://api.draftt.io/swagger post /policy/{policyId}/component/search Deprecated as of: 2026-06-04. Scheduled for removal: 2026-09-04. Replacement: POST /policy/{policyId}/component/query. Please migrate to the DrafttQL query endpoint for advanced filtering, field selection, and cursor-based pagination. # Search and filter Policy Components Source: https://docs.draftt.io/api-reference/policy-component/search-and-filter-policy-components-1 https://api.draftt.io/swagger post /policy/{policyId}/component/query # Query Kubernetes resources evaluated by a policy Source: https://docs.draftt.io/api-reference/policy-k8s-resource/query-kubernetes-resources-evaluated-by-a-policy https://api.draftt.io/swagger post /policy/{policyId}/k8sResource/query Queries policy_k8s_resource rows for one policy. Pass k8sResourceData to filter or select from the joined, scoped Kubernetes resource. # Create a new policy Source: https://docs.draftt.io/api-reference/policy/create-a-new-policy https://api.draftt.io/swagger post /policy # Query policies with filtering, sorting and pagination Source: https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination https://api.draftt.io/swagger post /policy/query Query policies with filtering, sorting and pagination # Retrieve a specific policy by ID Source: https://docs.draftt.io/api-reference/policy/retrieve-a-specific-policy-by-id https://api.draftt.io/swagger get /policy/{id} # Search and filter policies Source: https://docs.draftt.io/api-reference/policy/search-and-filter-policies https://api.draftt.io/swagger post /policy/search Deprecated as of: 2026-06-04. Scheduled for removal: 2026-09-04. Replacement: POST /policy/query. Please migrate to the DrafttQL query endpoint for advanced filtering, field selection, and cursor-based pagination. # Query Upgrade Plan sections for a component Source: https://docs.draftt.io/api-reference/upgrade-plan/query-upgrade-plan-sections-for-a-component https://api.draftt.io/swagger post /component/{componentId}/upgradePlan/query # Query upgrade plans with filtering, sorting and pagination Source: https://docs.draftt.io/api-reference/upgrade-plan/query-upgrade-plans-with-filtering-sorting-and-pagination https://api.draftt.io/swagger post /upgradePlan/query Query upgrade plans across the organization using DrafttQL with advanced filtering, field selection, and cursor-based pagination. # Amazon Web Services Source: https://docs.draftt.io/aws Connect your AWS accounts to Draftt to govern your cloud infrastructure. Draftt uses a cross-account IAM role with read-only access, deployed via CloudFormation. For a detailed breakdown of the IAM role, trust policy, and permissions, see [AWS IAM resources](/aws-iam-resources). An optional Terraform configuration is available at [Deploy with Terraform](/aws/terraform). ## Prerequisites * AWS account with permissions to create CloudFormation stacks and IAM roles * Access to the Draftt dashboard (**Integrations > AWS**) ## Setup Methods Draftt supports three installation methods. CloudFormation is recommended for most setups. > [accordion] CloudFormation (Recommended) > > The fastest way to connect a single AWS account. Draftt provides a CloudFormation template that creates the required IAM role automatically. > > **1. Name your integration** > > In Draftt, fill in the **Integration Name** field. > > **2. Deploy the CloudFormation stack** > > Navigate to your [AWS CloudFormation console](https://us-east-1.console.aws.amazon.com/cloudformation/home/stacks/create). > > 1. Click **Create Stack** - With new resources (Standard) > 2. On the prerequisite section, choose **Choose an existing template** > 3. On the specify template section, choose **Amazon S3 URL** and provide the following link: > > ``` > https://draftt-public.s3.amazonaws.com/draftt-onboarding-cloudformation.json > ``` > > Press **Next**. > > **3. Configure stack parameters** > > * **Stack name:** We recommend something easy to identify, e.g. `DrafttStack` > * **DrafttRoleName:** Leave the default value > * **ExternalId:** Copy the value shown in the Draftt setup dialog and paste it here > > Press **Next**. > > **4. Optional: CloudFormation behavior** > > Since we're using AWS defaults, we recommend not making any changes in this step. Press **Next**. > > **5. Review and create** > > Review all previous settings. Acknowledge and approve the **"I acknowledge that AWS CloudFormation might create IAM resources with custom names."** statement. > > Press **Submit**. > > **6. Enter the Role ARN in Draftt** > > Enter the Role ARN in the Draftt setup dialog and click **Create**. > [accordion] Manual Installation > > **1. Create a customer managed policy** > > [Create a new customer managed policy](https://us-east-1.console.aws.amazon.com/iam/home#/policies/create) in the AWS IAM console. > > Switch to **JSON Mode** and copy the content from the following link: > > ``` > https://draftt-public.s3.amazonaws.com/DrafttReadOnlyPolicy.js > ``` > > Click on **Actions** and then select **Optimize for size**. Click **Next**. > > **2. Name the policy** > > Enter the following name: > > ``` > DrafttReadOnlyPolicy > ``` > > Click **Create Policy**. > > **3. Create an IAM role with a custom trust policy** > > Navigate to **Roles** and click **Create Role**. > > On the **Trusted entity type** section, choose **Custom trust policy** and paste the following: > > ```json theme={null} > { > "Version": "2012-10-17", > "Statement": [ > { > "Effect": "Allow", > "Principal": { > "AWS": "arn:aws:iam::339712924365:root" > }, > "Action": "sts:AssumeRole", > "Condition": { > "StringEquals": { > "aws:PrincipalArn": "arn:aws:iam::339712924365:role/draftt-fetcher", > "sts:ExternalId": "" > } > } > } > ] > } > ``` > > Click **Next**. > > **4. Attach policies** > > Attach the following policies to the role: > > * `SecurityAudit` > * `ViewOnlyAccess` > * `DrafttReadOnlyPolicy` (the policy you created in Step 2) > > Click **Next**. > > **5. Name the role** > > Enter the following name: > > ``` > DrafttAccess-Role > ``` > > Review the permissions and click **Create Role**. > > **6. Enter the Role ARN in Draftt** > > Copy the ARN of the role you just created and paste it into the **Role ARN** field in the Draftt setup dialog. Click **Create**. > [accordion] CloudFormation StackSet (Multi Account) > > For organizations managing multiple AWS accounts, StackSets deploy the Draftt IAM role across all accounts in your AWS Organization simultaneously. > > **1. Create an organization-level IAM role** > > Navigate to **Roles** and click on [Custom trust policy](https://us-east-1.console.aws.amazon.com/iam/home#/roles/create?step=selectEntities\&selectedUseCase=custom). > > Copy the following policy: > > ```json theme={null} > { > "Version": "2012-10-17", > "Statement": [ > { > "Effect": "Allow", > "Principal": { > "AWS": "arn:aws:iam::339712924365:root" > }, > "Action": "sts:AssumeRole", > "Condition": { > "StringEquals": { > "aws:PrincipalArn": "arn:aws:iam::339712924365:role/draftt-fetcher", > "sts:ExternalId": "" > } > } > } > ] > } > ``` > > Click **Next**. On the **Add permissions** section, choose: > > * `AWSOrganizationsReadOnlyAccess` > * `AWSCloudFormationReadOnlyAccess` > > Click **Next**. Enter the following name: > > ``` > DrafttReadOnlyAccess-OrganizationLevel > ``` > > Review the permissions and click **Create Role**. Enter the Role ARN in Draftt. > > **2. Create the CloudFormation StackSet** > > Navigate to your [AWS CloudFormation Console](https://us-east-1.console.aws.amazon.com/cloudformation/home). > > Click **Create stack set**. On the **Specify template** section, choose **Service-managed permissions**. Choose **Amazon S3 URL** and provide the following link: > > ``` > https://draftt-public.s3.amazonaws.com/draftt-onboarding-cloudformation.json > ``` > > Press **Next**. > > **3. Configure StackSet parameters** > > Name the stack set. We recommend something easy to identify, e.g. `DrafttStackSet`. > > Leave the default name for the **DrafttRoleName** parameter (default: `DrafttAccess-Role`). > > On the **ExternalId** parameter, enter the value provided in the Draftt setup dialog. > > Press **Next**. > > **4. Optional: CloudFormation behavior** > > Since we're using AWS defaults, we recommend not making any changes in this step. Press **Next**. > > **5. Set deployment options** > > Under the **Set deployment options** screen, choose **Deploy new stacks**. > > Specify regions. Since CloudFormation only creates a role in each account, there is no need to choose multiple regions. Choose only a single region based on your preference. > > Under **Deployment options**, we recommend increasing the **Maximum concurrent accounts** based on the number of accounts you are integrating. > > We recommend not making changes in the deployment options section. Press **Next**. > > **6. Review and create** > > Review all previous settings. Acknowledge and approve the **"I acknowledge that AWS CloudFormation might create IAM resources with custom names."** statement. > > Press **Submit**. Once the StackSet is created, provide Draftt with the StackSet ARN. ## What Draftt Reads Draftt's IAM role is **read-only**. It cannot create, modify, or delete any resources in your AWS account. The CloudFormation template defines the exact permissions granted. See [AWS IAM resources](/aws-iam-resources) for a full breakdown, or review the template before deploying: ``` https://draftt-public.s3.amazonaws.com/draftt-onboarding-cloudformation.json ``` Draftt scans services across compute (EC2, Lambda, ECS, EKS), storage (S3, EBS, EFS), databases (RDS, DynamoDB, ElastiCache, Redshift), networking (VPC, ALB/NLB, CloudFront), security (IAM, KMS, Secrets Manager), and more. ## Verifying Your Connection After setup, return to **Integrations > AWS** in Draftt. Each connected account shows a status: * **Healthy** - All required access is in place. Draftt is collecting data as expected. * **Unhealthy** - Something is wrong with the IAM role or permissions. Check that the CloudFormation stack completed successfully and the Role ARN is correct. ## Troubleshooting **Stack creation failed:** Check the CloudFormation events tab for the specific error. Common causes include insufficient permissions to create IAM roles or a naming conflict with an existing role. **Status shows unhealthy:** Verify the Role ARN matches what CloudFormation created and that the trust policy is configured correctly. **Missing resources in inventory:** Draftt discovers resources on its scan cycle. New accounts may take one scan cycle to fully populate. Check that the IAM role has the required permissions by reviewing the CloudFormation stack resources. # AWS IAM resources Source: https://docs.draftt.io/aws-iam-resources Reference for the IAM role, trust policy, and permissions Draftt needs in your AWS accounts, and how to provision them with CloudFormation or Terraform. This page explains what the Draftt AWS integration creates in your account, why each piece exists, and how to provision it with your own tooling. For the click-through setup flow, see [Amazon Web Services](/aws). To provision the resources with Terraform, see [Deploy with Terraform](/aws/terraform). Draftt never stores AWS credentials. Instead, a Draftt service assumes a read-only IAM role in your account using AWS Security Token Service (STS). Everything on this page is about defining that role. ## What Draftt creates in your account The CloudFormation template at `https://draftt-public.s3.amazonaws.com/draftt-onboarding-cloudformation.json` is the canonical definition. It creates exactly two resources: | Resource | Type | Purpose | | - | - | - | | `DrafttAccess-Role` | `AWS::IAM::Role` | The role Draftt assumes. Its trust policy restricts who can assume it. | | `DrafttReadOnlyPolicy` | `AWS::IAM::Policy` (inline on the role) | Additional read-only permissions not covered by the AWS managed policies. | The role also has two AWS managed policies attached: * `arn:aws:iam::aws:policy/job-function/ViewOnlyAccess` * `arn:aws:iam::aws:policy/SecurityAudit` The template takes two parameters and returns two outputs: | Parameter | Default | Description | | - | - | - | | `DrafttRoleName` | `DrafttAccess-Role` | Name of the role to create. | | `ExternalId` | none, required | The External ID shown in the Draftt setup dialog. | | Output | Value | | - | - | | `DrafttRoleArn` | The role ARN to paste into Draftt. | | `ExternalID` | The External ID you provided. | > [!NOTE] > > The template does not set a permissions boundary, path, tags, or a custom maximum session duration. If your organization requires any of these, use the manual or Terraform method and add them yourself. The default one-hour maximum session duration is sufficient. Draftt requests 30-minute sessions. ## The IAM role Draftt assumes the role with the session name `draftt-fetcher` and a 30-minute session duration. You can find these sessions in CloudTrail by filtering `AssumeRole` events for that session name. The integration health check uses a separate session name, `draftt-integration-validator`, with a 15-minute duration. IAM is global, so the region you deploy the template in does not matter. Draftt scans all commercial AWS regions through the single role. GovCloud and China partitions are not supported. > [!WARNING] > > Keep the role name identical in every account you connect. For organization-wide setups, Draftt constructs each member account's role ARN as `arn:aws:iam:::role/` from the single role name you provide. An account with a different role name will fail to connect. ## Trust policy The trust policy controls who can assume the role. This is the exact document the CloudFormation template applies: ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::339712924365:root" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "aws:PrincipalArn": "arn:aws:iam::339712924365:role/draftt-fetcher", "sts:ExternalId": "" } } } ] } ``` Each part narrows access further: * **Principal `arn:aws:iam::339712924365:root`** is Draftt's production AWS account. Using the account root as the principal, rather than a role ARN, keeps the trust relationship stable even if Draftt recreates the role on its side. The root principal alone would allow any identity in the Draftt account, so the two conditions below restrict it. * **`aws:PrincipalArn` condition** restricts the caller to one specific role in the Draftt account, `draftt-fetcher`. No other Draftt identity can assume your role. * **`sts:ExternalId` condition** requires the caller to present your External ID. This is the standard AWS defense against the confused deputy problem, where a third party could trick Draftt into accessing your account on their behalf. ## External ID Draftt generates the External ID for your Draftt organization and shows it in the setup dialog under **Integrations > AWS**. You do not choose it. * The External ID is per Draftt organization, not per AWS account. Use the same value in every account you connect. * Treat it like a shared secret. It is not sufficient on its own to access your account, because the caller must also be the `draftt-fetcher` role, but it should not be published. * The CloudFormation template accepts the External ID as a plain parameter and echoes it in the `ExternalID` stack output. Anyone with `cloudformation:DescribeStacks` in the account can read it. The [Terraform configuration](/aws/terraform) marks it as sensitive instead. ## Permissions The role's permissions come from three policies. All of them are read-only. None grant the ability to create, modify, or delete resources. > [accordion] AWS managed policies > > * **`ViewOnlyAccess`** provides `List*`, `Describe*`, and `Get*` access to metadata across most AWS services. This is the baseline for resource discovery. > * **`SecurityAudit`** adds read access to security configuration, including IAM users, roles, access keys, policies, Secrets Manager metadata, CloudTrail, and Config. Draftt uses this for IAM and secrets inventory. > [accordion] DrafttReadOnlyPolicy > > The custom policy fills the gaps in the managed policies: cost and billing data, Compute Optimizer and Trusted Advisor recommendations, AWS Health events, container image metadata, and newer services such as Bedrock. It contains 45 statements, all `Allow` on `Resource: "*"`. > > The policy is published at `https://draftt-public.s3.amazonaws.com/DrafttReadOnlyPolicy.js`. Despite the file extension, it is a plain IAM policy JSON document and is identical to the policy embedded in the CloudFormation template. > > | Service | Actions | > | - | - | > | ACM | `acm:Describe*`, `acm:List*` | > | Airflow (MWAA) | `airflow:Get*`, `airflow:List*` | > | Bedrock | `bedrock:List*`, `bedrock:Get*` | > | Billing and Cost Management | `billing:ListBillingViews`, `billing:GetBillingView*`, `ce:Get*`, `ce:List*`, `budgets:ViewBudget`, `budgets:ListTagsForResource` | > | CodeBuild | `codebuild:BatchGet*`, `codebuild:List*`, `codebuild:Describe*` | > | Compute Optimizer | `compute-optimizer:Describe*`, `compute-optimizer:Get*`, `compute-optimizer:Export*` | > | DMS Fleet Advisor | `dms:DescribeFleetAdvisor*`, `dms:GetFleetAdvisor*`, `dms:ListFleetAdvisor*` | > | DynamoDB | `dynamodb:Describe*`, `dynamodb:List*` | > | EC2 | `ec2:Describe*`, `ec2:Get*`, `ec2:Search*` | > | ECR | `ecr:Get*`, `ecr:List*`, `ecr:Describe*`, `ecr:BatchGetImage`, `ecr:RegisterPullTimeUpdateExclusion`, `ecr:DeregisterPullTimeUpdateExclusion`, `ecr-public:Get*`, `ecr-public:List*`, `ecr-public:Describe*` | > | ECS | `ecs:List*`, `ecs:Describe*` | > | EKS | `eks:List*`, `eks:Describe*` | > | ElastiCache | `elasticache:Describe*`, `elasticache:List*` | > | Elastic Load Balancing | `elasticloadbalancing:Describe*` | > | EMR | `elasticmapreduce:Describe*`, `elasticmapreduce:Get*`, `elasticmapreduce:List*` | > | EventBridge | `events:List*`, `events:Describe*` | > | FinSpace | `finspace:Describe*`, `finspace:List*` | > | Glue | `glue:Get*`, `glue:List*`, `glue:BatchGet*` | > | Health | `health:Describe*` | > | Kinesis | `kinesis:Describe*`, `kinesis:Get*`, `kinesis:List*` | > | Kinesis Data Analytics | `kinesisanalytics:Describe*`, `kinesisanalytics:List*` | > | Kinesis Video Streams | `kinesisvideo:Describe*`, `kinesisvideo:Get*`, `kinesisvideo:List*` | > | KMS | `kms:Describe*`, `kms:List*` | > | Lambda | `lambda:Get*`, `lambda:List*` | > | Lightsail | `lightsail:Get*`, `lightsail:List*` | > | MemoryDB | `memorydb:Describe*`, `memorydb:List*` | > | MQ | `mq:Describe*`, `mq:List*` | > | MSK | `kafka:Describe*`, `kafka:Get*`, `kafka:List*` | > | Neptune | `neptune-db:Get*`, `neptune-db:List*` | > | OpenSearch | `es:Describe*`, `es:Get*`, `es:List*` | > | Organizations | `organizations:ListAccounts` (optional, used to resolve account names) | > | ParallelCluster | `parallelcluster:Describe*`, `parallelcluster:List*` | > | RDS | `rds:Describe*`, `rds:List*` | > | Redshift | `redshift:Describe*` | > | Resource Groups Tagging | `tag:Get*`, `tag:Describe*` | > | ROSA | `ros:Get*`, `ros:List*` | > | Route 53 | `route53:Get*`, `route53:List*` | > | S3 | `s3:ListAllMyBuckets`, `s3:ListBucket*`, `s3:GetBucket*`, and bucket configuration reads (replication, acceleration, encryption, lifecycle, analytics, inventory, metrics, intelligent tiering) | > | Service Catalog | `servicecatalog:Describe*`, `servicecatalog:List*` | > | SES | `ses:Describe*`, `ses:Get*`, `ses:List*` | > | SNS | `sns:Get*`, `sns:List*` | > | SQS | `sqs:Get*`, `sqs:List*` | > | SSM | `ssm:Describe*`, `ssm:Get*`, `ssm:List*` | > | Trusted Advisor | `trustedadvisor:Describe*`, `trustedadvisor:List*` | > > The S3 permissions cover bucket listing and bucket configuration only. Draftt does not read object contents. > > > [!NOTE] > > > > Two ECR actions, `ecr:RegisterPullTimeUpdateExclusion` and `ecr:DeregisterPullTimeUpdateExclusion`, are not `Describe`, `List`, or `Get` calls. They exclude Draftt's own image reads from the ECR "last pull time" statistic, so Draftt's scans do not make unused images appear active. They do not modify images or repositories. > > > [!NOTE] > > > > When you create this policy manually as a customer managed policy, the IAM console asks you to **Optimize for size**. Customer managed policies are limited to 6,144 characters excluding whitespace, and this policy is close to that limit. The CloudFormation template avoids the issue by attaching the policy inline, where the limit is 10,240 characters. ## Single account vs. AWS Organization For a single account, the role and policies above are everything Draftt needs. For an AWS Organization, Draftt needs one additional role in the management account plus the standard role in every member account. The [StackSet setup](/aws) walks through this in the console. The moving parts are: | Resource | Where | Purpose | | - | - | - | | `DrafttReadOnlyAccess-OrganizationLevel` | Management account | Lets Draftt list member accounts and read the StackSet rollout status. | | CloudFormation StackSet | Management account | Deploys `DrafttAccess-Role` into every member account using the same template. | | `DrafttAccess-Role` | Every member account | The standard read-only role, created by the StackSet. | The organization-level role uses the same trust policy and the same External ID as the member account roles. It has two AWS managed policies attached and nothing else: * `AWSOrganizationsReadOnlyAccess`, for `organizations:ListAccounts` * `AWSCloudFormationReadOnlyAccess`, to describe the StackSet and list its stack instances When you provide the StackSet ARN, Draftt reads the region from the ARN and queries CloudFormation in that region. Draftt then waits up to 30 minutes for stack instances to finish deploying, and creates an integration for each account whose instance reached `SUCCEEDED`. Accounts that failed or were skipped are not connected. Check the StackSet's stack instances in the console if an account is missing. ## Provision with Terraform An optional Terraform configuration is available at [Deploy with Terraform](/aws/terraform), with options for a single account, a Terraform-managed CloudFormation stack, and a multi-account StackSet. ## Verifying and auditing The **Healthy** status in **Integrations > AWS** means Draftt successfully called `sts:AssumeRole` on your role with the External ID. It confirms the trust policy, not the permissions. A role with a correct trust policy but missing permission policies shows as Healthy while returning an empty or partial inventory. If the inventory is incomplete: 1. Confirm all three policies are attached to the role: `ViewOnlyAccess`, `SecurityAudit`, and `DrafttReadOnlyPolicy`. 2. Compare your copy of `DrafttReadOnlyPolicy` with the published version. Draftt adds services over time, and a stale copy silently returns nothing for newer services. 3. Check for a service control policy or permissions boundary that denies read actions to the role. To audit Draftt's activity, search CloudTrail for `AssumeRole` events where the session name is `draftt-fetcher`. Every subsequent API call made by Draftt carries that session in its `userIdentity` field. # Deploy with Terraform Source: https://docs.draftt.io/aws/terraform Provision the IAM role and permissions Draftt needs in your AWS account with Terraform or OpenTofu, as an alternative to CloudFormation. Terraform is an optional alternative to the CloudFormation-based [console setup](/aws). Each option below creates the same resources as the CloudFormation template, which remains the canonical definition. See [AWS IAM resources](/aws-iam-resources) for what each resource does. ## Prerequisites * Terraform 1.1 or later, or any OpenTofu release * AWS provider 5.67.0 or later. The StackSet option depends on the `aws_cloudformation_stack_instances` resource added in that version * AWS credentials with permission to create IAM roles and policies in the target account * The External ID from the Draftt setup dialog (**Integrations > AWS**) All options use the AWS provider. Declare it once in your configuration: ```hcl theme={null} terraform { required_version = ">= 1.1" required_providers { aws = { source = "hashicorp/aws" version = ">= 5.67, < 7.0" } } } ``` ## Setup methods > [accordion] Single Account > > Creates the IAM role, trust policy, and permissions directly as Terraform resources. This gives you full control over the role, including tags, a permissions boundary, or a custom path. > > **1. Download the read-only policy** > > Save the published policy next to your Terraform files so permission changes are reviewed in your own pull requests: > > ```bash theme={null} > curl -sSfo DrafttReadOnlyPolicy.json \ > https://draftt-public.s3.amazonaws.com/DrafttReadOnlyPolicy.js > ``` > > **2. Declare the trust policy** > > Only the `draftt-fetcher` role in Draftt's AWS account can assume the role, and only with your External ID: > > ```hcl theme={null} > data "aws_iam_policy_document" "draftt_assume_role" { > statement { > sid = "AllowDrafttFetcherAssumeRole" > effect = "Allow" > actions = ["sts:AssumeRole"] > > principals { > type = "AWS" > identifiers = ["arn:aws:iam::339712924365:root"] > } > > condition { > test = "StringEquals" > variable = "aws:PrincipalArn" > values = ["arn:aws:iam::339712924365:role/draftt-fetcher"] > } > > condition { > test = "StringEquals" > variable = "sts:ExternalId" > values = [var.draftt_external_id] > } > } > } > ``` > > **3. Create the role** > > Draftt requests 30-minute sessions, which fit within the default one-hour maximum session duration: > > ```hcl theme={null} > resource "aws_iam_role" "draftt_access" { > name = var.draftt_role_name > description = "Draftt cross-account read-only access role" > assume_role_policy = data.aws_iam_policy_document.draftt_assume_role.json > max_session_duration = 3600 > > tags = var.tags > } > ``` > > **4. Attach the AWS managed policies** > > ```hcl theme={null} > resource "aws_iam_role_policy_attachment" "draftt_managed" { > for_each = { > security_audit = "arn:aws:iam::aws:policy/SecurityAudit" > view_only_access = "arn:aws:iam::aws:policy/job-function/ViewOnlyAccess" > } > > role = aws_iam_role.draftt_access.name > policy_arn = each.value > } > ``` > > **5. Attach DrafttReadOnlyPolicy** > > The policy is attached inline, matching the CloudFormation template. Decoding and re-encoding the file validates it at plan time and normalises whitespace: > > ```hcl theme={null} > resource "aws_iam_role_policy" "draftt_read_only" { > name = "DrafttReadOnlyPolicy" > role = aws_iam_role.draftt_access.name > policy = jsonencode(jsondecode(file("${path.module}/DrafttReadOnlyPolicy.json"))) > } > ``` > > **6. Declare inputs and outputs** > > ```hcl theme={null} > variable "draftt_external_id" { > description = "External ID shown in the Draftt setup dialog (Integrations > AWS)." > type = string > sensitive = true > nullable = false > } > > variable "draftt_role_name" { > description = "Name of the IAM role Draftt assumes. Keep it identical across all connected accounts." > type = string > default = "DrafttAccess-Role" > nullable = false > } > > variable "tags" { > description = "Tags applied to the Draftt IAM resources." > type = map(string) > default = {} > nullable = false > } > > output "draftt_role_arn" { > description = "Paste this ARN into the Draftt setup dialog." > value = aws_iam_role.draftt_access.arn > } > ``` > > **7. Plan and apply** > > Provide the External ID through a variable file or environment variable rather than on the command line: > > ```bash theme={null} > export TF_VAR_draftt_external_id="" > terraform init > terraform plan -out=draftt.tfplan > terraform apply draftt.tfplan > ``` > > The plan shows one role, one inline policy, and two policy attachments. > > **8. Enter the Role ARN in Draftt** > > Copy the `draftt_role_arn` output into the **Role ARN** field in the Draftt setup dialog and click **Create**. > [accordion] CloudFormation Stack > > Deploys Draftt's published CloudFormation template as a Terraform-managed stack. Terraform tracks the stack, and CloudFormation creates the role and policies exactly as the console setup does. Use this to keep the template canonical without maintaining a copy of the read-only policy. > > **1. Create the stack** > > ```hcl theme={null} > resource "aws_cloudformation_stack" "draftt" { > name = "DrafttStack" > template_url = "https://draftt-public.s3.amazonaws.com/draftt-onboarding-cloudformation.json" > capabilities = ["CAPABILITY_NAMED_IAM"] > > parameters = { > DrafttRoleName = var.draftt_role_name > ExternalId = var.draftt_external_id > } > > tags = var.tags > } > ``` > > **2. Declare inputs and outputs** > > ```hcl theme={null} > variable "draftt_external_id" { > description = "External ID shown in the Draftt setup dialog (Integrations > AWS)." > type = string > sensitive = true > nullable = false > } > > variable "draftt_role_name" { > description = "Name of the IAM role the stack creates. Keep it identical across all connected accounts." > type = string > default = "DrafttAccess-Role" > nullable = false > } > > variable "tags" { > description = "Tags applied to the CloudFormation stack." > type = map(string) > default = {} > nullable = false > } > > output "draftt_role_arn" { > description = "Paste this ARN into the Draftt setup dialog." > value = aws_cloudformation_stack.draftt.outputs["DrafttRoleArn"] > } > ``` > > **3. Plan and apply** > > ```bash theme={null} > export TF_VAR_draftt_external_id="" > terraform init > terraform plan -out=draftt.tfplan > terraform apply draftt.tfplan > ``` > > The plan shows a single CloudFormation stack. The role and policies appear in the CloudFormation console under the stack's resources. > > **4. Enter the Role ARN in Draftt** > > Copy the `draftt_role_arn` output into the **Role ARN** field in the Draftt setup dialog and click **Create**. > > > [!NOTE] > > > > The template echoes the External ID in the `ExternalID` stack output, so it is visible to anyone with `cloudformation:DescribeStacks` in the account. The stack outputs are also stored in Terraform state. > [accordion] CloudFormation StackSet (Multi Account) > > Apply in the organization management account. Creates the organization-level role and a service-managed StackSet that deploys the per-account role to every member account. Requires CloudFormation StackSets trusted access in AWS Organizations. > > > [!NOTE] > > > > Delegated StackSets administrator accounts are not supported. Draftt reads the StackSet status without the delegated-administrator call mode, so a StackSet owned by a delegated administrator is not visible to Draftt. > > **1. Declare the trust policy** > > The organization-level role uses the same trust policy and External ID as the per-account role: > > ```hcl theme={null} > data "aws_iam_policy_document" "draftt_assume_role" { > statement { > sid = "AllowDrafttFetcherAssumeRole" > effect = "Allow" > actions = ["sts:AssumeRole"] > > principals { > type = "AWS" > identifiers = ["arn:aws:iam::339712924365:root"] > } > > condition { > test = "StringEquals" > variable = "aws:PrincipalArn" > values = ["arn:aws:iam::339712924365:role/draftt-fetcher"] > } > > condition { > test = "StringEquals" > variable = "sts:ExternalId" > values = [var.draftt_external_id] > } > } > } > ``` > > **2. Create the organization-level role** > > ```hcl theme={null} > resource "aws_iam_role" "draftt_organization_access" { > name = "DrafttReadOnlyAccess-OrganizationLevel" > description = "Draftt organization-level read-only access role" > assume_role_policy = data.aws_iam_policy_document.draftt_assume_role.json > max_session_duration = 3600 > > tags = var.tags > } > ``` > > **3. Attach the AWS managed policies** > > Draftt uses these to list member accounts and read the StackSet rollout status: > > ```hcl theme={null} > resource "aws_iam_role_policy_attachment" "draftt_organization_managed" { > for_each = { > organizations_read_only = "arn:aws:iam::aws:policy/AWSOrganizationsReadOnlyAccess" > cloudformation_read_only = "arn:aws:iam::aws:policy/AWSCloudFormationReadOnlyAccess" > } > > role = aws_iam_role.draftt_organization_access.name > policy_arn = each.value > } > ``` > > **4. Create the StackSet** > > ```hcl theme={null} > resource "aws_cloudformation_stack_set" "draftt" { > name = "DrafttStackSet" > description = "Deploys the Draftt cross-account read-only role to organization accounts" > template_url = "https://draftt-public.s3.amazonaws.com/draftt-onboarding-cloudformation.json" > permission_model = "SERVICE_MANAGED" > capabilities = ["CAPABILITY_NAMED_IAM"] > > parameters = { > DrafttRoleName = var.draftt_role_name > ExternalId = var.draftt_external_id > } > > auto_deployment { > enabled = true > retain_stacks_on_account_removal = false > } > > tags = var.tags > > lifecycle { > ignore_changes = [administration_role_arn] > } > } > ``` > > **5. Deploy the stack instances** > > IAM is global, so a single region is enough. Target the organization root to cover every account, or specific organizational units: > > ```hcl theme={null} > resource "aws_cloudformation_stack_instances" "draftt" { > stack_set_name = aws_cloudformation_stack_set.draftt.name > regions = ["us-east-1"] > > deployment_targets { > organizational_unit_ids = var.target_organizational_unit_ids > } > > operation_preferences { > failure_tolerance_percentage = 100 > max_concurrent_percentage = 25 > } > } > ``` > > **6. Declare inputs and outputs** > > ```hcl theme={null} > variable "draftt_external_id" { > description = "External ID shown in the Draftt setup dialog (Integrations > AWS)." > type = string > sensitive = true > nullable = false > } > > variable "draftt_role_name" { > description = "Name of the IAM role the StackSet creates in each member account." > type = string > default = "DrafttAccess-Role" > nullable = false > } > > variable "target_organizational_unit_ids" { > description = "Organization root ID (r-xxxx) or organizational unit IDs (ou-xxxx-xxxxxxxx) to deploy into. Find them with `aws organizations list-roots`." > type = list(string) > nullable = false > } > > variable "tags" { > description = "Tags applied to the Draftt resources." > type = map(string) > default = {} > nullable = false > } > > output "draftt_organization_role_arn" { > description = "Paste this ARN into the Draftt setup dialog as the organization role." > value = aws_iam_role.draftt_organization_access.arn > } > > output "draftt_stack_set_arn" { > description = "Paste this ARN into the Draftt setup dialog so Draftt can track the rollout." > value = aws_cloudformation_stack_set.draftt.arn > } > ``` > > **7. Plan and apply** > > ```bash theme={null} > export TF_VAR_draftt_external_id="" > export TF_VAR_target_organizational_unit_ids='["r-xxxx"]' > terraform init > terraform plan -out=draftt.tfplan > terraform apply draftt.tfplan > ``` > > Confirm every target account shows `SUCCEEDED` under the StackSet's stack instances before continuing. Draftt waits up to 30 minutes for the rollout and only connects accounts that succeeded. > > **8. Enter the ARNs in Draftt** > > Copy the `draftt_organization_role_arn` output into the organization **Role ARN** field, and the `draftt_stack_set_arn` output into the **StackSet ARN** field in the Draftt setup dialog. > > > [!WARNING] > > > > Destroying `aws_cloudformation_stack_instances` removes the Draftt role from every member account at once. To stop onboarding new accounts without touching existing ones, set `auto_deployment.enabled` to `false` instead. ## Notes > [!NOTE] > > Because the External ID is marked `sensitive`, Terraform hides the whole rendered trust policy in plan output. To review the trust policy after apply, run `aws iam get-role --role-name DrafttAccess-Role`. The External ID is still stored in Terraform state, so protect your state file as you would any other secret. > [!WARNING] > > Do not import a role or policy created by a CloudFormation stack into the Single Account option. CloudFormation keeps ownership of those resources, and deleting the stack later deletes the role even though Terraform tracks it. # Microsoft Azure Source: https://docs.draftt.io/azure Connect your Azure subscriptions to Draftt to govern your cloud infrastructure. Draftt uses an Entra ID (Azure AD) App Registration with read-only access to your Azure resources. ## Prerequisites * Azure subscription with permissions to create App Registrations in Entra ID and assign IAM roles * Access to the Draftt dashboard (**Integrations > Azure**) ## Setup Draftt supports connecting at the **Subscription** or **Management Group** scope. Management Group scope covers all subscriptions underneath it. **1. Register an App in Entra ID** In the Azure portal, go to **Entra ID > App registrations > New registration**. * **Name:** `Draftt` (or any identifiable name) * **Supported account types:** Single tenant * **Redirect URI:** Leave blank After creation, copy the **Application (client) ID** and **Directory (tenant) ID** from the overview page. Enter these in the Draftt setup dialog. **2. Generate a client secret** In your new App Registration, go to **Certificates & secrets > New client secret**. * **Description:** `Draftt access` * **Expires:** Choose an appropriate expiration period Copy the **Value** (not the Secret ID) immediately -- it will not be shown again. Enter this in the Draftt setup dialog. **3. Get your Subscription or Management Group ID** * **For Subscription scope:** Go to **Subscriptions** in the Azure portal and copy the **Subscription ID** * **For Management Group scope:** Go to **Management groups** and copy the **Management Group ID** Enter the ID in the Draftt setup dialog. **4. Assign the Reader role** Navigate to the subscription or management group, then go to **Access control (IAM) > Add role assignment**. * **Role:** `Reader` * **Assign access to:** Application * **Select:** The App Registration you created (`Draftt`) Click **Save**. **5. Assign the Key Vault Reader role (optional)** If you want Draftt to govern Key Vault resources, assign an additional role: * **Role:** `Key Vault Reader` * **Assign access to:** Application * **Select:** The App Registration you created (`Draftt`) Alternatively, you can grant access at the individual Key Vault level using **Access Policies** if you prefer more granular control. After completing these steps, click **Create** in the Draftt setup dialog. ## Enable AI model identity attribution (optional) Complete these steps if you want Draftt to attribute Azure AI model usage to the users and workloads that called each model in [AI Governance](/ai-governance). They are not required for model inventory, token usage, or cost — only for showing which person or workload made each call. **1. Grant Microsoft Graph permissions** In your App Registration, go to **API permissions > Add a permission > Microsoft Graph > Application permissions** and add: * `User.Read.All` * `Application.Read.All` Select **Add permissions**, then select **Grant admin consent**. The permissions take effect only after consent is granted. Draftt uses them to resolve the Entra object IDs in the diagnostic logs into readable user and workload names. **2. Enable diagnostic logging on each Foundry resource** In the Azure portal, open the Foundry (Azure AI / Cognitive Services) resource, then go to **Diagnostic settings > Add diagnostic setting**. * Enter a **Diagnostic setting name**. * Under **Logs**, select **Request and Response Logs** (named `RequestResponse` in the Azure API). * Under **Destination details**, select **Send to Log Analytics workspace** and choose a workspace. Select **Save**. > [!NOTE] > > Attribution begins from the point diagnostic logging is enabled. Azure keeps no history from before the setting was turned on, and Log Analytics retains 30 days by default, so identities cover roughly the last month even though usage covers a longer period. ## What Draftt Reads Draftt's App Registration is **read-only**. It cannot create, modify, or delete any resources in your Azure environment. The Reader role provides access to resource metadata across compute (Virtual Machines, App Service, AKS, Container Instances), storage (Storage Accounts, Blob, Files), databases (SQL Database, Cosmos DB, Cache for Redis, MySQL, PostgreSQL), networking (Virtual Network, Load Balancer, Application Gateway, Firewall), and security (Key Vault, Entra ID, Defender for Cloud). The optional `User.Read.All` and `Application.Read.All` Microsoft Graph permissions are read-only directory permissions. Draftt uses them only to resolve the Entra object IDs seen in AI model diagnostic logs into readable user and workload names. ## Verifying Your Connection After setup, return to **Integrations > Azure** in Draftt. Each connected subscription or management group shows a status: * **Healthy** - All required access is in place. Draftt is collecting data as expected. * **Unhealthy** - Something is wrong with the App Registration or role assignments. Check the client secret expiration and IAM role bindings. ## Troubleshooting **Authentication fails:** Verify the client ID, tenant ID, and client secret are correct. Confirm the client secret has not expired. **Status shows unhealthy:** Check that the Reader role is assigned at the correct scope (subscription or management group). Verify the App Registration exists and has not been deleted. **Missing Key Vault resources:** The base Reader role does not include Key Vault data plane access. Assign the Key Vault Reader role or configure Access Policies on individual vaults. **Missing resources in inventory:** New connections may take one scan cycle to fully populate. Confirm the Reader role is assigned at the scope that contains the resources you expect to see. **AI model usage shows unresolved identities:** Confirm the `User.Read.All` and `Application.Read.All` Microsoft Graph permissions are granted with admin consent, and that diagnostic logging is enabled on the Foundry resource. See [Enable AI model identity attribution](#enable-ai-model-identity-attribution-optional). # Azure Databricks Source: https://docs.draftt.io/azure-databricks Connect a Databricks SQL warehouse (read-only) so Draftt can browse and read the inventory tables you select. Connect your Databricks SQL warehouse to Draftt to govern the assets you track there. Draftt authenticates as a dedicated service principal with read-only access and only reads the schema or tables you grant. > [!NOTE] > > Draftt's access is **read-only**. The connector only ever receives `USE CATALOG`, `USE SCHEMA`, and `SELECT` -- it can never write, modify, or delete data. Your secret is encrypted at rest and never shown again after you save. ## What you'll need * **Databricks account admin** -- to create the service principal (in the account console) and assign it to your workspace. * **Metastore admin, or the owner of the target schema and tables** -- to grant the service principal read access to your data. * A **SQL warehouse** (serverless or pro). A serverless warehouse doesn't need to be running -- it starts on demand. * Access to the Draftt dashboard (**Integrations > Azure Databricks > Add**), with the Developer role or higher. The Draftt wizard has three steps -- **Connect**, **Permissions**, and **Review** -- and generates ready-to-run `GRANT` statements for you along the way. ## Step 1 -- Connect Give the connection a name (for example `Analytics warehouse -- prod`), then choose how Draftt authenticates. **OAuth M2M** is recommended for production; a personal access token (PAT) is supported as a legacy alternative. > [tab] OAuth M2M (Databricks-managed) > > Use this when the service principal and its secret are managed by Databricks. > > **1. Create the service principal (account console)** > > In the [Databricks account console](https://accounts.azuredatabricks.net) go to **User management > Service principals > Add service principal**, type a name (for example `draftt-connector`), and pick **Create new service principal**. > > **2. Assign it to your workspace** > > In your workspace, go to **Settings > Identity and access > Service principals > Manage > Add service principal** and select the principal you just created. Then open it and explicitly enable the **Databricks SQL access** entitlement (don't rely on the users-group default). > > **3. Generate an OAuth secret** > > Under **Settings > Identity and access > Service principals > (your principal) > Secrets > Generate secret**, set the secret's lifetime (max 730 days) and copy the **Secret** and **Client ID** now -- the secret is shown only once. The Client ID is the service principal's application ID. > > > [!NOTE] > > > > Draftt can't renew the secret automatically -- note when it expires. > > **4. Grant warehouse access** > > Grant the principal **Can use** on your SQL warehouse: **SQL Warehouses > (your warehouse) > Permissions** (also available from the kebab menu on the warehouse list). > > **5. Test the connection in Draftt** > > Enter the **Workspace host** (host only, no `https://`, e.g. `adb-1234567890123456.7.azuredatabricks.net`), the **Client ID**, and the **OAuth secret**, keep *Where was this service principal created?* on **Databricks-managed**, and click **Test connection**. The button shows **Connected** on success. > [tab] OAuth M2M (Microsoft Entra ID) > > Use this when the secret is issued by Microsoft Entra ID (Azure portal) for an app registration, rather than by Databricks. > > **1. Create or open the app registration (Azure portal)** > > Under **Microsoft Entra ID > App registrations**, create (or open) the app registration and copy the **Application (client) ID** and **Directory (tenant) ID** from its Overview page. > > **2. Create a client secret (Azure portal)** > > Under **Certificates & secrets > New client secret**, create a secret and copy the secret **Value** now (not the Secret ID) -- it is shown only once. Note the expiry; Draftt can't renew it automatically. > > **3. Add the app to your Databricks account** > > In the [Databricks account console](https://accounts.azuredatabricks.net), go to **User management > Service principals** and search for the app registration's name. Principals from your identity provider that aren't in the account yet appear in the results with source **External** -- select yours to add it to the account. > > **4. Assign it to your workspace** > > Assign the service principal to your workspace and enable the **Databricks SQL access** entitlement (account console: **Workspaces > (your workspace) > Permissions**, or workspace **Settings > Identity and access > Service principals**). > > **5. Grant warehouse access** > > Grant the principal **Can use** on your SQL warehouse: **SQL Warehouses > (your warehouse) > Permissions**. > > **6. Test the connection in Draftt** > > Select **Microsoft Entra ID app** under *Where was this service principal created?* and fill in the **Directory (tenant) ID** along with the workspace host, **Client ID** (the application ID), and the client secret **Value**. Click **Test connection**. > [tab] Personal access token (legacy) > > PATs are tied to an identity's token lifetime and are capped at 730 days -- prefer OAuth M2M for production. > > **1. Pick the identity** > > Use an existing user, or a service principal with workspace access and the **Databricks SQL access** entitlement. > > **2. Create the token** > > For a user: **Settings > Developer > Access tokens > Manage > Generate new token** -- set a lifetime and copy the token now. For a service principal there's no UI -- use the Databricks CLI (`databricks tokens create`). > > **3. Grant warehouse access** > > Grant **Can use** on your SQL warehouse to that identity. > > **4. Test the connection in Draftt** > > Enter the workspace host and the token. Also fill in the **Grantee** field (the user's email, or the service principal's application ID) so the wizard can generate ready-to-run `GRANT` statements in the next step. ## Step 2 -- Permissions The Permissions step walks through four numbered sections; each unlocks when the previous one completes. **1. Select a SQL warehouse** Pick the warehouse Draftt should query. The list only shows warehouses the connecting principal can use -- if it's empty, grant the principal **Can use** on a warehouse (or create one), then refresh. **2. Open the path to the data** Enter the **catalog** and **schema** that hold your inventory. The wizard generates the exact grants with your principal filled in -- run them in a Databricks SQL editor, then click **Verify access**: ```sql theme={null} GRANT USE CATALOG ON CATALOG `inventory` TO ``; GRANT USE SCHEMA ON SCHEMA `inventory`.`assets` TO ``; ``` `` is the service principal's application (client) ID -- a GUID, not its display name. Copy the statements from the wizard to get them pre-filled. **3. Grant read access** By default Draftt asks for **schema-wide** read access, which covers every current and future table in the schema: ```sql theme={null} GRANT SELECT ON SCHEMA `inventory`.`assets` TO ``; ``` To restrict access, toggle **Limit to specific tables** and grant table-by-table instead: ```sql theme={null} GRANT SELECT ON TABLE `inventory`.`assets`.`components` TO ``; ``` **4. Validate access** Click **Check access**. Draftt confirms it can actually read what you granted (for schema-wide access it samples a few tables; for specific tables it probes each one). You can't continue until validation passes. ## Step 3 -- Review and save The Review step summarizes the workspace host, warehouse, access mode, and the tables to sync. Click **Save Connection** -- Draftt re-validates the credentials server-side before storing them (encrypted at rest). If the name is already taken you'll get an inline error; pick another name. ## What Draftt reads Draftt's access is SELECT-only, limited to the catalog, schema, and tables you granted. During setup and validation it runs only: * `SELECT 1` -- connection probe * `SHOW TABLES IN .` -- table discovery * `DESCRIBE TABLE` -- column metadata * `SELECT * FROM LIMIT 1` -- a one-row readability probe It cannot create, modify, or delete anything, and it never reads data outside the granted schema or tables. ## Troubleshooting **Authentication failed:** Check the client ID and OAuth secret (or PAT) and confirm the secret hasn't expired. The error notes whether the rejection came from Microsoft Entra ID or from Databricks -- if a secret issued in the Azure portal is rejected with a 401, make sure **Microsoft Entra ID app** is selected on the Connect step. **Cannot access the SQL warehouse:** Verify the warehouse exists and the connecting principal has **Can use** on it. For Entra ID principals, also confirm the principal was added to the Databricks account and assigned to the workspace with the **Databricks SQL access** entitlement. **No SQL warehouses listed:** The list only shows warehouses the principal can use. Grant **Can use** on an existing warehouse, or create a serverless or pro warehouse, then refresh. **Missing Unity Catalog permissions:** Grant `USE CATALOG`, `USE SCHEMA`, and `SELECT` on the target catalog, schema, and tables -- to the principal's application ID, not its display name. **Catalog, schema, or table not found:** The selected object may have been renamed or dropped, or the name is misspelled. Verify it exists in Catalog Explorer. **Warehouse is stopped or starting:** Wait for it to start (serverless warehouses start on demand) and retry. **Could not reach the workspace:** Check the workspace host value and the warehouse HTTP path. **Unexpected error:** Try again; if it persists, contact Draftt support. # Code Components Source: https://docs.draftt.io/code-components Understand how Draftt maps the libraries your projects depend on and flags dependencies that are outdated, deprecated, or unmaintained. Draftt scans your code repositories and maps the libraries each project depends on. Every dependency is analyzed for lifecycle risk, so you can find libraries that are outdated, deprecated, or no longer maintained, and plan upgrades before they become urgent. Code Components sit alongside the rest of your infrastructure in Draftt, giving your organization one place to govern code and infrastructure together. ![Code Inventory showing the status breakdown, the due date timeline, and a table of dependencies with their status, required version, and due date.](https://mintcdn.com/draftt/99QefcB1G-JKlbJh/images/code-components-inventory.png?fit=max\&auto=format\&n=99QefcB1G-JKlbJh\&q=85\&s=a6c2b930d2a0479b03e30b45e67b2dd2) ## How It Works Draftt follows the same loop for every connected repository: 1. **Connect**: Install the Draftt.io GitHub App on your organization and choose which repositories Draftt can read. See [GitHub](/github). This is a separate app from the Draftt CI GitHub App, which scans Terraform plans on pull requests. Draftt also scans Azure DevOps repositories through the same Azure DevOps integration you use for ticketing. 2. **Discover**: Draftt reads build files and lockfiles at the head of each repository's configured branch, mapping every project to the libraries it depends on. To scan a different branch, contact Draftt. 3. **Analyze**: Draftt checks each dependency version for end of life, deprecation, and maintenance activity, and identifies the version required to stay supported. 4. **Surface**: Results appear in the **Code** area of Draftt, with a status, required version, and due date for each dependency. Draftt rescans connected repositories on every scan cycle, so the inventory reflects the latest state of your code. ## Dependency Statuses Draftt assigns each dependency a status based on its current version: | Status | Meaning | | - | - | | Compliant | The current version is supported and meets the required version. | | Outdated | The current version has reached end of support. Upgrade to the required version. | | Deprecated | The package is deprecated by its maintainers or archived on GitHub. Replace it with a suggested alternative where one is available. | ## Suggested Alternatives When a dependency is deprecated or no longer maintained, upgrading to a newer version isn't enough. Draftt suggests a replacement library when one exists, so your team can plan a migration instead of searching for an alternative. ## Code Inventory The Code Inventory shows every dependency Draftt has discovered across your connected repositories, together with its status, required version, and due date. The **Status Breakdown** at the top shows how many dependencies fall under each status, so you can gauge the overall health of your code dependencies at a glance. ## Common Use Cases * **Get visibility into what your code depends on**: See every library and version used across your projects and repositories in one place. * **Prioritize upgrade work**: Focus on outdated and deprecated dependencies first, and use due dates to sequence the rest. * **Plan ahead**: See which dependencies reach end of support in the coming months, and schedule upgrades before they become urgent. * **Plan migration of unmaintained libraries**: Identify deprecated and archived packages and move to a suggested alternative. * **Manage code and infrastructure debt in one place**: Track code dependencies next to your cloud, Kubernetes, and data platform resources, with the same statuses and due dates. ## Next Steps Connect [GitHub](/github) or Azure DevOps to start scanning your repositories. # Draftt CI Source: https://docs.draftt.io/draftt-ci Draftt CI scans the Terraform or OpenTofu plan of each pull request against your Draftt policies and shows every violation on the pull request, before the change is applied. Reviewers see which resources break which policy, and what to change, next to the code. ## How it works 1. A pull request is opened or updated, and your workflow runs `terraform plan` as usual. 2. The Draftt step scrubs the plan JSON on the runner, removing every value Terraform marks sensitive, and uploads the scrubbed copy to Draftt. 3. Draftt evaluates the changed resources against your policies. 4. The Draftt CI GitHub App publishes the result as a check and a comment on the pull request. ```mermaid theme={null} %%{init: {"theme": "base", "themeVariables": {"fontSize": "12px", "primaryColor": "#eeedfe", "primaryBorderColor": "#8b7cf6", "primaryTextColor": "#1f2328", "lineColor": "#6e7681", "clusterBkg": "#f6f8fa", "clusterBorder": "#d0d7de"}}}%% flowchart TB PR["Pull request\nopened or updated"] subgraph runner["Your GitHub Actions workflow"] PLAN["terraform plan"] --> STEP["Draftt step scrubs\nand uploads the plan"] end subgraph draftt["Draftt"] EVAL["Evaluates the changed resources\nagainst your policies"] --> APP["Draftt CI GitHub App"] end PR --> PLAN STEP --> EVAL APP -. "check and comment" .-> PR ``` The step needs no GitHub token, and a policy violation never fails your workflow: the check reports, it does not block. ## Set up Draftt CI Two pieces, set up once each: 1. [Install the Draftt CI GitHub App](/draftt-ci-github-app) on the repositories that hold your Terraform code. This binds your GitHub organization to your Draftt organization and lets Draftt publish on your pull requests. 2. [Add the Draftt CI GitHub Action](/draftt-ci-action) to the workflow that produces your plan, with a Draftt access key. ## What the pull request shows A **Draftt Terraform Policy Scan** check and a comment, updated on every push. For each changed resource that violates a policy, you see the resource, the policy, and the change needed, with a link to the line in your code. ![Draftt CI check on a pull request: two changed resources, each non-compliant with a policy, linked to the line in the Terraform file.](https://mintcdn.com/draftt/OKGfcpSUL8IIQRCZ/images/draftt-ci-check-policies.png?fit=max\&auto=format\&n=OKGfcpSUL8IIQRCZ\&q=85\&s=5abf9eb0af0ff3aba471f4f89b930ba0) The check concludes `success` when no changed resource violates a policy and `neutral` when one does. It never concludes `failure`. This is on purpose: Draftt CI should never block a team on the day it is adopted, so the check reports and lets your reviewers decide. Don't make it a required status check. When you are ready to enforce, you have two levers: * **Fail on scan errors.** Set `fail-on-scan-error: "true"` on the Draftt step, and the step fails when the plan could not be scanned, for example because the key is missing. * **Fail on violations.** Read the `violation-count` output in a later step and fail the job when it is not `0`, and make that job a required status check. See [Outputs](/draftt-ci-action#outputs). ## Next * [Draftt CI GitHub App](/draftt-ci-github-app): installation, how it works, results on the pull request, settings. * [Draftt CI GitHub Action](/draftt-ci-action): the workflow step, inputs, outputs, several root modules, what is sent to Draftt, limits and troubleshooting. * Questions: [support@draftt.io](mailto:support@draftt.io). # Draftt CI GitHub Action Source: https://docs.draftt.io/draftt-ci-action The [`draftt-io/terraform-ci`](https://github.com/draftt-io/terraform-ci) GitHub Action runs in your workflow after `terraform plan`. It scrubs the plan JSON on the runner and uploads the scrubbed copy to Draftt. The [Draftt CI GitHub App](/draftt-ci-github-app) publishes the result; the Action itself never writes to GitHub and needs no GitHub token. ## Add the Action **1. Create an access key** In Draftt, go to **Settings > Access Keys** and create a key with the Developer role or above. In GitHub, store it as a repository or organization secret named `DRAFTT_API_KEY`. **2. Add the step to your workflow** Add the Draftt step after the one that writes your plan as JSON. For example: ```yaml theme={null} name: Terraform policy scan on: pull_request: permissions: contents: read jobs: policy-scan: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} - uses: hashicorp/setup-terraform@v3 with: terraform_wrapper: false - run: terraform init -input=false - run: terraform plan -input=false -out=tfplan - run: terraform show -json tfplan > plan.json - name: Scan Terraform policies with Draftt uses: draftt-io/terraform-ci@v1 with: plan-json: plan.json api-key: ${{ secrets.DRAFTT_API_KEY }} ``` Check out the pull request head commit, as in the example, so Draftt can annotate the changed files. Set `terraform_wrapper: false`, or the plan file is not valid JSON. Write the plan inside the workspace. For OpenTofu, use `tofu plan` and `tofu show -json`. > [!WARNING] > > Use `draftt-io/terraform-ci@v1`. We recommend it: `v1` follows the latest 1.x release, which brings fixes and new optional inputs and never a breaking change. A breaking change ships as `v2`, with migration notes in its [release](https://github.com/draftt-io/terraform-ci/releases). **3. Open a pull request** Open or update a pull request that changes Terraform files. The **Draftt Terraform Policy Scan** check fills in with the result when the step uploads the plan. If it stays at **Waiting for a Terraform plan**, open the workflow run and expand the Draftt step: a scan that cannot complete leaves the step green with a warning that says why. See [Troubleshooting](#troubleshooting). Terraform 1.0 or later, or OpenTofu 1.6 or later. Runners need Node 24 and `git`; the standard `ubuntu-latest` image has both. ## Inputs | Input | Default | Description | | - | - | - | | `plan-json` | Required | Path to the Terraform or OpenTofu plan JSON, relative to the workspace. The file must be inside the workspace. | | `api-key` | Required | Draftt access key with the Developer role or above. | | `api-url` | `https://api.draftt.io/ci/scans` | The Draftt CI scans endpoint. Change it only when Draftt asks you to. Must use HTTPS and end in `/ci/scans`. | | `terraform-root` | `.` | Directory that holds the root module's `.tf` files, relative to the workspace. See [Several root modules](#several-root-modules-in-one-repository). | | `fail-on-scan-error` | `"false"` | `"true"` fails the step when the scan cannot complete. Policy violations never fail the step. | ## Outputs | Output | Description | | - | - | | `scan-status` | `completed`, `skipped` (pull request from an external fork), or `error`. | | `violation-count` | Resources with policy violations. | | `warning-count` | Incomplete evaluation or coverage warnings. | | `annotation-count` | Annotations the Draftt CI App published on the check. | | `check-run-url` | URL of the check the Draftt CI App published. Empty when none was published. | Give the step an `id` to read the outputs in later steps. When `scan-status` is `skipped` or `error`, every count is `0` and the URL is empty, so read `scan-status` first. Outputs contain counts and the check URL only, never plan data or credentials. ```yaml theme={null} - name: Scan Terraform policies with Draftt id: draftt uses: draftt-io/terraform-ci@v1 with: plan-json: plan.json api-key: ${{ secrets.DRAFTT_API_KEY }} - run: echo "Draftt found ${{ steps.draftt.outputs.violation-count }} resources with violations" if: steps.draftt.outputs.scan-status == 'completed' ``` ## Several root modules in one repository Scan each root module with its own Draftt step, or a matrix job, and set `terraform-root` to the module's directory. Each root gets its own check, named **Draftt Terraform Policy Scan (root)**, and its own comment. ```yaml theme={null} strategy: matrix: root: [network, compute] steps: - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} # setup, init, plan and show in ${{ matrix.root }}, then: - uses: draftt-io/terraform-ci@v1 with: plan-json: ${{ matrix.root }}/plan.json terraform-root: ${{ matrix.root }} api-key: ${{ secrets.DRAFTT_API_KEY }} ``` * `terraform-root` is a workspace-relative path, `.` for the repository root. It can contain letters, digits, `.`, `_`, `/`, and `-`, up to 200 characters, with no `..` segments. * A commit takes at most 50 roots. * Two scans in the same workflow run attempt must use different roots; a second upload for the same root is answered with the first result and not published. One root planned several times for different environments, with `-var-file` or workspaces, is therefore not supported yet. ## What is sent to Draftt The raw plan never leaves the runner. The Action sends one HTTPS request with: * **The planned changes:** the resource changes of managed resources, and the `aws_caller_identity` data source, with every value Terraform marks sensitive removed from both sides of each change. Unchanged resources are included with their current values, scrubbed the same way. A removed value is marked unknown, the same way Terraform marks a value known only after apply, so a policy that depends on it is reported as not evaluated instead of evaluated against a default. * **A reduced configuration:** the configuration of the changed resources, including those inside modules, with sensitive values removed. Provider configuration is cut down to the region and the assumed role ARN, and the variables that set them. * **Where each resource is defined:** file path and line per resource address, so the App can annotate the changed files. * **Where the scan came from:** repository and owner IDs, pull request number, head commit SHA, the `terraform-root`, and the workflow run ID, attempt, and URL. Never sent: the raw plan, the state file, planned values, outputs, Terraform source files, or any GitHub token. If a recognized credential format is still present after scrubbing, an AWS access key, a PEM private key, a GitHub or GitLab token, a JWT, or a URL with embedded credentials, the Action uploads nothing and reports a scan error that names the kind of credential and where it is. The Action masks the API key before it reads the plan. The job log and summary never show the key, plan values, or Draftt response bodies. ## Events and limits * **Pull request events only:** Draftt CI publishes results on `pull_request` events. Pull requests from external forks are skipped, because forks have no access to your secrets, and `scan-status` is `skipped`. * **Dependabot pull requests:** GitHub does not give workflows triggered by Dependabot access to Actions secrets, so the scan ends in an error on them. Skip the job with `if: github.actor != 'dependabot[bot]'`, or add the key as a Dependabot secret too. * **`pull_request_target`:** Don't use it. The planned code would run with access to the Draftt key. * **Plan size:** The raw plan is limited to 50 MiB, the scrubbed plan to 49 MiB, and the whole request to 50 MiB. Requests over 1 MiB are compressed. * **Request time:** The upload is retried on `502`, `503`, and `504` answers and on network failures, up to 3 attempts within 8 minutes in total. * **Source map:** The Action sends a map from resource addresses to files and lines so the App can annotate the changed files. It drops the map when the request would exceed the size limit, when the pull request head isn't checked out, when Terraform files differ from the commit, when `GITHUB_WORKSPACE` isn't the repository root, or when Git can't be inspected. The map is capped at 100,000 resources. Without it, findings stay in the check summary and the comment. ## Troubleshooting Open the workflow run on the pull request and expand the Draftt step. On success, the log shows the `api-url` host, the scan key, the counts, and the check URL. The job summary shows the same counts. A scan that cannot complete does not fail the step by default: the step turns green with a warning, the outputs report `scan-status: error`, and the check stays at **Waiting for a Terraform plan** until it times out. To fail the step instead, set `fail-on-scan-error: "true"`. Messages in the step log: * **`Input required and not supplied: api-key`:** The secret is not set for this repository, or the run has no secrets, as on a Dependabot pull request. * **`Plan JSON path must stay inside the workspace`**, **`Plan JSON path is not a file`:** Write the plan inside the workspace and pass its path relative to the workspace root, for example `infra/plan.json`. * **`Plan JSON is not valid JSON`:** Usually the Terraform wrapper added lines to the output. Set `terraform_wrapper: false` on `hashicorp/setup-terraform`. * **`Terraform plan has an unsupported format_version`:** The file is not the output of `terraform show -json` for a saved plan. * **`terraform-root must be an existing directory inside the repository`:** The directory doesn't exist in the checked-out commit, or the path points outside the workspace. * **`Scrubbed plan still contains a recognized at `:** A credential is in the plan in a value Terraform doesn't mark sensitive. Nothing was uploaded. Mark the value sensitive in Terraform, or move it out of the plan. * **`Draftt authentication failed`:** The access key is invalid or revoked. * **`Draftt answered 403: owner_mismatch`:** The repository doesn't belong to the GitHub organization bound to the Draftt organization that owns the access key. * **`Draftt rejected the scan request as too large`:** The scrubbed plan is over the size limit. Scan a smaller root module, or split the plan. * **`Draftt could not complete the scan`:** A server error. Re-run the job, and contact support if it persists. * **`Draftt answered : `:** Any other `4xx` or `502` answer; the message says why. `github_unavailable` means Draftt could not reach GitHub, and a re-run usually clears it. Problems that appear after the scan completed, when the App publishes the result, are warnings with `scan-status: completed` and an empty `check-run-url`; `fail-on-scan-error` does not fail the step for them. See the [App troubleshooting](/draftt-ci-github-app#troubleshooting). **No annotations on the changed files**, while the check and the comment show the findings: the step log carries a warning that names the cause. Check that `actions/checkout` checks out the pull request head, that the workspace is the repository root, that `terraform-root` is the directory with the root module's `.tf` files, and that no generated `.tf` files or `.terraform/` directory are untracked in the working tree. ## Support Questions and problems: [support@draftt.io](mailto:support@draftt.io). Report a security issue to [security@draftt.io](mailto:security@draftt.io), not in a public issue. The Action is open source under Apache-2.0. # Draftt CI GitHub App Source: https://docs.draftt.io/draftt-ci-github-app The Draftt CI GitHub App is the half of Draftt CI that lives in GitHub. It publishes the scan result on each pull request as a check and a comment, and it is how Draftt knows which GitHub organization and repositories belong to your Draftt organization. The [GitHub Action](/draftt-ci-action) is the other half: it runs in your workflow and uploads the plan. ## Install the App You need owner access to the GitHub organization and the Developer role or above in Draftt. **1. Start from Draftt** In Draftt, go to **Integrations** and click the **Draftt CI for GitHub** card. Draftt opens the App's install page on GitHub. ![The Draftt CI for GitHub card on the Integrations page, before the install.](https://mintcdn.com/draftt/OKGfcpSUL8IIQRCZ/images/draftt-ci-tile.png?fit=max\&auto=format\&n=OKGfcpSUL8IIQRCZ\&q=85\&s=4edf9882ab07b7dfaeb55484ca28731a) **2. Choose the repositories** If GitHub asks, pick the organization. Choose **Only select repositories** and pick the repositories that hold your Terraform or OpenTofu code. The App only needs the repositories whose pull requests it scans, and it asks for read access to metadata and read and write access to checks and pull requests. ![GitHub's install page for Draftt CI with one repository selected and the two permissions listed.](https://mintcdn.com/draftt/OKGfcpSUL8IIQRCZ/images/draftt-ci-github-install.png?fit=max\&auto=format\&n=OKGfcpSUL8IIQRCZ\&q=85\&s=9709c5df84e90dfb3322434421cc85e6) **3. Install** Click **Install & Authorize**. GitHub returns you to Draftt, and the installation is bound to your Draftt organization. The App publishes results only on repositories in the installation, and only for your Draftt organization. After the install, Draftt shows the bound GitHub account with its status, a **Manage on GitHub** link to the installation, and the [scan settings](#settings). On the Integrations page the card is now marked **Connected**. To add or remove repositories later, click **Manage on GitHub**, or open the installation in GitHub under **Settings > Third-party Access > GitHub Apps > Draftt CI > Configure**. Draftt picks the change up on the next pull request. ## How it works The App reacts to every pull request in every repository in the installation, whether or not the pull request changes Terraform files: 1. When a pull request is opened, reopened or pushed to, the App publishes the **Draftt Terraform Policy Scan** check as queued, titled **Waiting for a Terraform plan**, and posts a waiting comment. 2. When the Action uploads the plan, the check and the comment are rewritten with the result. 3. If no plan arrives within the timeout (10 minutes by default), the check concludes `neutral` with the title **No Terraform plan received**. A plan that arrives later is still scanned, and its result is published as a new check. A pull request that does not run the workflow, for example because of a `paths` filter, keeps a `neutral` check that says no plan was received. ## Results on the pull request For each changed resource that violates a policy, the check lists the resource, the policy, and the change needed, with a link to the line in your code and to the policy in Draftt. It also adds an annotation on the line where each violating resource is declared, visible in the **Files changed** tab. Annotations are warnings, never errors, and a check carries at most 500 of them. Findings on resources the pull request doesn't change are collapsed in a separate section. The comment carries the same result in short form and is updated in place on every push, so a pull request never collects a trail of old comments. The check concludes `success` when no changed resource violates a policy and `neutral` when one does, or when no plan arrived in time. It never concludes `failure`; see [Draftt CI](/draftt-ci#what-the-pull-request-shows) for how to enforce when you are ready. > [!NOTE] > > On a public repository, the check and the comment are visible to everyone, including policy names and resource addresses. The plan itself is never shown. ## Settings The Draftt CI page in Draftt (**Integrations > Draftt CI for GitHub**) holds the scan settings for your organization. ![The scan settings: timeout in minutes, report scope and repository overrides.](https://mintcdn.com/draftt/OKGfcpSUL8IIQRCZ/images/draftt-ci-scan-settings.png?fit=max\&auto=format\&n=OKGfcpSUL8IIQRCZ\&q=85\&s=a8f9ebbf24bd1ee669868cb946a99b96) * **Timeout (minutes):** how long Draftt waits for a plan before it completes the check without a result. Set it above your workflow's usual run time, between 1 and 60 minutes. The default is 10 minutes. The change applies to pull requests opened or pushed after it. * **Report scope:** **Changed resources** (the default) puts findings on resources the pull request doesn't change in a collapsed section. **Whole plan** reports every finding in the plan in the main list. * **Repository overrides:** a timeout, a report scope or a list of excluded policies for a specific repository. Excluded policies are not evaluated for that repository's pull requests, and the check footer says how many were excluded. ## Troubleshooting * **The check never appears:** the repository is not in the installation, or the installation is not bound to a Draftt organization. Check the Draftt CI card on the Integrations page and the installation in GitHub. * **The check stays at "Waiting for a Terraform plan":** the workflow did not upload a plan. Open the workflow run and expand the Draftt step; see the [Action troubleshooting](/draftt-ci-action#troubleshooting). * **The Draftt step warns `Draftt CI cannot access the repository`:** the scan completed but the App could not publish, because the repository is not in the installation. Add it in GitHub. * **The Draftt step warns `This organization has no Draftt CI GitHub App binding`:** the Draftt organization that owns the access key has no Draftt CI installation. Complete the install from the Integrations page. * **Re-run on the check does nothing:** the Re-run button on the check does not scan again. Re-run the workflow instead. # Draftt MCP Source: https://docs.draftt.io/draftt-mcp The Draftt MCP server connects your LLM or coding agent directly to Draftt's tech debt intelligence. Draftt acts as the intelligence layer: surfacing findings, upgrade plans, ownership, and policy context. The agent acts on that intelligence, opening PRs, creating tickets, updating configurations, or walking an engineer through a remediation step by step. This is the bridge between Draftt's governance data and the AI tools your engineering teams already use. ## What It Enables **Remediation, not just reporting.** Instead of surfacing a finding and waiting for a human to act, an LLM agent can read the Draftt upgrade plan for an EOL dependency, understand the required steps, and open a PR, create a ticket, or execute the fix directly, grounded in Draftt's guidance. **Grounded in your environment.** The agent has access to the actual resource state, ownership, blast radius, and Draftt's recommended remediation path. Every decision is scoped to your specific stack and your specific findings, not a generic playbook. **Governed by your policies.** The MCP exposes your active governance policies so the agent understands what "good" looks like for your organization and can validate its actions against your standards before applying them. ## Example Interactions * "Show me all EOL resources owned by the platform team and open PRs for each" * "What does Draftt recommend for upgrading PostgreSQL 11 in the payments service? Apply it" * "Find all high-severity findings with no open ticket and create Jira issues for each" * "Using the draftt MCP get the forecast for Amazon RDS MySQL extended support fees in the following 5 months" * "What configuration violations exist in production, and what are the fix steps?" * "Walk me through the upgrade guide for the EKS cluster in the payments account" * "Using the draftt MCP create a detailed upgrade plan for `` from 1.33 to 1.34. Use the available data to produce cluster-specific commands, not generic options" * "Using the draftt MCP get compatibility data for the K8s workloads in cluster `` and how to fix incompatible workloads. Provide with commands to run in order to upgrade the relevant Helm chart releases or K8s manifests." * "Using the draftt MCP get the K8s Nodes status for both clusters `` and ``. Then compare their state - how many issues on each cluster and how each cluster Nodes are managed" ## Connecting the MCP Server The Draftt MCP server is published as an npm package: [@draftt-io/draftt-mcp](https://www.npmjs.com/package/@draftt-io/draftt-mcp). You will need your Draftt API key, which you can generate in **Settings > User Management > API Keys**. **Prerequisites** * Node.js 20.0.0 or later ([download](https://nodejs.org/)) **Quick start with npx:** ```bash theme={null} npx -y @draftt-io/draftt-mcp --access-key YOUR_ACCESS_KEY ``` **Claude Desktop configuration:** Add the following to your `claude_desktop_config.json` (on macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`): ```json theme={null} { "mcpServers": { "draftt": { "command": "npx", "args": ["-y", "@draftt-io/draftt-mcp", "--access-key", "YOUR_ACCESS_KEY"] } } } ``` **Configuration variables:** | Variable | Description | | - | - | | `DRAFTT_ACCESS_KEY` | Required. Your Draftt API key. | | `DRAFTT_API_BASE_URL` | API endpoint. Defaults to `https://api.draftt.io/v1`. | | `MCP_TRANSPORT` | Transport mode: `stdio` (default) or `sse`. | | `PORT` | HTTP server port when using SSE transport. Defaults to `3000`. | | `DEBUG` | Set to `true` to enable verbose logging. | ## Available Tools | Tool | Description | | - | - | | `draftt_component_query` | Query cloud infrastructure components using DrafttQL with advanced filtering, sorting, and pagination. Start here to discover components when you don't have a specific component ID. | | `draftt_component_get` | Retrieve complete details for a specific infrastructure component by its numeric ID | | `draftt_policy_query` | Query compliance policies using DrafttQL with advanced filtering, sorting, and pagination. Use this first to find a policy ID. | | `draftt_policy_get` | Get full details for a specific policy | | `draftt_policy_component_get` | Evaluate a component's compliance against a specific policy | | `draftt_policy_component_query` | Query multiple compliance evaluations with filtering | | `draftt_upgrade_guide_get` | Generate a structured upgrade guide for a Kubernetes cluster | | `draftt_policy_k8s_component_query` | Assess workload compliance within a Kubernetes cluster | | `draftt_k8s_api_query` | Query Kubernetes API resources (CRDs, native APIs) and their deprecation status for a cluster | | `draftt_k8s_node_query` | Query Kubernetes nodes for a cluster with compliance status, versions, management info, and upgrade warnings | # Enterprise Controls Source: https://docs.draftt.io/enterprise-access Draftt integrates with your organization's identity infrastructure to enforce authentication, automate user lifecycle management, and scope access by role across every part of the platform. ## What's Covered > [card] [Single Sign-On](/sso) > > Authenticate through your identity provider via SAML 2.0 or OIDC. Enforce MFA and session policies at the IdP layer. > [card] [Roles & Permissions](/rbac) > > Role-based access control with built-in roles and custom role definitions. Scope what each team member can view, configure, and act on. > [card] [SCIM Provisioning](/scim) > > Automatically provision and deprovision users from your identity provider. Map IdP groups directly to Draftt roles. ## Why It Matters Governance tooling that itself lacks access controls creates a paradox. Draftt holds visibility into your entire tech stack: infrastructure topology, configuration state, ownership mappings, cost footprints, and compliance posture. That data needs to be protected with the same rigor you apply to your production systems. Enterprise Controls close that gap: * **SSO** ensures authentication flows through your centrally managed identity provider, not a local credential store. Revoking access at the IdP immediately removes Draftt access. * **RBAC** ensures engineers see what they need to do their job, platform teams can configure governance policies, and sensitive data like cost and compliance posture is scoped appropriately. * **SCIM** means your HR and IT systems drive user lifecycle in Draftt automatically. Onboarding creates access. Offboarding removes it. No manual tickets. ## Availability | Feature | Availability | | - | - | | SSO (SAML 2.0) | Enterprise | | SSO (OIDC) | Enterprise | | SCIM Provisioning | Enterprise | | Built-in Roles | All plans | > [!NOTE] > > Enterprise Controls are available on the Enterprise plan. Contact your account team to enable them for your organization. # Frequently Asked Questions Source: https://docs.draftt.io/faq ## General > [accordion] What is Draftt? > > Draftt is a proactive tech stack governance platform that discovers and tracks five types of tech debt across your infrastructure: > > 1. **Lifecycle Debt:** Outdated software versions and deprecated dependencies > 2. **Configuration Debt:** Misconfigurations, policy violations, and drift from standards > 3. **Ownership Debt:** Orphaned resources and unclear ownership > 4. **Cost Debt:** Unused resources, overprovisioning, and wasted cloud spend > 5. **Compliance Debt:** Policy violations, audit gaps, and standard mapping failures > > Instead of discovering tech debt in production or during audits, Draftt finds it proactively so you can fix it on your schedule. > [accordion] How is Draftt different from CSPM tools? > > CSPM tools focus primarily on security misconfigurations and compliance violations. Draftt covers configuration and compliance debt but also tracks lifecycle debt (version gaps, EOL software), cost debt (unused resources, overprovisioning), and ownership debt (orphaned resources, unclear responsibility). > > Many organizations use both: CSPM for immediate security threats, Draftt for comprehensive tech stack governance. > [accordion] How is Draftt different from FinOps tools? > > FinOps tools focus on cloud cost optimization. Draftt includes cost debt as one of five tech debt categories, but adds upgrade, configuration, ownership, and compliance debt on top. Draftt connects cost waste to broader governance context: why is this resource unused, who owns it, what's the remediation path. > [accordion] What platforms does Draftt connect to? > > Draftt connects to your infrastructure through read-only connectors: > > **Cloud Providers:** AWS, Azure, GCP > > **Cloud Assets:** Kubernetes, MongoDB Atlas, Confluent Cloud, Redis Cloud, Elastic Cloud > > **Source Control:** GitHub, GitLab, Bitbucket, Azure DevOps > > **Ticketing:** Jira, ServiceNow, Azure DevOps > > **Security:** Snyk, Wiz, Aqua > > **Collaboration:** Slack, Microsoft Teams, Email > > **Internal Developer Portal:** Port > > Draftt also pushes findings to ticketing (Jira, ServiceNow, Azure DevOps) and collaboration (Slack, Teams, Email). > > See [Integrations](/integrations-overview) for the full list. > [accordion] Is Draftt a SaaS or self-hosted? > > Draftt is a SaaS platform. You connect your infrastructure via read-only credentials. No agents or self-hosting required. ## Setup > [accordion] How long does it take to set up Draftt? > > **Initial setup:** 10-20 minutes to connect credentials and run your first scan. > > **Full deployment:** 2-4 weeks to connect all data sources, configure governance policies, integrate with your tools, and reach steady-state operations. > > See [Getting Started](/gs) for a detailed walkthrough. > [accordion] Do I need full infrastructure coverage before starting? > > No. Start with one cloud account or one source control provider and expand from there. Most organizations reach full coverage within 4-8 weeks of phased rollout. > [accordion] What credentials does Draftt need? > > Draftt uses read-only credentials to scan your infrastructure. For cloud providers, this means an IAM role with read-only permissions. For source control, a personal access token or app installation with read access. Draftt never modifies any resources or data. > > See each connector's setup page for exact permissions required. > [accordion] How is my data secured? > > Draftt takes data security seriously: > > * **Read-only access:** Draftt can only read, never modify your infrastructure > * **Encryption:** Data encrypted in transit (TLS 1.2+) and at rest (AES-256) > * **Tenant isolation:** Each customer's data is logically isolated > * **AI data privacy:** Draftt never trains models on your data or behavior > * **SOC 2 Type II, ISO 27001, GDPR compliant** ## Governance > [accordion] What are policies in Draftt? > > Policies define standards for your infrastructure. Draftt ships two types: > > **Lifecycle policies** (system-managed) track end-of-life dates, whether components run the latest version, certificate expiration, and Kubernetes compatibility. These are configured by Draftt and cannot be edited. > > **Governance policies** (custom) let you define your own standards using filter-based rules. You set the statuses, the conditions, and the scope. Resources are evaluated on every scan cycle and assigned a status based on your rules. > > See [Governance Policies](/governance-policies) for the full guide. > [accordion] Can Draftt automatically fix tech debt? > > Draftt does not make changes to your infrastructure directly. It identifies, classifies, and routes tech debt findings. Remediation flows through your existing tools and processes: ticketing systems and collaboration channels. > [accordion] How does Draftt integrate with my ticketing system? > > Draftt pushes findings to Jira, ServiceNow, and Azure DevOps. Findings are created with context (what was found, which policy triggered it, which resource is affected) so your teams can act without switching tools. > > See [Integrations](/integrations-overview) for setup details. ## Security > [accordion] How does Draftt access my infrastructure? > > Draftt connects via read-only API credentials. For AWS, this is a cross-account IAM role with read-only permissions. For Azure, a Reader role on your subscriptions. For GCP, a Viewer role on your projects. > > Draftt stores metadata about resources (name, type, version, tags, relationships). Sensitive data like passwords and secrets is never stored. > [accordion] Is Draftt SOC 2 compliant? > > Yes. Draftt is SOC 2 Type II certified. Audit reports are available upon request. > [accordion] Is Draftt GDPR compliant? > > Yes. Draftt processes data in accordance with GDPR requirements. Data processing agreements are available for enterprise customers. > > Contact [support@draftt.io](mailto:support@draftt.io) for detailed compliance information. ## Implementation > [accordion] How long does a typical implementation take? > > **Phase 1 (Discovery):** 1-2 weeks to connect infrastructure and run first scans. > > **Phase 2 (Visibility):** 1-2 weeks to review findings, assign ownership, and prioritize. > > **Phase 3 (Governance):** 2-4 weeks to define policies, integrate with ticketing, and establish operations. > [accordion] What policies should I start with? > > Start with Draftt's four built-in system policies (End of Life, Latest, Certificate Expiration, Kubernetes Compatibility). These give you immediate visibility into version and lifecycle debt. > > Then create 2-3 custom governance policies targeting your highest-risk areas: tagging compliance, configuration standards, or resource-specific rules. > > See [Governance Policies](/governance-policies) for configuration details. > [accordion] How do I scale governance across teams? > > Quick version: > > * **Start with one team (pilot)** > * **Expand to adjacent teams** > * **Standardize policies as you grow** > * **Build champion network** > * **Make it part of normal work** (not a special initiative) > > Most organizations scale from 1 team to org-wide over 4-6 months. *** ## Still Have Questions? * Check the [documentation](/) for more detailed guides * Email support: [support@draftt.io](mailto:support@draftt.io) # Google Cloud Platform Source: https://docs.draftt.io/gcp Connect your GCP projects or organization to Draftt to govern your cloud infrastructure. Draftt uses Workload Identity Federation (WIF) to securely access your GCP resources with read-only permissions. ## Prerequisites * GCP project or organization with permissions to create service accounts, IAM roles, and Workload Identity pools * Google Cloud CLI (`gcloud`) installed and authenticated * Access to the Draftt dashboard (**Integrations > GCP**) ## Setup Methods Draftt supports three installation methods. Workload Identity Federation via CLI is recommended. > [accordion] Workload Identity Federation - CLI (Recommended) > > > [!NOTE] > > > > You can select any project under the organization. However the project must have the relevant admin APIs enabled. > > **1. Enter GCP project details** > > In Draftt, enter your **Project ID**, **Project Number**, and **Organization ID**. > > **2. Enable necessary APIs** > > Make sure that both the IAM Service Account Credentials API and Cloud Resource Manager API are enabled: > > ```bash theme={null} > gcloud services enable \ > cloudresourcemanager.googleapis.com \ > --project="$PROJECT_ID" > ``` > > ```bash theme={null} > gcloud services enable \ > iamcredentials.googleapis.com \ > --project="$PROJECT_ID" > ``` > > **3. Create a Workload Identity Pool** > > Create the identity pool that accepts identities from AWS: > > ```bash theme={null} > gcloud iam workload-identity-pools create \ > "draftt-wif-integration" \ > --project="$PROJECT_ID" \ > --location "global" \ > --display-name "Draftt WIF integration" > ``` > > **4. Add the Draftt AWS Provider to the Pool** > > Define AWS as a trusted identity provider. The AWS account ID (`339712924365`) is Draftt's production account, which hosts the `draftt-fetcher` service used to fetch data from your GCP project. > > ```bash theme={null} > gcloud iam workload-identity-pools providers create-aws \ > "draftt-wif-aws-integration" \ > --workload-identity-pool="draftt-wif-integration" \ > --account-id="339712924365" \ > --attribute-mapping="attribute.aws_role=assertion.arn.contains('assumed-role') ? assertion.arn.extract('{account_arn}assumed-role/') + 'assumed-role/' + assertion.arn.extract('assumed-role/{role_name}/') : assertion.arn, google.subject=assertion.arn" \ > --project="$PROJECT_ID" \ > --location="global" > ``` > > **5. Create a GCP Service Account** > > Create the service account that AWS roles will impersonate: > > ```bash theme={null} > gcloud iam service-accounts create \ > "draftt-wif-int-readonly" \ > --project="$PROJECT_ID" \ > --display-name="Draftt WIF ReadOnly Integration" > ``` > > **6. Grant permissions to the Service Account** > > Assign read-only permissions to the service account at the organization level: > > ```bash theme={null} > gcloud organizations add-iam-policy-binding $ORGANIZATION_ID \ > --member="serviceAccount:draftt-wif-int-readonly@$PROJECT_ID.iam.gserviceaccount.com" \ > --role="roles/viewer" > ``` > > ```bash theme={null} > gcloud organizations add-iam-policy-binding $ORGANIZATION_ID \ > --member="serviceAccount:draftt-wif-int-readonly@$PROJECT_ID.iam.gserviceaccount.com" \ > --role="roles/browser" > ``` > > ```bash theme={null} > gcloud organizations add-iam-policy-binding $ORGANIZATION_ID \ > --member="serviceAccount:draftt-wif-int-readonly@$PROJECT_ID.iam.gserviceaccount.com" \ > --role="roles/iam.securityReviewer" > ``` > > **7. Allow AWS Role to act as the GCP Service Account** > > Authorize Draftt's AWS role (`arn:aws:sts::339712924365:assumed-role/draftt-fetcher`) to impersonate the GCP service account: > > ```bash theme={null} > gcloud iam service-accounts add-iam-policy-binding \ > "draftt-wif-int-readonly@$PROJECT_ID.iam.gserviceaccount.com" \ > --role="roles/iam.workloadIdentityUser" \ > --member="principalSet://iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/draftt-wif-integration/attribute.aws_role/arn:aws:sts::339712924365:assumed-role/draftt-fetcher" \ > --project="$PROJECT_ID" > ``` > > **8. Generate Credentials JSON** > > Create a non-sensitive JSON credentials configuration file that links the workload identity pool, provider, and service account together: > > ```bash theme={null} > gcloud iam workload-identity-pools create-cred-config \ > --aws "projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/draftt-wif-integration/providers/draftt-wif-aws-integration" \ > --service-account="draftt-wif-int-readonly@$PROJECT_ID.iam.gserviceaccount.com" \ > --output-file="draftt_gcp_wiff_integration_credentials.json" \ > --project="$PROJECT_ID" > ``` > > > [!NOTE] > > > > Unlike a service account key, a credential configuration file does not contain a private key and does not need to be kept confidential. > > **9. Upload the JSON file to Draftt** > > Upload the downloaded JSON file in the Draftt setup dialog to complete the integration. > [accordion] Workload Identity Federation - UI > > Select either **Organization Level** or **Project Level** scope. > > > [!NOTE] > > > > You can select any project under the organization. However the project must have the relevant admin APIs enabled. > > **1. Create a GCP Service Account** > > Go to [Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts) and click **Create service account**. > > Use the following values: > > * **Service account name:** `draftt-wif-int-readonly` > * **Service account ID:** `draftt-wif-int-readonly` > * **Description:** `A read only service account for Draftt integration` > > Grant this service account the following roles at the organization level in the IAM console: > > * `Viewer` > * `Browser` > * `iam.securityReviewer` > > **2. Create a Workload Identity Pool** > > Go to [Workload Identity Pool](https://console.cloud.google.com/iam-admin/workload-identity-pools) and click **Create pool**. > > Use the following values: > > * **Pool name:** `draftt-wif-integration` > * **Pool ID:** `draftt-wif-integration` > * **Description:** `Workload Identity Pool for Draftt.io integration` > > Click **Continue** and select **AWS** in the Provider section. Use the following values: > > * **Provider name:** `draftt-wif-aws-integration` > * **Provider ID:** `draftt-wif-aws-integration` > * **AWS Account ID:** `339712924365` > > GCP will automatically create provider attributes that enable configuring the AWS ARN as a GCP identity. Click **Save** and wait for GCP to create the pool. > > **3. Grant Draftt permissions to impersonate the service account** > > Click **Grant access**. In the left panel, choose **Grant access using service account impersonation**. > > Choose the service account created in Step 1. > > Under **Select principals**, choose the `aws_role` attribute name and enter Draftt's fetcher role: > > ``` > arn:aws:sts::339712924365:assumed-role/draftt-fetcher > ``` > > Click **Save**. > > In the **Configure your application** window, choose `draftt-wif-aws-integration` as the provider and download the JSON config file. This file does not include any secrets. > > **4. Upload the JSON file to Draftt** > > Upload the downloaded JSON file in the Draftt setup dialog to complete the integration. > [accordion] Service Account Keys > > **1. Name your integration** > > In Draftt, fill in the **Integration Name** field. Select either **Organization Level** or **Project Level** scope. > > **2. Create a GCP Service Account** > > Go to your Google [Cloud service account](https://console.cloud.google.com/iam-admin/serviceaccounts) and at the project level select **Create Service Account**. > > Enter the **Service account** details and select **Create and Continue**. > > Attach the following roles at the organization level: > > * `Viewer` > * `Browser` > * `iam.securityReviewer` > > **3. Generate a JSON key** > > At the project level, select **Service Accounts** and select the Draftt service account. > > Select **Keys > Manage Keys > Add Key > Create new key**. > > Select **JSON > Create**. A JSON file will be downloaded to your machine. > > **4. Upload the JSON file to Draftt** > > Upload the downloaded JSON file in the Draftt setup dialog to complete the integration. ## What Draftt Reads Draftt's service account is **read-only**. It cannot create, modify, or delete any resources in your GCP environment. The required roles provide access to resource metadata across compute (Compute Engine, GKE, Cloud Run, Cloud Functions), storage (Cloud Storage, Filestore), databases (Cloud SQL, Spanner, Memorystore), networking (VPC, Load Balancing, Cloud CDN), and security (IAM, Secret Manager, KMS). ## Verifying Your Connection After setup, return to **Integrations > GCP** in Draftt. Each connected project or organization shows a status: * **Healthy** - All required access is in place. Draftt is collecting data as expected. * **Unhealthy** - Something is wrong with the service account or permissions. Verify the WIF configuration and IAM role bindings. ## Troubleshooting **WIF authentication fails:** Confirm the AWS account ID (`339712924365`) matches in the provider configuration. Verify the service account email and project number are correct in the credential config. **Missing resources in inventory:** Check that the service account has `roles/viewer` and `roles/browser` at the correct scope (organization vs. project). New connections may take one scan cycle to fully populate. **API not enabled errors:** Ensure both `cloudresourcemanager.googleapis.com` and `iamcredentials.googleapis.com` are enabled in your project. # GitHub Source: https://docs.draftt.io/github Connect your GitHub organization to Draftt to track the dependencies in your repositories. Draftt brings each repository into the **Code** catalog and flags dependencies that are end of life, deprecated, or no longer maintained. Draftt connects through the Draftt.io GitHub App with read-only access. ## Prerequisites * Owner access to the GitHub organization you want to connect * Admin role in the Draftt dashboard (**Integrations > GitHub**) ## Setup **1. Open the GitHub integration** In Draftt, go to **Integrations** and click the **GitHub** card. If your organization already has a GitHub integration, click **Add** on the GitHub page. Draftt opens GitHub so you can install the Draftt.io GitHub App. **2. Choose your organization** Sign in to GitHub if prompted, then select the organization you want to connect. Select the organization, not your personal account, to include its repositories. > [!NOTE] > > If your organization uses SAML single sign-on and doesn't appear in the list, sign in to the organization through your identity provider, then reload the page. **3. Select repository access** Choose which repositories Draftt can read: * **All repositories** includes every current and future repository in the organization. * **Only select repositories** limits access to the repositories you choose. Draftt scans only the repositories selected for the installation. Repositories you don't select aren't scanned, including public repositories. **4. Review permissions and install** Review the requested read-only permissions and click **Install**. > [!WARNING] > > If you aren't an organization owner, GitHub may show **Request** or **Install & request** instead. GitHub emails your organization owners. The integration connects after an owner approves the request. **5. Return to Draftt** After installation, GitHub returns you to Draftt. The integration appears under **Integrations > GitHub**. You don't need an API key or personal access token. ## What Draftt reads The Draftt.io GitHub App has **read-only** access to repository contents and metadata. It cannot push code, open pull requests, or change settings in your organization. For each repository in the installation, Draftt reads: * **Repository details:** Name, visibility, and last push date * **Dependency files:** Build files and lockfiles. Draftt fetches only the files it needs to find dependencies, and fetches the full repository only if a scan needs it Draftt then checks each dependency for: * **End of life:** Versions that have reached end of life, with the next supported version * **Deprecation:** Packages that are deprecated or archived on GitHub, with a suggested replacement when one exists ## Verifying your connection After setup, return to **Integrations > GitHub** in Draftt. The table shows the integration name, installation ID, GitHub organization ID, GitHub organization name, and date the integration was created. If Draftt can't connect to the organization, a warning icon appears next to the integration name. Hover over the icon to see the reason, such as an authentication failure, an IP allow list restriction, or missing permissions. After the first scan finishes, your repositories appear under **Code > Catalog**. To learn how Draftt analyzes and surfaces your dependencies, see [Code Components](/code-components). ## Managing the integration To change which repositories Draftt can read, go to **Integrations > GitHub** and click **Configure** on the integration row. Draftt opens the app's settings in GitHub, where you can update the repository selection and save. You can also open these settings from GitHub under **Your organizations > Settings > Third-party Access > GitHub Apps > Draftt.io > Configure**. For details, see GitHub's guide to [reviewing and modifying installed GitHub Apps](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps). Deleting the integration in Draftt doesn't uninstall the Draftt.io GitHub App from your GitHub organization. To remove it completely, also uninstall the app in GitHub under **Settings > Third-party Access > GitHub Apps**. # Governance Policies Source: https://docs.draftt.io/governance-policies Create governance policies to evaluate resources against standards that matter to your organization. Policies are the rules engine behind Draftt's governance. Draftt continuously evaluates resources against active policies, assigns each matching resource a status, and surfaces those results on the Policies page, in the inventory page for each resource type, and in connected integrations. Draftt supports two policy types: * **Lifecycle policies**: System-managed policies that track technology lifecycle events. * **Custom policies**: Policies that let you define and enforce your own standards for your environment. ## Policy Types ### Lifecycle Policies Lifecycle policies come out of the box with the Draftt platform. They track end-of-life dates, whether components run the latest version, certificate expiration, and compatibility windows across your infrastructure, Kubernetes clusters, and code. | Policy | What it tracks | | - | - | | End of Life | Vendor end-of-life dates for technologies in your inventory, with statuses based on their proximity to end of life. | | Latest | Whether a component is running the latest stable or LTS version. | | Kubernetes Compatibility | Compatibility of clusters, nodes, workloads, Kubernetes APIs, and CRDs with supported Kubernetes versions. | | Certificate Expiration | SSL/TLS certificate validity windows across your infrastructure. | | Code Dependencies | Outdated and deprecated libraries your code depends on. | Each lifecycle policy uses the statuses that fit what it tracks. To learn what each status and version means, see [Lifecycle Management](/lifecycle-management). > [!NOTE] > > System policies are managed by Draftt and cannot currently be edited. ### Custom Policies Custom policies let you define your own standards. You determine which resources the policy evaluates and define the rules for assigning statuses. Draftt evaluates every matching resource during each scan cycle. Use custom policies to enforce standards related to configuration, compatibility, golden configurations, tagging, resource-specific settings, and other conditions available in your inventory data. You can create custom policies for these resource types: * Infrastructure * Certificate * Kubernetes * Runtimes (coming soon) ## How Policies Work Every policy follows the same evaluation loop: 1. **Scope**: A query determines which resources the policy evaluates. Without a query, the policy evaluates all resources of the selected type. 2. **Evaluate**: Draftt checks each resource against the configured status assignments. 3. **Assign**: The first matching status is assigned. If no rule matches, the resource receives the policy's default status. 4. **Surface**: Policy results appear on the **Policies** page and in the inventory page for each resource type. Policies are automatically re-evaluated during every scan cycle. You can also trigger an evaluation from the Policies page. The policy displays **Analyzing** while the evaluation is running and returns to **Active** when it is complete. ## Anatomy of a Custom Policy Each custom policy includes status assignments, a default status, status assignment rules, and an optional resource scope. ### Status Assignments Custom policies support two statuses: | Status | Meaning | | - | - | | Compliant | The resource meets the policy's requirements. | | Non-Compliant | The resource does not meet the policy's requirements. | You define the conditions for each status and choose one as the default status. ### Default Status The default status is assigned when a resource does not match any configured status assignment rule. For example, a policy can use **Non-Compliant** as the default status and assign **Compliant** when a resource meets the required conditions. ### Status Assignment Rules For **Compliant** or **Non-Compliant**, you can add one or more condition blocks. Each block can contain: * **Prerequisites**: Optional filters that determine whether Draftt evaluates the block for a resource. For example, a condition that checks `autoMinorUpgrade` can use a prerequisite to limit evaluation to RDS resources. * **Conditions**: Field, operator, and value combinations that determine whether a resource matches the block. Conditions within the same block use **AND** logic. Multiple blocks assigned to the same status use **OR** logic, so matching any block assigns that status. ### Resource Scope (Query) The optional resource scope determines which resources the policy evaluates. You configure it during the **Query Rules** step of policy creation. Leave the query empty to evaluate all resources of the selected resource type. ## Create a Custom Policy Guided Policy Creation walks you through the information required to create a policy, from selecting a starting point to reviewing the completed configuration. Open **Policies** from the main navigation. The page displays Draftt's system policies and any custom policies already created for your environment. Select **Add New Policy** to begin. **1. Choose a Creation Method** Choose how you want to create the policy: * **Personalized Template**: Start with a policy template tailored to your environment and common governance needs. Templates are prioritized using risk and affected-resource data. * **Natural Language Prompt**: Describe what you want to govern in plain language. Draftt generates a matching policy configuration that you can review and refine before creating it. * **Build Manually**: Define the policy scope, prerequisites, conditions, and status assignments step by step. ![Guided Policy Creation screen with Personalized Template, Natural Language Prompt, and Build Manually options.](https://mintcdn.com/draftt/cl4fiptSn5pFPHfz/images/guided-policy-creation.png?fit=max\&auto=format\&n=cl4fiptSn5pFPHfz\&q=85\&s=921e891d560772275194fb247e68434b) **2. Add Basic Information** In **Basic Information**, select the resource type, then add the policy name and an optional description. Use a name that clearly communicates the standard being evaluated and the expected outcome. **3. Define Query Rules** In **Query Rules**, define the resources the policy should evaluate. Use the available fields and operators to narrow the policy to the relevant resource type, technology, service, environment, region, or other inventory attributes. Leave the query empty when the policy should evaluate all resources of the selected type. **4. Configure Status Assignments** In **Status Assignments**, define the prerequisites and conditions that assign each of the supported statuses: **Compliant** and **Non-Compliant**. Choose the default status that applies when no condition block matches. Available fields include general resource properties and technology-specific attributes. Some fields automatically apply the prerequisites required to evaluate them correctly. > [!TIP] > > Conditions within a rule block use **AND** logic. Add multiple blocks to the same status when you need **OR** logic. **5. Preview and Create** Use **Preview & Create** to review the policy scope, query rules, statuses, and assignment logic before creating the policy. Return to an earlier step if anything needs to be adjusted. Select **Create** when the configuration is ready. Draftt immediately starts evaluating matching resources. The policy displays **Analyzing** until the evaluation is complete, then changes to **Active**. ## Policy Templates Policy templates are pre-built custom policies for common infrastructure standards, security requirements, lifecycle controls, configuration checks, and cost optimization opportunities. Each template includes policy logic for a specific technology, service, or resource type, together with the conditions used to identify matching resources. You can use the proposed configuration as-is or customize it during the guided creation flow. All templates are available by selecting **Personalized Template** in the **Creation Method** step. Templates relevant to your connected environment are prioritized using risk and the number of affected resources, so you can focus on the policy opportunities with the greatest current impact. Each recommendation shows the percentage of matching resources that triggered it, so you can understand its reach before creating the policy. Search for a specific template or filter templates by governance category: | Category | Includes | | - | - | | Compliance | Security, encryption, access, and governance controls. | | Lifecycle | Retention, aging resources, versioning, and maintenance readiness. | | Cost | Optimization opportunities and unused or underused resources. | | Configuration | Infrastructure setup, operational standards, and baseline configuration. | A template can belong to more than one category when it supports multiple governance use cases. ## Where Policies Appear Manage policies on the **Policies** page, and track their results in the inventory page for each resource type. * **Policies page**: Create and edit custom policies, view each policy's configuration, status breakdown, and evaluation results, and check when it was last evaluated. You can also trigger a new evaluation. To see the resources behind a policy's results, select **Explore** in the policy drawer. * **Inventory pages**: Each resource type has its own inventory page, where you can filter by policy, see the status each resource received, and drill down to the resources behind any status: * **Infrastructure Inventory** * **Certificates** * **Kubernetes Inventory** * **Code Inventory** Custom policy tables display the fields relevant to governance evaluation and do not include lifecycle-specific due-date or urgency fields. ## Next Steps * Explore policy results in the [Tech Debt Inventory](/tech-debt-inventory), where you can drill down to the resources behind each policy status. * Connect [Integrations](/integrations-overview) to route policy violations to your ticketing and collaboration tools. # Getting Started Source: https://docs.draftt.io/gs Your connectors are live. Your inventory is building. Now it's time to turn raw data into governed outcomes. This guide walks you through your first governance cycle: inspecting what Draftt found, setting the rules, and closing the loop so debt gets eliminated, not just reported. ## Phase 1: Identify -- Know What You're Carrying ### Read the Room Open the **Tech Debt Inventory**. This is ground truth for your entire tech stack: every component, its current version vs. latest available, known CVEs, configuration baseline status, ownership signals, and cost footprint. Use filters to slice by connector, resource type, severity, or team. Click any resource to open its full governance profile: version gap analysis, dependency chain, blast radius, related findings, and the complete ownership trail. On your first pass, look for the four patterns that matter most: * **EOL ticking clocks** -- Components approaching or past their vendor support date. These are the findings that will eventually become incidents. * **Orphaned infrastructure** -- Resources with no ownership signal from any source. If nobody owns it, nobody is maintaining it. * **Baseline drift** -- Production resources that diverge from your expected configuration. Encryption disabled, public access open, backup retention too short. * **Silent cost bleed** -- Resources with zero recent activity still burning budget. > [!TIP] > > Already connected Port? IDP data is the highest-confidence ownership signal in Draftt. If ownership looks sparse, this is the connector to prioritize next. *** ## Phase 2: Understand -- Define What Good Looks Like Raw inventory is a spreadsheet. Governance requires intent. This is where you declare your organizational standards. ### Set Your Governance Baseline Go to **Governance Policies** and define two or three rules that represent real organizational priorities. Not aspirational. Real. Rules that, if violated today, would make someone lose sleep: * "Production databases must not be within 90 days of EOL" * "All storage must enforce encryption and block public access" * "No production resource should be unowned" Draftt evaluates every resource against active policies and surfaces violations as findings -- each with what is wrong, why it matters, and a recommended path to resolution. See [Governance Policies](/governance-policies) for the full configuration guide. *** ## Phase 3: Eliminate -- Close the Loop A finding in a dashboard is a statistic. A finding in the right engineer's queue with remediation steps and full context is work that gets done. This is where governance becomes operational. ### Route Findings to Your Ticketing System Go to **Settings > Integrations** and connect your ticketing platform. Tickets can be created manually from any finding or configured to be triggered automatically. Each ticket includes what is wrong, why it matters, and step-by-step remediation guidance. | Platform | Auth Method | | - | - | | [Jira](/ticketing) | Atlassian OAuth | | [ServiceNow](/ticketing) | OAuth 2.0 Client Credentials | | [Azure DevOps](/ticketing) | Entra ID App Registration | ### Set Up Alerts Connect at least one notification channel so findings reach people when they matter. | Channel | Setup | | - | - | | [Slack](/notifications) | Real-time alerts to any channel | | [Microsoft Teams](/notifications) | Adaptive cards with finding context | | [Email](/notifications) | Scheduled digests and event-based alerts | *** ## The Governance Cycle Is Running You have a closed loop: inventory evaluated against your policies, findings routed as actionable work to the right people through the tools they already use. Everything from here is refinement. Every suppressed finding, adjusted threshold, and routing rule you configure takes effect on the next scan. # How Draftt Works Source: https://docs.draftt.io/how-it-works Draftt runs a continuous governance loop across your tech stack. Here is how data flows from your infrastructure to an actionable finding in your team's queue. ## The Governance Loop **1. Connect your sources** Draftt connects to your cloud providers, managed services, registries, ticketing platforms, and collaboration tools via read-only integrations. No agents required. No changes to your infrastructure or code. See [Connectors & Integrations](/integrations-overview) for the full list. **2. Build the inventory** Draftt pulls resource metadata from every connected source and assembles a unified, continuously updated inventory. Each resource is enriched with version data, configuration state, ownership signals, and cost attribution. The inventory reflects the live state of your stack, not a point-in-time snapshot. **3. Evaluate against policies** On every scan cycle, Draftt evaluates every resource in your inventory against your active governance policies. System policies track end-of-life status, whether components run the latest version, certificate expiration, and Kubernetes compatibility out of the box. Custom policies let you enforce your own standards. See [Governance Policies](/governance-policies) for how policies are configured. **4. Surface findings** When a resource violates a policy, Draftt surfaces it in the inventory with the affected resource, the violated policy, the resolved owner, and a recommended remediation path. **5. Route to remediation** Findings are routed to the tools your teams already use: Jira, ServiceNow, Azure DevOps, Slack, Teams, or email. Tickets include everything the engineer needs to act: what is wrong, why it matters, who owns it, and how to fix it. ## Scan Frequency Draftt scans every 8 hours by default. The scan interval can be configured to match your organization's needs. Policy evaluation runs on every scan cycle, so your inventory and governance status always reflect a recent state of your stack. ## Data Access All integrations use read-only access. Draftt never modifies your infrastructure, pushes configuration changes, or writes to your cloud accounts. The only write actions Draftt performs are creating tickets and sending notifications in platforms you have explicitly connected and configured. # Welcome to Draftt Source: https://docs.draftt.io/index Draftt helps platform and engineering teams stay ahead of tech debt, end-of-life upgrades, vulnerabilities and compliance gaps with **MaintenanceOS™**, the maintenance layer for the software factory. MaintenanceOS connects to your cloud accounts, registries, source control and ticketing through read-only access, with no agents and no code changes. It continuously identifies, prioritizes and routes each item to its owner, then verifies the fix in production. This documentation covers setup, policies, the tech debt inventory, ticketing and integrations. ![Draftt Platform](https://mintcdn.com/draftt/apLZ2zJ5uMh_Rbqo/images/LinkedInCompanyCover\(1\).png?fit=max\&auto=format\&n=apLZ2zJ5uMh_Rbqo\&q=85\&s=6f79a2a6e27f2890d4b6316b1dbaa747) **Identify** what's at risk. **Understand** why it matters. **Eliminate** tech debt systematically. > [card] [Product Overview](/overview) > > Learn what Draftt does and why proactive governance matters > [card] [Getting Started](/gs) > > Go from blind spots to governed outcomes > [card] [How Draftt Works](/how-it-works) > > Understand the governance loop from identification to remediation ## Stop discovering problems after they become incidents Tech debt accumulates silently. Outdated runtimes, orphaned resources, policy drift, and unowned infrastructure don't announce themselves until something breaks, or until an extended support bill arrives. Draftt surfaces these risks continuously, before they cost you an incident, a compliance finding, or a quarter of engineering time. Draftt works on top of your existing cloud accounts, registries, and tools. No agents to deploy. No code changes required. No disruption to how your teams work today. ## Turn standards into enforced policy Governance policies that live in a wiki get ignored. Draftt evaluates every resource against your active policies on every scan cycle and surfaces violations as findings, each with business context, ownership, and a clear path to resolution. * [Governance Policies](/governance-policies) to configure your standards * [Tech Debt Inventory](/tech-debt-inventory) to explore your findings ## Make remediation part of the workflow A finding that stays in a dashboard is a statistic. Draftt routes findings into the tools your engineers already use: Jira, ServiceNow, Azure DevOps, Slack, and Teams, with the context needed to act, not just the raw signal. * [Ticketing](/ticketing-workflow) to route findings to your engineering queues * [Integrations](/integrations-overview) to see everything Draftt connects to *** **Ready to shift from reactive to proactive governance?** [Schedule a Demo](https://www.draftt.io/book-a-demo). # Integrations Overview Source: https://docs.draftt.io/integrations-overview Draftt connects to your existing infrastructure, tools, and workflows to discover and govern tech debt across your entire stack. All integrations use read-only access where applicable and can be managed from **Integrations** in the Draftt dashboard. ## Cloud Providers Connect your cloud accounts to scan infrastructure resources, track configurations, and detect lifecycle and compliance debt. > [card] [AWS](/aws) > > Cross-account IAM role via CloudFormation > [card] [Google Cloud](/gcp) > > Workload Identity Federation or service account > [card] [Azure](/azure) > > Entra ID App Registration with Reader role ## Cloud Resources Connect additional cloud services for deeper governance coverage. > [card] [Kubernetes](/k8s) > > Kubernetes cluster scanning > [card] [MongoDB Atlas](/mongodb-atlas) > > API key integration for cluster governance > [card] [Redis Cloud](/redis-cloud) > > Redis deployment governance > [card] [JFrog Artifactory](/jfrog) > > Artifact version and vulnerability monitoring ## Source Control Connect your source control so Draftt can track the dependencies in your repositories and flag lifecycle risk. > [card] [GitHub](/github) > > GitHub App with read-only repository access ## Data Platforms Connect a data warehouse so Draftt can import your asset inventory and check it for end-of-life and end-of-service risk. > [card] [Azure Databricks](/azure-databricks) > > Connect a Databricks SQL warehouse (read-only) to browse and select inventory tables ## AI Platforms Discover and govern AI models across your organization. Connect a provider below, then use [AI Governance](/ai-governance) to track model usage, cost, calling identities, and lifecycle risk. > [card] [OpenAI](/openai) > > Track models and upcoming deprecation dates > [card] [AWS Bedrock](/aws) > > Bedrock models via the AWS connector > [card] [Azure AI Foundry](/azure) > > Foundry models via the Azure connector ## Endpoint Management Enrich your cloud inventory with endpoint-level visibility from your endpoint management platform. > [card] [Tanium](/tanium) > > GraphQL Gateway API token with read-only access ## Ticketing Create and track remediation issues through your existing project management tools. > [card] [Jira](/ticketing) > > Atlassian OAuth > [card] [ServiceNow](/ticketing) > > OAuth 2.0 Client Credentials > [card] [Azure DevOps](/ticketing) > > Entra ID App Registration ## Collaboration Receive governance notifications where your team already works. > [card] [Slack](/ob) > > Real-time channel notifications > [card] [Microsoft Teams](/ob) > > Teams channel notifications > [card] [Email](/ob) > > Email alerts and digests ## Internal Developer Portal Sync ownership and service catalog data with your developer portal. > [card] [Internal Developer Portal](/port) > > Catalog sync with ownership and governance enrichment. Currently supports Port. ## Getting Started 1. Go to **Integrations** in the Draftt dashboard 2. Select the platform you want to connect 3. Follow the guided setup flow 4. Verify the connection shows **Healthy** status Most integrations take under 5 minutes to set up. Start with your cloud providers to get immediate visibility into infrastructure tech debt, then expand to source control and ticketing for a complete governance workflow. # JFrog Artifactory Source: https://docs.draftt.io/jfrog Connect JFrog Artifactory to Draftt to monitor artifact versions and detect vulnerabilities across your software supply chain. Draftt scans your Artifactory repositories for outdated packages, EOL runtimes, and dependency risks alongside your cloud infrastructure. ## Setup **1. Name your integration** In Draftt, go to **Integrations > JFrog Artifactory > Add**. Enter a descriptive name to identify this integration in your dashboard. **2. Generate an API key** Open your [JFrog user profile page](https://your-instance.jfrog.io/ui/user-profile) and navigate to the **API Keys** section to generate a new API key. Paste it into the Draftt setup dialog. **3. Enter your JFrog endpoint** Enter your JFrog Artifactory instance URL. This should be your JFrog cloud instance or self-hosted server URL (e.g. `https://your-company.jfrog.io`). **4. Select repositories** Specify the repositories to scan as a comma-separated list (e.g. `docker-local, npm-local, maven-local`). Leave empty to scan all available repositories in your JFrog instance. ## What Gets Scanned Draftt scans your Artifactory repositories for: * **Lifecycle debt:** Packages and base images that have reached end of life or are approaching end of support * **Version gaps:** Dependencies significantly behind current stable releases * **Vulnerability exposure:** Artifacts with known CVEs based on version metadata ## Verifying Your Connection After setup, return to **Integrations > JFrog Artifactory** in Draftt. A **Healthy** status means Draftt can access your repositories and is scanning as expected. If **Unhealthy**, verify that the API key is valid and has not been revoked. # Kubernetes Source: https://docs.draftt.io/k8s Connect your Kubernetes clusters to Draftt to detect version compatibility issues, track configuration drift, and get actionable upgrade plans. Draftt uses a lightweight Helm-based collector deployed into your cluster. Learn how Draftt catalogs and governs cluster resources in [Kubernetes governance](/kubernetes-governance). ## Prerequisites * A Kubernetes cluster with `kubectl` configured and pointing to the correct context * [Helm](https://helm.sh/docs/intro/install/) installed on your machine * A Draftt account with tenant admin permissions (to create an access key) ## Setup **1. Select a cluster** In Draftt, go to **Integrations > K8s Explorer > Add**. Select the cluster you want to connect. **2. Add the Draftt Helm repository** Add and update the Draftt Helm chart repository: ```bash theme={null} helm repo add draftt-io https://draftt-io.github.io/helm-charts helm repo update ``` **3. Create a Draftt API access key** Navigate to **Settings > [Access Keys](https://app.draftt.io/settings/access-keys)** in Draftt. Create a new access key with **tenant admin** permissions. Save the key. You will need it in the next step. **4. Create a Kubernetes Secret** > [!NOTE] > > The commands below assume that you deploy Draftt Explorer in an existing `monitoring` namespace. You can use a different namespace, but you must update the namespace in each command accordingly. Create a Secret to store your Draftt API key: ```bash theme={null} kubectl create secret generic draftt-api-token \ --from-literal=drafttApiToken= \ -n monitoring ``` **5. Install the Helm chart** Install the Draftt Explorer chart: ```bash theme={null} helm install draftt-explorer draftt-io/draftt-explorer \ --set appConfig.clusterIdentifier="" \ -n monitoring ``` Replace `` with a name that identifies this cluster in Draftt (for example, `arn:aws:eks:us-east-1:12345678910:cluster/production-us-east-1`). **6. Validate the integration** Run the collector job manually to verify everything is working: ```bash theme={null} kubectl create job --from=cronjob/draftt-explorer draftt-test-run -n monitoring ``` Check the job logs to confirm that data was sent to Draftt successfully. Once validated, the collector runs automatically on its configured schedule. ## Upgrade from Draftt collector agent version 0.0.1 Use these instructions to upgrade an existing Draftt collector installation from agent version `0.0.1`. **1. Update the Draftt Helm repository** ```bash theme={null} helm repo update ``` **2. Review the current release values** ```bash theme={null} helm get values draftt-explorer \ --namespace monitoring \ --output yaml ``` Review the values currently set for the release. Identify any values supported by agent v2 that should remain configured after the upgrade.\\ The next step uses `--reset-values`, so Helm will not retain these values automatically. **3. Upgrade the collector** ```bash theme={null} helm upgrade draftt-explorer draftt-io/draftt-explorer \ --namespace monitoring \ --reset-values \ --set-string appConfig.clusterIdentifier="" ``` `--reset-values` removes the stored legacy values and applies the agent v2 chart defaults. To reapply values identified in the previous step, use: * `--set` or `--set-string` for individual values * `--values ` or `-f ` for a values file **4. Verify the upgrade** ```bash theme={null} helm status draftt-explorer --namespace monitoring kubectl get cronjob draftt-explorer --namespace monitoring ``` ## What Draftt collects Draftt Explorer is a **read-only collector**. It discovers resources exposed through the Kubernetes API and sends their metadata and configuration to Draftt for analysis. It does not modify cluster resources. | Resource type | Data collection | | - | - | | Native Kubernetes resources | Metadata and configuration for supported Native Kubernetes resource Kinds. For example, Deployments, Services, CronJobs, etc. | | Custom resources (CRD) | Metadata for all CRD resources and full configuration for resources of well-known CRDs. | \* Configuration refers to the Kubernetes resource `spec`. Collected metadata includes: * Resource identity * Namespace * API version * Labels * Annotations * Owner references * Management signals > [!NOTE] > > Draftt does not collect sensitive information from the cluster. All collected configuration is sanitized before it is sent to Draftt. ## Supported environments The Helm-based collector works with any Kubernetes distribution: managed services (EKS, AKS, GKE), self-managed clusters, and on-premises deployments. Connect multiple clusters by repeating the setup for each one. ## Verify your connection After the test job completes, return to **Integrations > K8s Explorer** in Draftt. The connected cluster shows a status: * **Healthy** — The collector is running and Draftt is receiving data. * **Unhealthy** — Check that the API key Secret exists in the correct namespace, the Helm chart is installed, and the CronJob is scheduled. ## Troubleshooting **Job fails with authentication error:** Verify the `draftt-api-token` secret exists in the correct namespace and contains a valid API key with tenant admin permissions. **No data appearing in Draftt:** Confirm the `clusterIdentifier` value matches what you expect in the Draftt dashboard. Check the job logs with `kubectl logs job/draftt-test-run -n monitoring`. **Helm install fails:** Ensure the Draftt Helm repo was added and updated (`helm repo update`). Verify the target namespace exists (`kubectl create namespace monitoring` if needed). # Kubernetes governance Source: https://docs.draftt.io/kubernetes-governance Understand how Draftt catalogs Kubernetes resources, evaluates policy compliance, and supports cluster upgrades. Draftt brings Kubernetes resources, policy results, and upgrade readiness into one view. Use it to understand what is running across connected clusters, identify resources that need attention, and plan the changes required for a cluster upgrade. ## Resource catalog The Kubernetes Resource Catalog provides a searchable view of supported native Kubernetes resources and Custom Resource Definitions (CRDs) discovered across connected clusters. Explore resources by cluster, namespace, kind, API version, label, ownership classification, and management context. Each resource includes relevant details such as its container images, served CRD API versions, and whether it is managed through Helm, Argo CD, or Flux. This helps you understand how each resource is configured, who owns it, and how changes should be delivered. ## Inventory Kubernetes Inventory combines cataloged resources with their policy evaluation results. It shows the compliance status of each resource for the selected policies, along with the context needed to investigate and address the result. Use filters and saved views to focus on specific clusters, namespaces, resource kinds, labels, or policy statuses. ## Upgrade plan When a target Kubernetes version is available for a cluster, Draftt creates a cluster-specific upgrade plan. The plan brings together the changes required across: * The control plane * Nodes * Kubernetes API resources * CRDs * Workloads * Container images Each item retains its relevant ownership and management context, including whether it is managed through Helm, Argo CD, or Flux. Use the plan to understand upgrade requirements, assign ownership, sequence remediation work, and track progress toward the target version. Use the [Draftt MCP](/draftt-mcp) to make the upgrade plan available to an LLM or coding agent. The agent can then generate cluster-specific commands and remediation steps based on Draftt's guidance. To connect a cluster and install the collector, see [Kubernetes](/k8s). ## Related policies Kubernetes policies evaluate resource configuration, organizational standards, and compatibility with target Kubernetes versions. See [Governance policies](/governance-policies). ## Common use cases * **Understand what is running.** Build a current inventory of resources across clusters and namespaces. Explore their configuration, ownership, API versions, labels, container images, relationships, and management through Helm, Argo CD, or Flux. * **Investigate policy results.** Identify resources that require attention and prioritize them by policy status. Use their configuration, ownership, cluster, and management context to understand each result and determine the appropriate remediation path. * **Prepare for a Kubernetes upgrade.** Identify the changes required across the control plane, nodes, APIs, CRDs, workloads, and container images before moving to a target Kubernetes version. * **Coordinate upgrade execution.** Use the upgrade plan to assign ownership, sequence remediation work, and maintain a shared view of upgrade progress. Connect the plan to your coding agent through the [Draftt MCP](/draftt-mcp) to generate implementation guidance grounded in the cluster's actual context. # Lifecycle Management Source: https://docs.draftt.io/lifecycle-management Understand how Draftt's lifecycle policies track end of life, latest versions, compatibility, and expiration, and what each status and version means. Lifecycle policies come out of the box with the Draftt platform. They track end-of-life dates, whether components run the latest version, certificate expiration, and compatibility windows across your infrastructure, Kubernetes clusters, and code. Draftt evaluates every matching resource against these policies on each scan cycle, so you can see what needs an upgrade and plan it before support runs out. ## Lifecycle Policies | Policy | What it tracks | | - | - | | End of Life | Vendor end-of-life dates for technologies in your inventory, with statuses based on their proximity to end of life. | | Latest | Whether a component is running the latest stable or LTS version. | | Kubernetes Compatibility | Compatibility of clusters, nodes, workloads, Kubernetes APIs, and CRDs with supported Kubernetes versions. | | Certificate Expiration | SSL/TLS certificate validity windows across your infrastructure. | | Code Dependencies | Outdated and deprecated libraries your code depends on. | > [!NOTE] > > System policies are managed by Draftt and cannot currently be edited. ## Statuses Each area of your stack uses the statuses that fit what Draftt tracks there. Each status has a criticality level that determines how it is prioritized across Draftt. > [tab] Infrastructure > > Assigned by the End of Life policy and shown in **Infrastructure Inventory**. > > | Status | Meaning | > | - | - | > | Supported | The current version is actively supported. | > | Impending | Within the next 180 days, the current version reaches end of life and a newer version is available to move to, or the current version enters extended support. | > | Outdated | The current version has passed its due date. | > [tab] Code > > Assigned by the Code Dependencies policy and shown in **Code Inventory**. > > | Status | Meaning | > | - | - | > | Compliant | The current version is supported and meets the required version. | > | Outdated | The current version has reached end of support. Upgrade to the required version. | > | Deprecated | The package is deprecated by its maintainers or archived on GitHub. Replace it with a suggested alternative where one is available. | > [tab] Kubernetes > > Assigned by the Kubernetes Compatibility policy and shown in **Kubernetes Inventory**. > > | Status | Meaning | > | - | - | > | Compatible | The resource is compatible with supported Kubernetes versions. | > | Impending | The resource is still compatible, but its compatibility is about to end. Plan the change before it becomes incompatible. | > | Incompatible | The resource isn't compatible with supported Kubernetes versions. | > [tab] Certificates > > Assigned by the Certificate Expiration policy and shown on the **Certificates** page. > > | Status | Meaning | > | - | - | > | Issued | The certificate is valid and hasn't expired. | > | Expired | The certificate has passed its expiration date. Renew or replace it. | ## End of Life The End of Life policy compares the version each infrastructure resource runs against the vendor's lifecycle dates and assigns a status based on how close the version is to losing support. See the **Infrastructure** statuses above. ### Versions The Inventory shows three versions for each resource evaluated by the End of Life policy: | Version | Meaning | | - | - | | Current Version | The version the resource currently uses. | | Required Version | The minimum version required to run a supported version. | | Recommended Version | The version Draftt suggests upgrading to. | Use the required version to stay supported, and the recommended version to plan an upgrade that lasts longer. ### Recommended Version Override Admins can override the recommended version that Draftt suggests, so it reflects your organization's upgrade standards. For example, you can recommend `java21` for every AWS Lambda Java function in your development accounts that runs `java17` or older. ![New Override Rule dialog for AWS Lambda Java, filtered to two vendor scope identifiers, recommending java21 when the current version is at or older than java17, with 34 matching components.](https://mintcdn.com/draftt/S52ncoffP6dfhcp8/images/recommended-version-override.png?fit=max\&auto=format\&n=S52ncoffP6dfhcp8\&q=85\&s=278189ffba7efc9bcc01d68bd7e90dab) Creating an override rule requires admin permissions. On the **Policies** page, select the actions menu (three dots) on the **End of Life** policy in the policies table to create a new override rule, then follow these steps: **1. Choose a Technology** Select the technology the rule applies to, such as **AWS Lambda Java**. **2. Add Filters (Optional)** Narrow the components the rule applies to, such as **Vendor Scope Identifier** **In** `dev`, `draftt-dev`. You can skip this step. **3. Choose a Strategy** Under **Strategy**, choose how Draftt sets the recommended version: * **Latest / LTS**: Recommend the latest stable or LTS version. * **Specific version**: Recommend a version you choose based on the current version. For example, if the current version is **At or older than** `java17`, recommend `java21`. **4. Review and Create** The **Target version** panel shows the version the rule recommends and how many matching components you can see. Select **Create override** to apply the rule. Matching components then show the override as their **Recommended Version** in the Inventory. ## Lifecycle Signals Draftt tracks the lifecycle events vendors publish for each version. These events set the due dates that drive End of Life statuses: * **End of Support**: The vendor stops standard support for the version, such as regular bug fixes and security patches. * **Extended Support**: A support period some vendors offer after standard support ends. It often carries an extended support fee, which Draftt tracks where the vendor charges one. * **Forced Upgrade**: The date the vendor enforces an upgrade to a newer version. * **Decommission**: The date after which the version can no longer be used. * **End of Life**: The vendor no longer supports the version. To get alerts before these events, set up [Notification Settings](/notifications) for Component End of Life, Component Extended Support, and Component Forced Upgrade events. ## Next Steps Learn how policies are evaluated and how to create your own in [Governance Policies](/governance-policies). # MongoDB Atlas Source: https://docs.draftt.io/mongodb-atlas Connect your MongoDB Atlas organization or projects to Draftt to detect version gaps, monitor performance risks, and stay ahead of patching. ## Prerequisites * A MongoDB Atlas account with permissions to create API keys at the Organization or Project level * Access to the Draftt dashboard (**Integrations > MongoDB Atlas**) ## Setup Draftt supports connecting at the **Organization** or **Project** level. Organization-level access covers all projects underneath it. **1. Navigate to your organization** Log in to [MongoDB Atlas](https://cloud.mongodb.com). Select the organization you want to integrate with Draftt by clicking its name. **2. Create an API key** 1. Click **Access Manager** (or **Applications** depending on your Atlas version) 2. Click **Add New** and select **API Key** 3. In the **Description** field, enter: `Draftt Integration - Organization` 4. In **Organization Permissions**, select **Organization Read Only** 5. Click **Next** **3. Enter the keys in Draftt** Copy the generated **Public Key** and **Private Key**. Back in the Draftt setup dialog, paste both keys and click **Create**. > [!WARNING] > > The Private Key is only shown once. Make sure to copy it before closing the dialog. ## What Draftt Reads Draftt's API key has **read-only** access. It cannot create, modify, or delete any resources in your MongoDB Atlas environment. Draftt monitors cluster versions, configuration settings, backup policies, and maintenance windows across your Atlas deployments. ## Verifying Your Connection After setup, return to **Integrations > MongoDB Atlas** in Draftt. Each connected organization or project shows a status: * **Healthy** -- Draftt can access your Atlas data as expected. * **Unhealthy** -- Check that the API key has not been revoked and has Organization Read Only permissions. ## Troubleshooting **Authentication fails:** Verify the Public Key and Private Key are correct. Confirm the API key has not been deleted from Atlas. **Missing clusters:** If you connected at the Project level, only clusters in that project are visible. Connect at the Organization level for full coverage. **IP access list errors:** MongoDB Atlas may require API key access from specific IPs. Check your Atlas API access list settings if connections fail. # Notification Settings Source: https://docs.draftt.io/notifications Draftt sends alerts to your team through Slack, Microsoft Teams, and Email. Go to **Settings > Notifications** to manage notification rules. ## Event Types Notification rules are triggered by the following event types: **Certificate** * Certificate Expiration **Component** * Component End of Life * Component Extended Support * Component Forced Upgrade Each event type has its own configuration options, such as filtering by technology, account, tags, certificate issuer, or domain, and setting how many days before the event you want to be notified. ## Channels * **Slack:** Connect via **Settings > Notifications > Slack Integrations** using Slack OAuth. * **Microsoft Teams:** Connect via **Settings > Notifications > Microsoft Teams Integration**. * **Email:** Configure recipients via **Settings > Notifications > Email Notifications**. # Collaboration Source: https://docs.draftt.io/ob Connect your collaboration platforms to Draftt to receive governance notifications, alerts, and remediation updates where your team already works. ## Supported Platforms > [card] Slack > > Real-time notifications in Slack channels. > [card] Microsoft Teams > > Notifications via Microsoft Teams channels. > [card] Email > > Email notifications for governance findings and alerts. ## Setup Instructions > [accordion] Slack > > Slack connects via **Slack OAuth**. Draftt requests the following scopes: > > * `chat:write` -- Post messages to channels > * `chat:write.public` -- Post to channels without joining > * `channels:read` -- List available public channels > * `groups:read` -- List available private channels > > **1. Start the connection** > > In Draftt, go to **Integrations > Collaboration > Slack > Add**. > > **2. Authorize with Slack** > > You will be redirected to Slack to authorize the Draftt app. Select the workspace you want to connect and approve the requested permissions. > > **3. Select channels** > > After authorization, configure which Slack channels should receive governance notifications. > > **4. Confirm in Draftt** > > The Slack integration appears in your connected collaboration platforms. > [accordion] Microsoft Teams > > **1. Start the connection** > > In Draftt, go to **Integrations > Collaboration > Microsoft Teams > Add**. > > **2. Authorize with Microsoft** > > Follow the Microsoft OAuth flow to authorize Draftt to post messages to your Teams channels. > > **3. Select channels** > > Choose which Teams channels should receive governance notifications. > > **4. Confirm in Draftt** > > The Microsoft Teams integration appears in your connected collaboration platforms. > [accordion] Email > > **1. Start the connection** > > In Draftt, go to **Integrations > Collaboration > Email > Add**. > > **2. Configure recipients** > > Add email addresses or distribution lists that should receive governance notifications. > > **3. Create** > > Click **Create** to finalize the connection. ## How It Works Draftt sends notifications to your connected collaboration platforms when governance events occur. Notifications can include new policy violations, status changes on existing findings, remediation progress updates, and summary digests. Configure notification rules in Draftt to control which events trigger messages and which channels or recipients receive them. ## Verifying Your Connection After setup, return to **Integrations > Collaboration** in Draftt. Each connected platform shows a status: * **Healthy** - Draftt can send messages as expected. * **Unhealthy** - Check that the OAuth authorization has not been revoked and that the Draftt app has not been removed from your workspace. # OpenAI Source: https://docs.draftt.io/openai Connect OpenAI to Draftt to discover and govern the AI models used across your organization. Connect OpenAI to Draftt to discover and govern the AI models used across your organization. Draftt monitors model usage, lifecycle risks, and costs alongside the rest of your technology stack. > [!NOTE] > > You need an OpenAI organization Owner to create an Admin API key. Configure the key with **Read only** permissions for this integration. ## What you'll need * Access to the Draftt dashboard with permission to add integrations. * An OpenAI organization Owner who can create an Admin API key. ## Set up OpenAI **1. Name your integration** In Draftt, go to **Integrations > OpenAI > Add**. Enter a descriptive name to identify the integration in your dashboard. **2. Generate an Admin API key** Open the [OpenAI Admin API keys page](https://platform.openai.com/settings/organization/admin-keys) and select **Create new admin key**. * In **Name**, enter `draftt-admin-key`. * For **Expiration**, select **Never**. * Under **Permissions**, select **Read only**. * Select **Create admin key**, then copy the key. > [!WARNING] > > OpenAI displays the key only once. Store it securely. If you lose it, create a new key. **3. Connect OpenAI** Paste the key into the **Admin API Key** field in Draftt, then complete the setup. ## What Draftt scans Draftt scans your OpenAI organization for: | Area | What Draftt discovers | | - | - | | Model inventory | Models used across your organization. | | Lifecycle risks | Models approaching deprecation or end of support. | | Usage and costs | Model consumption and associated costs. | ## Verify your connection After setup, return to **Integrations > OpenAI** in Draftt. A **Healthy** status means Draftt can access your OpenAI organization and is syncing as expected. If the integration is **Unhealthy**, verify that the Admin API key is valid, has **Read only** permissions, and has not expired or been revoked. # Product Overview Source: https://docs.draftt.io/overview Every technology system accumulates debt. Outdated libraries. Misconfigured infrastructure. Orphaned resources. Compliance gaps. Most teams only discover these problems after they have already caused an incident, a cost spike, or a compliance violation. Draftt changes that. It maintains a unified, continuous inventory of your entire tech stack and surfaces the business impact of every piece of tech debt so your teams can act before things break, not after. Draftt works on top of your existing cloud accounts, registries, and tools. No agents to deploy. No code changes required. # Tech Debt? Identify. Understand. Eliminate. ## Identify Draftt gives you a continuously updated, searchable inventory of everything in your stack and flags what needs attention before it becomes a problem. * **Infrastructure Services:** Know the version, configuration, and health of every managed service, VM, container, cluster, and serverless function across AWS, Azure, and GCP. Not just what exists, but what's drifting. * **Application Dependencies:** See every runtime, framework, and library across your environments with end-of-life dates, version gaps, and patch status so nothing ages out of support undetected. * **Configuration:** Catch policy violations and configuration drift the moment they appear, not during your next audit. * **Cost:** Identify unoptimized resources, unused services, and untracked commitments before they compound into budget problems. * **Compliance:** Track deviations from regulatory and internal policy standards continuously, not as a point-in-time snapshot. ## Understand Not all tech debt is equally urgent. Draftt calculates the business and engineering impact of every finding so your teams focus on what actually matters. * **Business impact:** Is this an SLA risk? Does it affect customers or just internal systems? Can it wait, or does it need immediate action? * **Risk category:** Lifecycle, Configuration, Ownership, Cost, or Compliance. Each has a different remediation path and stakeholder. * **Remediation effort:** How much work is required? Are there prerequisites? Is this a contained fix or does it require cross-team coordination? * **Blast radius:** What depends on this resource? How many systems, teams, or customers are exposed if it fails or goes unpatched? ## Eliminate Draftt integrates with the tools your teams already use to turn findings into resolved work, not dashboard statistics. * **Ticketing:** Route findings to Jira, ServiceNow, or Azure DevOps with full remediation context so engineers have what they need without leaving their queue. * **Policy enforcement:** Governance policies evaluate every resource on every scan cycle. Violations surface immediately with a recommended path to resolution. * **Upgrade plans:** Step-by-step guidance scoped to your specific resource and stack, not a generic runbook. # The Five Faces of Tech Debt Every piece of tech debt falls into one of five categories. Understanding these helps you prioritize and remediate systematically. > [card] Lifecycle Tech Debt > > Outdated software versions no longer receiving security patches or support > [card] Configuration Tech Debt > > Infrastructure and policy misconfiguration that violates best practices > [card] Ownership Tech Debt > > Resources with unclear or missing ownership, creating maintenance gaps > [card] Cost Tech Debt > > Unoptimized resources, unused services, and untracked financial commitments > [card] Compliance Tech Debt > > Deviations from regulatory, organizational, or industry-standard policies # Who Uses Draftt ### VP Engineering & Technology Leadership Right now, answering "what is our riskiest tech debt?" requires pulling data from five different tools and a spreadsheet. Draftt gives engineering leadership a single view of debt trends across the organization: remediation velocity, risk by team, EOL exposure. Resource allocation decisions based on evidence, not gut feel. ### Platform & SRE Teams Platform teams own the standards but don't always own the enforcement. Draftt closes that gap: define your governance policies once, and Draftt evaluates every resource against them on every scan. SREs use it to catch operational risks before they page someone at 2am. ### FinOps & Cost Management Cloud waste is invisible until it shows up on the bill. Draftt surfaces unused resources, overprovisioned instances, and untracked commitments continuously, with ownership data so the right team is accountable for the optimization conversation. ### Individual Engineering Teams Engineers use Draftt to understand the actual state of their dependencies, find outdated versions before they cause incidents, and see exactly what they own and what needs attention. No waiting for a quarterly review to find out. ## Next Steps > [card] [Getting Started](/gs) > > Go from blind spots to governed outcomes > [card] [Integrations](/integrations-overview) > > Connect your infrastructure and start scanning *** **Ready to make governance proactive?** [Login](https://app.draftt.io) or [request a demo](https://www.draftt.io/book-a-demo). # Resource Ownership Source: https://docs.draftt.io/ownership Tech debt without an owner never gets fixed. It accumulates, compounds, and becomes someone else's problem. Draftt resolves ownership for every resource in your inventory using signals from your cloud infrastructure, source control, and internal developer portals. ## Why Ownership Matters An unfixed piece of tech debt costs more with every passing day: * **Velocity tax**: Engineers spend time working around the debt instead of building features * **Knowledge silos**: Only original authors understand the implementation, blocking the team * **Compound risk**: Security debt becomes a breach vector; infrastructure debt becomes an outage * **Scaling blocker**: Adding new team members doesn't improve throughput because they get stuck on tech debt Ownership makes remediation possible because someone is explicitly responsible, understands the context, and can make decisions without waiting for other teams. ## How Draftt Resolves Ownership Draftt uses multiple signals to determine who owns a resource, checked in order of confidence. ### Cloud Resource Tags Ownership tags on the resource itself are the most direct signal. If a resource is tagged with ownership metadata in your cloud provider, that takes priority. **Tag keys recognized:** `owner`, `owner-team`, `service`, `application`, `cost-center`, `maintained-by` **Best practice:** Use standardized tag naming across your cloud accounts. Consistency matters more than convention. ### CMDB If you connect ServiceNow CMDB, Draftt reads CI records to resolve ownership from your existing CMDB data. This is particularly valuable for organizations where CMDB is the authoritative source of infrastructure ownership. See [ServiceNow CMDB](/servicenow-cmdb) for setup. ### Internal Developer Portal If you connect Port, Draftt reads service catalog data to resolve ownership. IDP catalog entries represent deliberate ownership declarations and are a high-confidence signal. See [Internal Developer Portal](/port) for setup. ### Fallback: Orphaned If no owner is found through any signal, the resource is flagged as **orphaned**. Orphaned resources are high-risk: they often harbor security debt, infrastructure debt, and cost waste because no one is accountable for them. ## Orphaned Resources An orphaned resource is one where Draftt cannot determine ownership through any method. **Common causes:** * Missing cloud tags * No matching entry in IDP catalog * No CODEOWNERS coverage * Team that created the resource no longer exists **Remediation:** Assign an explicit owner through cloud tagging or IDP catalog entry. Alternatively, if the resource is no longer needed, decommission it. ## Where Ownership Appears Once resolved, ownership data is available across the platform: **Inventory** - Every resource shows its resolved owner and team. Filter by owner to see all resources belonging to a team. **Policies** - Policy status breakdowns can be viewed per-team to understand which teams have the most governance violations. **Integrations** - When Draftt pushes findings to Jira, Slack, or other tools, ownership context is included so findings reach the right people. ## Best Practices > [accordion] Tag resources at creation time > > Create a standard that all cloud resources must have owner tags from day one. Enforce this through your IaC templates. > > ```hcl theme={null} > // Terraform example > resource "aws_instance" "app_server" { > tags = { > Owner = var.owner_email > OwnerTeam = var.owner_team > Service = var.service_name > } > } > ``` > [accordion] Connect your CMDB or IDP > > If you use ServiceNow CMDB or Port, connect them to Draftt. These sources represent deliberate ownership declarations and are the most reliable signals for organizations with mature service catalogs. > [accordion] Review orphaned resources regularly > > Make orphan resolution a recurring task. Resources without owners should be assigned or decommissioned. ## What's Next * Explore the [Tech Debt Inventory](/tech-debt-inventory) to see how ownership data feeds into governance * Review [Governance Policies](/governance-policies) to enforce ownership standards across your stack # Internal Developer Portal Source: https://docs.draftt.io/port Connect Draftt to your internal developer portal to sync ownership and governance data with your service catalog. Draftt currently supports **Port**. Connect Draftt to Port to sync your service catalog with Draftt's ownership and governance data. Draftt enriches Port entities with tech debt signals, lifecycle status, and policy compliance so your internal developer portal reflects the actual state of your infrastructure. ## How It Works Draftt installs as a Helm chart into your cluster and pushes data to Port via Port's API. Once connected, Draftt-managed services and resources appear as entities in your Port catalog, enriched with: * Lifecycle debt status (EOL dependencies, runtime versions) * Policy compliance scores * Resolved ownership mappings * Active findings and remediation links ## Setup **1. Get your Port credentials** In Port, go to **Settings > Credentials** and copy your **Client ID** and **Client Secret**. **2. Connect Port in Draftt** In Draftt, go to **Integrations > Port > Add**. Enter your Port Client ID and Client Secret and click **Create Integration**. **3. Configure sync scope** Select which Draftt resource types to sync to Port (services, clusters, databases, etc.) and map them to Port blueprint types in your catalog. **4. Verify in Port** Open your Port catalog and confirm that Draftt-enriched entities are appearing with the expected properties and relations. ## Verifying Your Connection In Draftt, go to **Integrations > Port**. A **Healthy** status means the sync is running and data is flowing to Port as expected. If the status is **Unhealthy**, verify that your Port credentials are still valid and have not been rotated. # Roles & Permissions Source: https://docs.draftt.io/rbac Draftt uses role-based access control (RBAC) to determine what each user can see and do. Roles are assigned per user and control access to inventory data, governance policies, integrations, and settings. ## Built-in Roles Draftt has three built-in roles covering the access patterns across engineering organizations. | Role | Intended For | | - | - | | **Admin** | Organization administrators and platform leads. Full access to all platform capabilities including governance policies, and user management. | | **Developer** | Engineering team members. Full visibility into inventory and governance data. Can create and manage integrations, policies, notification rules, and custom tags. Cannot modify platform configuration or manage users. | | **Viewer** | Stakeholders, compliance reviewers, and observers. Read-only access to inventory and dashboards. No configuration capabilities. | ## Permission Matrix | Category | Capability | Viewer | Developer | Admin | | :- | :- | :-: | :-: | :-: | | **Users** | View | X | V | V | | **Users** | Invite | X | X | V | | **Users** | Remove | X | X | V | | **Users** | Assign Roles | X | X | V | | **Settings** | View | V | V | V | | **Settings** | Manage | X | X | V | | **Assets** | View | V | V | V | | **Assets** | Edit Metadata | X | V | V | | **Upgrade Plans** | View | V | V | V | | **Upgrade Plans** | Create | X | V | V | | **Upgrade Plans** | Acknowledge / Resolve | X | V | V | | **Policy** | View | V | V | V | | **Policy** | Create | X | V | V | | **Policy** | Edit | X | V | V | | **Policy** | Delete | X | V | V | | **Notifications** | View | V | V | V | | **Notifications** | Create | X | V | V | | **Notifications** | Edit | X | V | V | | **Notifications** | Delete | X | V | V | | **Integrations** | Add | X | V | V | | **Integrations** | Configure | X | V | V | | **Integrations** | Remove | X | V | V | | **Analytics** | View | V | V | V | | **Analytics** | Export | V | V | V | | **Ticketing** | Create | V | V | V | | **API Keys\*** | View Own | V | V | V | | **API Keys\*** | Create Own | V | V | V | | **API Keys\*** | Revoke Own | V | V | V | | **API Keys\*** | Delete Own | V | V | V | *** > **Note:** API key creation is restricted to the user's current role or below. For instance, a Developer can generate Developer-level keys but lacks the authorization to create Admin-level keys. Admins can also manage other users' API keys. ## Assigning Roles ### Manual Assignment Go to **Settings > User Management > Users**. Find the user and select a role from the dropdown. Role changes take effect immediately. Active sessions are not interrupted but the new permissions apply on the user's next action. ### Via SCIM Group Mapping When [SCIM Provisioning](/scim) is configured, roles are assigned automatically based on IdP group membership. See the [SCIM documentation](/scim) for group mapping configuration. ### Via SSO JIT Users provisioned via Just-in-Time SSO receive the default role configured in **Account Settings > Configure SSO > JIT Configuration**. This is typically `Developer` or `Viewer`. Admins can update the role after provisioning. ## User Scope A user's Scope is derived from CMDB records and IDP catalog data, defining exactly which resources they can access. While a Role governs the actions a user can perform within Draftt, the Scope establishes the boundaries of the resources they are permitted to manage. ## Next Steps * Configure [SCIM Provisioning](/scim) to automate role assignment from your IdP * Set [SSO](/sso) defaults for JIT-provisioned users # Redis Cloud Source: https://docs.draftt.io/redis-cloud Connect your Redis Cloud account to Draftt to monitor Redis deployments, track whether they run the latest version, and stay ahead of maintenance tasks. ## Prerequisites * A Redis Cloud account with permissions to create API keys * Access to the Draftt dashboard (**Integrations > Redis Cloud**) ## Setup **1. Create an API User Key** 1. Log in to the [Redis Cloud console](https://app.redislabs.com) 2. Go to **Access Management > API Keys** 3. Click the **+** icon to create a new API User Key 4. Enter the key name: `draftt-api-key` 5. In the **Select User** field, choose an existing user or create a new one > [!TIP] > > We recommend assigning the user the **Viewer** role only. Draftt only needs read access. 6. Click **Create** and copy the generated key **2. Copy your API Account Key** On the same API Keys page, copy your **API Account Key** using the copy button. **3. Enter the keys in Draftt** In the Draftt setup dialog, paste the **API User Key** and **API Account Key**, then click **Create**. ## What Draftt Reads Draftt's API keys have **read-only** access. They cannot create, modify, or delete any resources in your Redis Cloud environment. Draftt monitors your Redis subscriptions, database versions, configuration settings, and maintenance windows. ## Verifying Your Connection After setup, return to **Integrations > Redis Cloud** in Draftt. The connected account shows a status: * **Healthy** -- Draftt can access your Redis Cloud data as expected. * **Unhealthy** -- Check that the API keys have not been revoked and the associated user has the Viewer role. ## Troubleshooting **Authentication fails:** Verify both the API User Key and API Account Key are correct. These are two separate keys -- make sure you haven't swapped them. **No data appearing:** Confirm the user associated with the API key has at least Viewer permissions on the subscriptions you expect to see. # Resource Enrichment Source: https://docs.draftt.io/resource-enrichment Resource enrichment rules enrich your resources automatically. Each rule matches a set of resources with a query and applies the enrichment you define — as your resources are discovered and kept up to date, with no manual work. Use them to keep metadata consistent, such as tagging every resource in a given account with an owner, environment, or cost center. ## Creating a Rule Go to **Settings > Resource Enrichment**, click **New Rule**, and complete the wizard: **1. Basic Information** Name the rule, choose the resource type it enriches, and optionally add a description. **2. Query Rules** Add filters to select which resources the rule applies to (for example, Technology equals ACR Container Image). Only resources that meet all the criteria are enriched. **3. Actions** Choose an enrichment action and configure it. Today you can add custom tags — one or more key/value pairs, with each key used only once per rule. Save the rule with **Enabled** on. It runs immediately against matching resources and stays up to date automatically. ## How Enrichment Works A rule never overwrites a value it doesn't own. If a resource already has a conflicting value — set by another rule or by hand — the rule skips it and reports it instead. > [!NOTE] > > Only the rule that applied an enrichment can update it. Conflicting enrichments from other rules are restricted to avoid conflicts. ## Rule Status After each run, the rule shows a status: * **Completed** — every matched resource was enriched. * **Partially Applied** — some resources were enriched and others failed. * **Failed** — every matched resource failed to be enriched. Open a rule to see its matched count, last run, and a breakdown of successes and failures per enrichment. ## Managing Rules From the **Resource Enrichment** table, use the row menu to **Edit**, **Enable**/**Disable**, or **Delete** a rule. Disabling a rule stops it from running; the enrichment it already applied to your resources is kept. # Saved Views Source: https://docs.draftt.io/saved-views Saved Views let you store any filter combination from the Draftt inventory as a named view for quick access. Views are private by default and can be shared with your organization when needed. ## Creating a View 1. Open the **Inventory** and apply the filters you want to save (technology, account, tags, policy, owner, etc.) 2. Click **Save View** and give it a descriptive name 3. The view appears in your sidebar under **Views** for quick access ## Sharing Views To share a view with your organization, open the view and click **Share**. Once shared, other team members can access it from their sidebar. This is useful for aligning teams around a common scope, such as a view scoped to a specific team's resources or a view tracking a specific compliance policy. ## Managing Views Go to **Inventory > Views** to rename, edit filters, or delete existing views. # SCIM Provisioning Source: https://docs.draftt.io/scim SCIM (System for Cross-domain Identity Management) automates user provisioning and deprovisioning in Draftt. When a new engineer joins and is added to the right group in your IdP, Draftt access is created automatically. When someone leaves and is deactivated in your IdP, their Draftt access is removed with no ticket or manual step required. SCIM is the right answer for any team where manual access requests are a bottleneck, offboarding is inconsistent, or audit requirements demand provable access lifecycle management. ## How It Works Draftt acts as the SCIM service provider. Your identity provider acts as the SCIM client, pushing user and group changes to Draftt via the SCIM 2.0 API. The sync handles three lifecycle events: * **Provision** - User is created in Draftt when added to a mapped group in your IdP. * **Update** - Profile changes (name, email) in your IdP are synced to Draftt. * **Deprovision** - User is deactivated in Draftt when removed from all mapped groups or deactivated in your IdP. Deactivated users lose access immediately but their data (ownership assignments, audit records) is preserved. > [!NOTE] > > SCIM requires SSO to be configured first. Provisioned users authenticate via your IdP, not via a Draftt password. ## Setup To enable SCIM provisioning, go to **Settings > User Management > SCIM Provisioning** in Draftt. Generate a SCIM token and copy your SCIM base URL. Both are needed to configure your identity provider. Contact your Draftt account team if you need guidance for your specific IdP. ## Group-to-Role Mapping By default, SCIM-provisioned users receive the role configured in **Settings > User Management > SCIM Provisioning > Default Role**, typically `Developer` or `Viewer`. For finer control, configure group-to-role mappings. Each IdP group is mapped to a Draftt role. A user in multiple mapped groups receives the highest-privilege matching role. | IdP Group | Draftt Role | | - | - | | `draftt-admins` | Admin | | `draftt-engineering` | Developer | | `draftt-stakeholders` | Viewer | Configure these mappings in **Settings > User Management > SCIM Provisioning > Group Mappings**. The group names must exactly match the group names pushed by your IdP. > [!TIP] > > Keep your SCIM groups aligned with your organizational structure. A single IdP group per Draftt role is easier to maintain than complex nested group hierarchies. ## Deprovisioning Behavior When a user is deactivated in your IdP or removed from all mapped groups, Draftt: 1. Immediately revokes their active sessions. 2. Sets their account status to **Inactive** in Draftt. 3. Preserves all data associated with their account: ownership assignments, audit log entries, policy attributions. Inactive users do not consume a license seat. Their data remains queryable and auditable. > [!WARNING] > > SCIM deprovisioning does not delete API keys issued to the deprovisioned user. Rotate or revoke API keys separately under **Settings > API Keys**. ## Verifying Your SCIM Setup After configuring your IdP: 1. Go to **Settings > User Management > SCIM Provisioning** in Draftt. 2. Confirm the **Last sync** timestamp updates after your IdP runs a sync. 3. Check **Settings > User Management > Users** to verify provisioned users appear with the expected roles. ## Next Steps * Review [Roles & Permissions](/rbac) to define the right role defaults for SCIM-provisioned users * Set up [SSO](/sso) if not already configured. SCIM requires SSO. # Security Overview Source: https://docs.draftt.io/security-hub Draftt connects to your cloud infrastructure, source control, and internal systems. This page describes how Draftt handles that access, what data it stores, and the security controls in place to protect it. ## Compliance Draftt is SOC 2 Type II certified. Our report covers the Security, Availability, and Confidentiality trust service criteria. The audit is conducted annually by an independent third-party auditor. To request a copy of our SOC 2 report or our security questionnaire, contact [security@draftt.io](mailto:security@draftt.io) or ask your account team. ## Data Handling ### What Draftt Stores Draftt collects metadata about your cloud resources: versions, configuration attributes, ownership signals, cost metrics, and policy evaluation results. It does not store the contents of your workloads: no application data, no database records, no secret values. ### Data Residency Customer data is stored in the United States by default. EU data residency is available on the Enterprise plan. Contact your account team to configure regional data storage before your first connector is activated. ## Infrastructure Security Draftt runs on AWS. All production infrastructure is provisioned via Infrastructure as Code, with no manual access to production environments. **Encryption at rest:** All customer data is encrypted at rest using AES-256. Encryption keys are managed via AWS KMS with per-customer key isolation on the Enterprise plan. **Encryption in transit:** All data in transit is encrypted via TLS 1.2 or higher. TLS 1.0 and 1.1 are not supported. **Network isolation:** Production services run in private VPCs with no direct public ingress. All external traffic passes through load balancers with WAF rules active. ## Access Controls **Internal access:** Draftt engineers do not have standing access to production systems. Access to production infrastructure requires a time-limited approval through our PAM system and is logged. All production access is reviewed quarterly. **Least privilege:** Cloud integrations use read-only IAM roles scoped to the specific services Draftt needs to read. Draftt never requests write access to your cloud accounts. **Customer access controls:** Draftt provides [SSO](/sso), [RBAC](/rbac), and [SCIM provisioning](/scim) so your organization controls who can access the platform and what they can do. ## Vulnerability Management Draftt runs continuous dependency scanning on all production services. Critical and high severity vulnerabilities are triaged within 24 hours and remediated within 7 days. Our security team subscribes to relevant CVE feeds and conducts internal security reviews on all significant feature releases. Penetration testing is conducted annually by an independent security firm. Results are available to Enterprise customers under NDA. ## Cloud Integration Security When you connect a cloud account, Draftt uses a dedicated read-only IAM role or service principal with the minimum permissions required for discovery. These are documented in each integration guide. Draftt does not: * Store cloud credentials. OAuth tokens and API keys are encrypted at rest and never logged. * Modify your cloud resources. All integrations are read-only. * Share your data with third parties for any purpose other than delivering the Draftt service. ## Next Steps * Set up [SSO](/sso) and [SCIM](/scim) to enforce access controls for your organization * Review [Enterprise Controls](/enterprise-access) for the full access governance feature set * Contact [security@draftt.io](mailto:security@draftt.io) to request the SOC 2 report or security questionnaire # ServiceNow CMDB Source: https://docs.draftt.io/servicenow-cmdb The ServiceNow CMDB integration connects Draftt's resource inventory to your Configuration Management Database. When your organization maintains authoritative ownership and service data in ServiceNow, Draftt reads that data as a high-confidence ownership signal, eliminating duplicate ownership maintenance and ensuring governance findings reach the right teams. ## Why CMDB Matters for Ownership Most cloud resource ownership signals (tags, CODEOWNERS files, IDP catalog) reflect what teams intend. CMDB reflects what your ITSM system has officially recorded, often the most authoritative source in large, regulated organizations. When CMDB data is connected: * Draftt resolves resource owners from CI (Configuration Item) records, not just cloud tags * Teams managing CIs in ServiceNow don't need to re-declare ownership in Draftt * Governance findings are routed to the correct assignment group as defined in CMDB * Orphaned resource counts drop significantly because CMDB coverage typically exceeds tag coverage in mature environments ## How the Integration Works Draftt queries your ServiceNow CMDB to correlate CIs with resources in its inventory. The correlation uses: * **Resource identifiers** - Cloud resource IDs, ARNs, and instance names matched against CI attributes * **IP addresses and hostnames** - For infrastructure resources not identified by cloud-native IDs * **Service mapping** - If ServiceNow Service Mapping is configured, Draftt can resolve service-level ownership from application CIs Once a correlation is established, the owning assignment group and responsible manager from the CI record become ownership signals in Draftt alongside cloud tags and IDP catalog data. The CMDB integration uses **read-only access only**. Draftt does not write to your CMDB. > [!NOTE] > > CMDB ownership signals have the same priority as IDP catalog signals in Draftt's ownership resolution. Cloud tags take precedence. See [Resource Ownership](/ownership) for the full priority order. ## Supported CI Classes Draftt reads the following CI classes from ServiceNow CMDB: | CI Class | Maps To | | - | - | | `cmdb_ci_vm_instance` | Cloud VMs (EC2, Azure VMs, GCP Compute) | | `cmdb_ci_cloud_database` | Managed databases (RDS, Azure SQL, Cloud SQL) | | `cmdb_ci_kubernetes_cluster` | Kubernetes clusters | | `cmdb_ci_cloud_storage_bucket` | Cloud storage (S3, Azure Blob, GCS) | | `cmdb_ci_cloud_function` | Serverless functions (Lambda, Azure Functions) | | `cmdb_ci_app_server` | Application servers and services | | `cmdb_ci_service` | Business services (for service-level ownership) | Additional CI classes can be added on request. ## Setup The CMDB integration uses the same ServiceNow connection as Draftt's ticketing integration, if already configured. You can add CMDB access to an existing connection or create a dedicated one. ### Step 1: Grant CMDB read roles Your ServiceNow service account needs the following roles in addition to any already granted for ticketing: * `cmdb_read`: Read access to all CMDB tables * `itil`: Access to service and assignment group data If you created a dedicated service account for Draftt during [ticketing setup](/ticketing), add these roles to that account. In ServiceNow, navigate to **User Administration > Users**, open the Draftt service account, go to the **Roles** tab, and add `cmdb_read` and `itil`. ### Step 2: Enable CMDB in Draftt Go to **Integrations > Platform > ServiceNow**. If a ServiceNow connection already exists, click **Configure > CMDB**. If not, complete the [ServiceNow ticketing setup](/ticketing#servicenow) first. Toggle **CMDB Ownership Sync** on. Draftt immediately begins querying your CMDB to correlate CIs with inventory resources. ### Step 3: Map assignment groups to Draftt teams (optional) If your Draftt user base matches your ServiceNow assignment groups, configure group mapping to translate CMDB assignment groups into Draftt team labels. In **Integrations > Platform > ServiceNow > CMDB > Group Mapping**, add entries for each assignment group you want mapped: | ServiceNow Assignment Group | Draftt Team Label | | - | - | | `Platform Engineering` | `platform-engineering` | | `Data Engineering` | `data-engineering` | | `Security Operations` | `security-ops` | Mapped groups appear in inventory filters and ownership views. Unmapped groups are shown with their raw ServiceNow name. ### Step 4: Verify coverage After the initial sync (typically completes within 30 minutes), go to **Inventory** and filter by **Ownership Source: CMDB**. This shows all resources where ownership was resolved from CMDB data. Compare this against the **Orphaned** filter to see how much of your unowned inventory CMDB resolved. ## CI Correlation Logic Draftt attempts to correlate each CI to a resource using a cascade of matching strategies: 1. **Cloud resource ID:** Exact match on the cloud-native identifier (e.g., AWS instance ID, Azure resource ID) 2. **IP address:** Match on the primary IP of the resource 3. **Hostname / FQDN:** Match on DNS name or hostname 4. **Name pattern:** Fuzzy match on resource name and CI name (used as a last resort, lower confidence) Correlations are assigned a confidence level: **High**, **Medium**, or **Low**. Low-confidence correlations are surfaced for manual review in **Settings > Integrations > ServiceNow > CMDB > Unverified Correlations**. ## Data Freshness Draftt syncs with your CMDB on every scan cycle (by default, every 24 hours). CMDB changes (ownership reassignments, CI retirements, new CIs) are reflected in Draftt's inventory at the next sync. Manual sync is available from **Integrations > Platform > ServiceNow > CMDB > Sync Now**. ## Bidirectional Consideration Draftt reads from CMDB but does not write back. If Draftt's inventory discovers a resource with no corresponding CI in your CMDB, it surfaces this as an **Uncatalogued Resource** finding. Uncatalogued resources represent a CMDB hygiene gap: your change management system has a blind spot. These findings appear in the Security Hub and can be routed to your ServiceNow team as change requests via the [ticketing integration](/ticketing). ## Next Steps * Review [Resource Ownership](/ownership) to understand how CMDB signals interact with other ownership sources * Check [Security Hub](/security-hub) to see how orphaned and uncatalogued resources are surfaced * Configure [Ticketing](/ticketing) to route uncatalogued resource findings to your CMDB hygiene team # Single Sign-On (SSO) Source: https://docs.draftt.io/sso Draftt supports SSO via **SAML 2.0** and **OIDC**, letting your teams authenticate through your existing identity provider. Once configured, users log in through your IdP with no separate Draftt credentials to manage, rotate, or recover. SSO centralizes authentication enforcement. MFA policies, session timeouts, conditional access rules, and device trust requirements you've configured in your IdP apply to Draftt automatically. ## Supported Identity Providers Draftt supports any identity provider that implements SAML 2.0 or OIDC. The following providers are tested and documented. > [card] Okta > [card] Microsoft Entra ID > [card] Google Workspace > [card] Microsoft AD FS > [card] PingFederate > [card] PingOne > [card] OneLogin > [card] Keycloak > [card] JumpCloud > [card] Auth0 > [card] CyberArk > [card] Descope > [card] Duo > [card] ClassLink > [card] LastPass > [card] miniOrange > [card] Salesforce ## How It Works When SSO is enabled for your organization: 1. Users who visit `app.draftt.io` and enter their work email are redirected to your IdP. 2. Your IdP authenticates them and returns a signed assertion (SAML) or ID token (OIDC) to Draftt. 3. Draftt validates the assertion, resolves the user, and creates an authenticated session. 4. If **Just-in-Time (JIT) provisioning** is enabled, first-time users are automatically created in Draftt with a default role. > [!NOTE] > > Once SSO is enforced for your organization, password-based login is disabled. All users must authenticate through your IdP. ## Configuration To enable SSO for your organization, go to **Account Settings > Authentication** in Draftt. Click **Configure SSO** and follow the on-screen instructions. Draftt's setup flow guides you through the IdP-specific metadata exchange and lets you test authentication before enforcing it. ## Just-in-Time (JIT) Provisioning When JIT provisioning is enabled, users who successfully authenticate via SSO for the first time are automatically created in Draftt. You configure: * **Default role** - The role assigned to JIT-provisioned users. Typically `Developer` or `Viewer`. * **Domain allowlist** - Only email addresses matching your configured domains are provisioned. Prevents authentication from external addresses that might exist in your IdP. JIT provisioning does not handle deprovisioning. For automatic deprovisioning when users leave your organization, use [SCIM Provisioning](/scim). ## Next Steps * Configure [SCIM Provisioning](/scim) to automate user lifecycle management * Review [Roles & Permissions](/rbac) to confirm the right default role for JIT-provisioned users # Tanium Source: https://docs.draftt.io/tanium Connect Tanium to Draftt to enrich your cloud inventory with endpoint visibility — agent presence, operating system details, and patch state. Draftt queries the Tanium GraphQL Gateway using a read-only API token. ## Prerequisites * A Tanium Cloud deployment with the **Gateway** module enabled (for self-hosted deployments, connectivity to the gateway will need to be planned with our team) * Your Tanium tenant must expose cloud metadata through Tanium Asset/Cloud content or equivalent sensors, including **Cloud Instance ID**. Without this data, Draftt can connect to Tanium but may not be able to match endpoints to AWS, Azure, or GCP resources. See [Tanium Core Content documentation](https://help.tanium.com/bundle/CoreContentDoc/page/KA/CoreContentDoc/Core_Content_Documentation.htm) for details * Admin access to create roles, personas, and API tokens in Tanium * Access to the Draftt dashboard (**Integrations > Tanium**) ## Setup **1. Create a dedicated API role** Draftt needs read access to sensor data through the Gateway API. The quickest path is to clone the built-in role and add the required permissions. 1. Open **Administration > Roles** in your Tanium console 2. Find the **Gateway User** role and click **Clone** to duplicate it 3. In the cloned role, open **Platform Content Permissions** and switch on: * **Sensor > Read** * **Plugin > Execute** 4. Grant access to these Content Sets: * `Base` * `Core Content` * `Reserved` * `Tanium Data Service` 5. Save the new role **2. Create a persona and attach the role** API tokens in Tanium are scoped through personas, which bundle a role, computer-group visibility, and a service account together. 1. Go to **Administration > Personas** and click **New Persona** 2. Pick a descriptive name (e.g. `Draftt Read-Only Persona`) 3. Under **Manage Roles**, attach the role you created in the previous step 4. Under **Computer Groups**, choose the groups whose endpoints you want Draftt to enrich — or toggle **Unrestricted Management Rights** for full visibility 5. Bind the persona to a service account and save **3. Generate an API token in Tanium** Steps to create a token: see [Tanium API Tokens Documentation](https://help.tanium.com/bundle/ug_console_cloud/page/platform_user/console_api_tokens.html). 1. Open **Administration > API Tokens** and click **New API Token** 2. Name the token (for example, `Draftt Read-Only Token`), set an expiry, and select the persona you just created *If you need to specify allowed IP addresses when creating the token, please contact us to get Draftt's outbound IP. [Read more here](https://help.tanium.com/bundle/ug_console_cloud/page/platform_user/console_api_tokens.html).* 3. Save and copy the token value immediately. Tanium only shows it once. > [!WARNING] > > The token value includes a `token-` prefix. Make sure to copy the full value including this prefix. **4. Connect in Draftt** 1. In Draftt, go to **Integrations > Tanium** and click **Add Integration** 2. Enter a descriptive **Integration Name** 3. Enter your **API Gateway URL** — for Tanium Cloud this is typically: ``` https://-api.cloud.tanium.com ``` You can provide the bare host or the full GraphQL path — Draftt appends the path automatically if omitted. 4. Paste the **API Token** (including the `token-` prefix) 5. Click **Create Integration** ## What Draftt Reads Draftt's integration is **read-only**. It queries the Tanium GraphQL Gateway to retrieve: * **Endpoint identity** — hostname, IP addresses, computer ID * **Operating system** — platform, version, and generation * **Cloud instance metadata** — Cloud Instance ID sensor for AWS, Azure, and GCP workloads * **Agent status** — Tanium client presence and last check-in time This data enriches your existing cloud inventory with endpoint-level context, enabling more accurate governance and lifecycle tracking. ## Verifying Your Connection After setup, return to **Integrations > Tanium** in Draftt. The integration reports one of five connection states: * **processing** — Initial state. Draftt is reaching the Gateway and probing the Cloud Instance ID sensor. * **ready** — Authentication succeeded and the Cloud Instance ID sensor is returning data. Draftt is enriching your inventory. * **sensor\_missing** — Authentication succeeded but the Cloud Instance ID sensor either isn't deployed on your endpoints, isn't returning data, or is returning empty values. * **auth\_failed** — The Gateway rejected the API token. The token may be expired, missing required permissions (`Sensor: Read` + `Plugin: Execute`), or out of scope for the configured Computer Groups. * **transport\_failed** — Draftt could not reach the Gateway. Check the API URL, network connectivity, and that the Gateway service is reachable. ## Troubleshooting **Status: `auth_failed`** Verify the API token includes the `token-` prefix, has not expired, and that the persona has the Gateway User role with `Sensor: Read` and `Plugin: Execute` permissions. If permissions look right, the role's persona may also be missing required Content Sets or Computer Group visibility — confirm the role includes access to `Base`, `Core Content`, `Reserved`, and `Tanium Data Service`. **Status: `transport_failed`** Check the API URL. For Tanium Cloud the format is `https://-api.cloud.tanium.com`. For self-hosted deployments, verify the gateway hostname and that connectivity has been configured so Draftt can reach it. **Status: `sensor_missing`** Authentication is fine but the Cloud Instance ID sensor isn't returning data. Ensure the sensor is available on your endpoints and that the Tanium Core Python package is installed. Without these, Draftt cannot match endpoints to cloud resources. **Status stuck on `processing`** If the status doesn't transition within a few hours, please contact us. # Tech Debt Inventory Source: https://docs.draftt.io/tech-debt-inventory The Tech Debt Inventory is Draftt's core data model: a continuously updated, searchable catalog of all resources and findings across your infrastructure, applications, configurations, and compliance posture. It is the single source of truth for what Draftt has discovered. ## What Gets Inventoried Draftt automatically catalogs resources and findings across five categories of technical debt. ### Lifecycle Debt Outdated software, runtimes, and libraries that are no longer supported by their vendors. **Examples:** * Database engines beyond extended support (PostgreSQL 10, MySQL 5.7, Redis 5) * Container runtimes reaching EOL (Kubernetes 1.20, containerd 1.4) * Operating systems without security patches (CentOS 7, Ubuntu 16.04 LTS) * Programming language runtimes past LTS date (Python 3.7, Node.js 14) * Libraries or frameworks approaching EOL (proactive flagging) **Data enrichment:** Vendor support timeline, EOL date, security patch status, breaking changes in target version. ### Configuration Debt Infrastructure and code that deviates from defined standards, baselines, or intended state. **Examples:** * Security violations (unencrypted storage, open security groups, disabled logging) * Tag inconsistency (resources missing required tags, team assignment, or cost center) * Certificate expiration approaching * Configuration that violates organizational governance policies **Data enrichment:** Which policy is being violated, specific configuration that is non-compliant, recommended correction. ### Ownership Debt Infrastructure and code without clear responsibility, making it difficult to maintain, scale, and modernize. **Examples:** * Orphaned cloud resources (no team owns or is responsible for) * Services without code owner (no CODEOWNERS entry) * Repositories without designated maintainers * Legacy systems where original team has moved on **Data enrichment:** Possible owners inferred from cloud tags, IDP catalog data, Git history, and deployment metadata. ### Cost Debt Infrastructure and services consuming resources without proportionate business value. **Examples:** * Idle compute instances with zero utilization for extended periods * Unattached storage volumes * Over-provisioned resources (instance type larger than usage patterns require) * Unused managed services (databases with no connections, unused load balancers) **Data enrichment:** Monthly cost of the resource, cost reduction opportunity, utilization metrics. ### Compliance Debt Infrastructure and processes that don't meet regulatory or organizational requirements. **Examples:** * Encryption gaps (required encryption not enabled on sensitive data) * Access control violations (excessive permissions) * Audit trail gaps (logging disabled, logs not retained per policy) * Compliance policy exceptions without documented approval **Data enrichment:** Which compliance framework is affected, remediation requirement. ## How Items Are Categorized Each finding in the Tech Debt Inventory is assigned multiple attributes that enable filtering, prioritization, and analysis. ### Category Primary classification of technical debt type: Lifecycle, Configuration, Ownership, Cost, or Compliance. Some findings span multiple categories. ### Policy Status Resources are evaluated against active policies and assigned a status. Lifecycle policies use statuses that fit what they track, such as Supported, Impending, and Outdated for infrastructure. See [Lifecycle Management](/lifecycle-management). Governance policies use custom statuses you define (e.g., Compliant, Non-Compliant, Unknown). See [Governance Policies](/governance-policies) for how status assignment works. ### Ownership Which team or individual is responsible for the resource. Draftt infers ownership from cloud resource tags, IDP catalog data, CODEOWNERS files, and repository metadata. Resources without identifiable ownership are flagged as orphaned. See [Resource Ownership](/ownership) for ownership assignment methods. ## Where Policies Appear The inventory is surfaced across the platform: **Policies Page** - View all active policies, their status breakdowns, and last evaluation timestamps. Re-evaluate any policy on demand. **Dashboard** - Select any policy from the dropdown to view its status breakdown over time. Track governance trends. **Inventory View** - Filter by policy in the sidebar. View all resources under a policy with their assigned status. Governance policies show only relevant columns. ## Filtering and Searching The Tech Debt Inventory supports filtering using DrafttQL. You can filter by resource type, policy, status, ownership, tags, and resource-specific fields. Saved views let you create and reuse common filter combinations for quick access during team meetings and governance reviews. ## Best Practices for Inventory Management **Keep ownership current.** Ensure cloud resource tags and IDP catalog entries reflect actual team ownership. Stale ownership means findings sit unassigned. **Review findings regularly.** Use the inventory in your governance cadence: weekly check-ins on policy violations, monthly reviews of trends, quarterly reviews of policy effectiveness. **Use filters strategically.** Before meetings, pre-generate filtered views (e.g., "all non-compliant infrastructure for Team X"). Filtered views drive faster decision-making and focus discussion. **Connect integrations.** Push findings to your ticketing and collaboration tools so remediation happens in the systems your teams already use. # Ticketing Source: https://docs.draftt.io/ticketing Connect your ticketing platforms to Draftt to create issues for governance findings and track remediation through your existing workflows. ## Supported Platforms > [card] Jira > > Atlassian OAuth integration for creating and tracking issues. > [card] ServiceNow > > OAuth 2.0 Client Credentials for incidents and change requests. > [card] Azure DevOps > > Entra ID App Registration for work item creation. ## Setup Instructions > [accordion] Jira > > Jira connects via **Atlassian OAuth**. No API tokens or manual credential management required. > > **1. Start the connection** > > In Draftt, go to **Integrations > Ticketing > Jira > Add**. > > **2. Authorize with Atlassian** > > You will be redirected to Atlassian to authorize Draftt. The app requests the following scopes: > > * `read:jira-work` -- Read access to Jira projects, issues, and workflows > * `write:jira-work` -- Create and update issues on your behalf > * `read:jira-user` -- Read user information for assignment > > **3. Select your site** > > If you have multiple Atlassian sites, select the one you want to connect. > > **4. Confirm in Draftt** > > After authorization, you are redirected back to Draftt. The Jira integration appears in your connected ticketing platforms. > [accordion] ServiceNow > > ServiceNow connects via **OAuth 2.0 Client Credentials** -- a secure machine-to-machine flow with no user interaction required at runtime. > > **1. Find your instance URL** > > Your instance URL is the base URL you use when logging into ServiceNow. Copy it from your browser's address bar. It looks like: > > ``` > https://your-company.service-now.com > ``` > > Enter this in the Draftt setup dialog. > > **2. Create a dedicated service account** > > Create a dedicated user for Draftt so the integration is not tied to a personal account. > > 1. In ServiceNow, navigate to **User Administration > Users** > 2. Click **New** > 3. In the User ID field, enter a name (e.g. `draftt-service-account`) > 4. Set the **Identity type** to **Machine** > 5. Check the **"Internal Integration User"** checkbox > 6. Click **Submit** > 7. Open the user you just created, scroll to the **Roles** tab at the bottom > 8. Click **Edit** and add the following roles: > * `snc_read_only` > * `cmdb_read` > * `snc_platform_rest_api_access` > * `sn_cmdb_user` > 9. Click **Save** > > **3. Enable the Client Credentials grant type** > > Make sure the OAuth Client Credentials grant type is enabled on your instance. If the property does not exist, you will need to create it. > > 1. Navigate to **System Properties** by opening: > ``` > https://.service-now.com/sys_properties_list.do > ``` > 2. Search for the property `glide.oauth.inbound.client.credential.grant_type.enabled` > 3. If it exists, make sure the value is set to `true` > 4. If it does not exist, create a new property with: > * **Name:** `glide.oauth.inbound.client.credential.grant_type.enabled` > * **Type:** `true | false` > * **Value:** `true` > > **4. Create an OAuth inbound integration** > > 1. In ServiceNow, navigate to **Machine Identity Console** > 2. Open the **Inbound Integrations** tab > 3. Click **New** > 4. When prompted to select a connection type, choose **OAuth - Client credentials grant** > 5. Fill in a name (e.g. `draftt-oauth-app`) > 6. Under the user field, select the service account you created in Step 2 (e.g. `draftt-service-account`) > 7. In the Auth Scope section, click **Create auth scope** > 8. In the "Auth scope name" field, enter a name (e.g. `draftt-read-scope`) > 9. Under "Limit authorization to the following APIs", add **Table API** > 10. Enable the **"Allow access only to APIs in selected scope"** toggle -- this restricts the integration to only the APIs listed above > 11. Click **Submit**, then reopen the record and copy the **Client ID** and **Client Secret** > > **5. Enter your OAuth credentials** > > Back in the Draftt setup dialog, paste the **Client ID** and **Client Secret** from the OAuth application you registered in Step 4. Click **Create Integration**. > [accordion] Azure DevOps > > Azure DevOps connects via an **Entra ID (Azure AD) App Registration**, the same mechanism used for Azure DevOps source control. > > **1. Register an App in Entra ID** > > In the Azure portal, go to **Entra ID > App registrations > New registration**. Create a new app (e.g. `Draftt-DevOps`) and copy the **Client ID** and **Tenant ID**. > > **2. Generate a client secret** > > In the App Registration, go to **Certificates & secrets > New client secret**. Copy the secret value. > > **3. Add a user in Azure DevOps** > > In Azure DevOps, go to **Organization Settings > Users > Add users**. Add the App Registration's service principal with **Basic** access level and **Project Contributors** group membership. > > **4. Enter details in Draftt** > > In Draftt, go to **Integrations > Ticketing > Azure DevOps > Add**. Enter the Client ID, Tenant ID, Client Secret, and your Azure DevOps **Organization name**. Click **Create**. ## How It Works When Draftt identifies a governance finding that requires action, it can automatically create a ticket in your connected platform. Each ticket includes: * The governance finding and its business impact * Affected resources and their owners * Recommended remediation steps * A link back to the finding in Draftt for full context As the issue progresses through your team's workflow, Draftt tracks the status so you can monitor remediation progress across your entire tech stack. ## Verifying Your Connection After setup, return to **Integrations > Ticketing** in Draftt. Each connected platform shows a status: * **Healthy** - Draftt can create and read issues as expected. * **Unhealthy** - Check that the OAuth authorization has not been revoked and that the connected user has the required permissions. # Ticketing Source: https://docs.draftt.io/ticketing-workflow Draftt integrates with your existing ticketing system to turn governance findings into actionable tickets. Each ticket includes the resource context, ownership, and remediation guidance so engineers have what they need without leaving their existing workflow. For setup instructions, see [Ticketing](/ticketing). ## Creating Tickets Tickets can be created manually from any finding in Draftt, or configured to be created automatically based on severity thresholds and routing rules. Manual creation is the default. Each ticket includes: * **What is affected:** Resource name, type, cloud account, and region * **What the finding is:** Policy name and the specific condition that triggered it * **Who owns it:** Resolved owner and team * **How to fix it:** Remediation guidance specific to the resource type * **Link to Draftt:** Deep link back to the full finding for complete context ## Ticket Routing Configure routing rules in **Settings > Integrations > \[Your Ticketing Platform] > Routing** to control where tickets are created and how they are assigned: * **Default project:** Where tickets go when no specific routing rule matches * **Team routing:** Map Draftt team labels to ticketing projects or boards * **Severity mapping:** Map Draftt criticality levels to your platform's priority scheme * **Issue type:** Which issue type Draftt creates (Bug, Task, Incident, etc.) ## Ticket Status Draftt syncs ticket status directly from your ticketing platform. Status labels reflect whatever your platform returns. Draftt does not impose its own lifecycle on top of your workflow. ## Deduplication Draftt does not create a new ticket if an open ticket already exists for the same finding on the same resource. ## Next Steps * Set up ticketing connectors in [Ticketing](/ticketing) * Configure alerts in [Notifications](/notifications) to complement ticket routing