Skip to content

Commit cf903bb

Browse files
authored
Merge pull request #7 from carapace-sh/performance
performance: ondemand yaml parsing
2 parents 456bec7 + ef37b92 commit cf903bb

35,234 files changed

Lines changed: 143397 additions & 440151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cmd/carapace-aws/carapace-aws
2+
cmd/carapace-aws/cmd/botocore/botocore_generated.go
23
dist
34
docs/book
45
profile.cov
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: apply-archive-rule
2+
description: Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
3+
flags:
4+
--analyzer-arn=!: The Amazon resource name (ARN) of the analyzer.
5+
--client-token=: A client token.
6+
--rule-name=!: The name of the rule to apply.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: cancel-policy-generation
2+
description: Cancels the requested policy generation.
3+
flags:
4+
--job-id=!: The `JobId` that is returned by the `StartPolicyGeneration` operation.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: check-access-not-granted
2+
description: Checks whether the specified access isn't allowed by a policy.
3+
flags:
4+
--access=!: An access object containing the permissions that shouldn't be granted by the specified policy.
5+
--policy-document=!: The JSON policy document to use as the content for the policy.
6+
--policy-type=!: The type of policy.
7+
completion:
8+
flag:
9+
policy-type:
10+
- IDENTITY_POLICY
11+
- RESOURCE_POLICY
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: check-no-new-access
2+
description: Checks whether new access is allowed for an updated policy when compared to the existing policy.
3+
flags:
4+
--existing-policy-document=!: The JSON policy document to use as the content for the existing policy.
5+
--new-policy-document=!: The JSON policy document to use as the content for the updated policy.
6+
--policy-type=!: The type of policy to compare.
7+
completion:
8+
flag:
9+
policy-type:
10+
- IDENTITY_POLICY
11+
- RESOURCE_POLICY
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: check-no-public-access
2+
description: Checks whether a resource policy can grant public access to the specified resource type.
3+
flags:
4+
--policy-document=!: The JSON policy document to evaluate for public access.
5+
--resource-type=!: The type of resource to evaluate for public access.
6+
completion:
7+
flag:
8+
resource-type:
9+
- AWS::DynamoDB::Table
10+
- AWS::DynamoDB::Stream
11+
- AWS::EFS::FileSystem
12+
- AWS::OpenSearchService::Domain
13+
- AWS::Kinesis::Stream
14+
- AWS::Kinesis::StreamConsumer
15+
- AWS::KMS::Key
16+
- AWS::Lambda::Function
17+
- AWS::S3::Bucket
18+
- AWS::S3::AccessPoint
19+
- AWS::S3Express::DirectoryBucket
20+
- AWS::S3::Glacier
21+
- AWS::S3Outposts::Bucket
22+
- AWS::S3Outposts::AccessPoint
23+
- AWS::SecretsManager::Secret
24+
- AWS::SNS::Topic
25+
- AWS::SQS::Queue
26+
- AWS::IAM::AssumeRolePolicyDocument
27+
- AWS::S3Tables::TableBucket
28+
- AWS::ApiGateway::RestApi
29+
- AWS::CodeArtifact::Domain
30+
- AWS::Backup::BackupVault
31+
- AWS::CloudTrail::Dashboard
32+
- AWS::CloudTrail::EventDataStore
33+
- AWS::S3Tables::Table
34+
- AWS::S3Express::AccessPoint
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: create-access-preview
2+
description: Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
3+
flags:
4+
--analyzer-arn=!: The [ARN of the account analyzer](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources) used to generate the access preview.
5+
--client-token=: A client token.
6+
--configurations=!: Access control configuration for your resource that is used to generate the access preview.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: create-analyzer
2+
description: Creates an analyzer for your account.
3+
flags:
4+
--analyzer-name=!: The name of the analyzer to create.
5+
--archive-rules=: Specifies the archive rules to add for the analyzer.
6+
--client-token=: A client token.
7+
--configuration=: Specifies the configuration of the analyzer.
8+
--tags=: An array of key-value pairs to apply to the analyzer.
9+
--type=!: The type of analyzer to create.
10+
completion:
11+
flag:
12+
type:
13+
- ACCOUNT
14+
- ORGANIZATION
15+
- ACCOUNT_UNUSED_ACCESS
16+
- ORGANIZATION_UNUSED_ACCESS
17+
- ACCOUNT_INTERNAL_ACCESS
18+
- ORGANIZATION_INTERNAL_ACCESS
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: create-archive-rule
2+
description: Creates an archive rule for the specified analyzer.
3+
flags:
4+
--analyzer-name=!: The name of the created analyzer.
5+
--client-token=: A client token.
6+
--filter=!: The criteria for the rule.
7+
--rule-name=!: The name of the rule to create.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: delete-analyzer
2+
description: Deletes the specified analyzer.
3+
flags:
4+
--analyzer-name=!: The name of the analyzer to delete.
5+
--client-token=: A client token.

0 commit comments

Comments
 (0)