Skip to main content
Cloud Capture is still in active development. Its capabilities and configuration format may change, and onboarding is done together with Kosli’s Customer Success team.

Cloud Capture permissions

The Cloud Capture managed service uses the public cloud APIs to extract information about your cloud environments. In order to do this, you need to provide Kosli with an identity in your cloud account that Kosli can use to call these APIs. The identity is created and managed by you. It must be protected by a trust condition that allows only Kosli to use it, and it must hold the read-only permissions Kosli needs to find and snapshot your resources. On Azure the identity is a Kosli application that you consent to and grant access; on AWS and Google Cloud it is a role or service account you create.
Kosli publishes a CloudFormation template, for use in AWS, showing the permissions needed. The template is publicly accessible and can be used directly within an aws cloudformation create-stack call. The current version, v0.2.0, is published at https://kosli-cloud-capture-templates.s3.eu-central-1.amazonaws.com/aws/v0.2.0/kosli-cloud-capture-access-role.yaml, and the permissions shown on this page are taken from it. A published version is never changed; a change to the permissions is a new version, and reaches a role you have deployed only when you update your stack.Version v0.2.0 adds one optional parameter to the earlier template, S3 buckets (S3BucketNames), for capturing S3 buckets. Left empty, the default, the role is the same as the one the earlier template created: it can read no object and no object key in any bucket. A role created from the earlier template keeps working for ECS and Lambda.If you wish to build an IAM role for Cloud Capture without using our published CloudFormation template, the permissions needed are those shown below. The role must contain an Assume Role policy that allows the Kosli account to access the resources, and must include an externalId. Both of these values are supplied by Kosli and cannot be derived; you cannot construct the trust policy without them. Whichever way you create the role, then register the account with the role’s ARN, as described in Getting started.

Assume role

The IAM role defined within the CloudFormation template includes an “assume role” policy granting permission from Kosli. This appears as:

All permissions needed

The IAM role defined within the Cloudformation template includes a number of IAM policy statements, granting read-only access to some AWS APIs. The statements are:

What capturing S3 buckets grants

The S3 statements above exist only when you name buckets in the S3 buckets parameter. Three things are worth knowing for a security review:
  • The role can read the content of every object in the buckets you name. Cloud Capture reads the SHA256 checksum S3 stores for each object with a HeadObject request, which returns metadata and no content. AWS has no permission for reading a checksum alone: HeadObject is authorized by s3:GetObject, the permission that also authorizes a download. Cloud Capture downloads one object only, a .kosli_ignore file at the root of a bucket if there is one. Reads of object versions, ACLs, tags and attributes stay denied in every bucket, and s3:GetObject stays denied in every bucket you did not name.
  • The role can read the tags of every taggable resource in the account. Cloud Capture finds the buckets that carry one of your S3 opt-in tags by asking the Resource Groups Tagging API (tag:GetResources), which avoids reading the tags of every bucket one by one on every scan. AWS cannot scope that permission to S3 or to particular resources. Cloud Capture asks only for resources of type s3:bucket that carry an opt-in tag.
  • No KMS permission is granted. Objects encrypted with a KMS key (SSE-KMS) cannot be read, and their bucket’s snapshot fails.
A name in the parameter may use * and ? as wildcards, as an IAM resource may. A bare * names every bucket in the account. Naming a bucket is a permission, not a selection: Cloud Capture snapshots a bucket only when it also carries one of your S3 opt-in tags.

How Kosli isolates tenants

Cloud Capture runs as a shared, autoscaled service, but each job runs under a role that is scoped to one tenant.
  • A Cloud Capture worker picks up a job for your organization and assumes the role in your account using your externalId. A worker running for a different tenant is unable to read the externalId for your cloud account.
  • When the job finishes, the temporary credentials for your account are discarded. A worker holding credentials for your cloud account has no path to anyone else’s account.
  • The ExternalId lives in Kosli’s Parameter Store and is readable only by the Kosli-side role for your organization. The shared task role cannot read any tenant’s ExternalId. Separation is enforced by IAM, not by application code.
The trust policy on the role in your account limits access to the AWS account in which the Cloud Capture is running. The ExternalId acts as a shared secret between Kosli and you, so that only Cloud Capture is permitted to assume the role.
Cloud Capture itself does not hold any tenant data. Snapshots taken by Cloud Capture are immediately sent to Kosli through the same ingest path as your existing pipelines.

Changing security permissions

If the role, the service account and workload identity pool, or the role assignments and tag that Cloud Capture uses are removed or edited within your cloud accounts, scans of that account fail. Kosli is not notified of the change and does not remove the account for you: the account stays in your Registered accounts table, with its scans shown as failed, until you restore the permissions or remove the account.
Last modified on November 23, 2026