├── .env.template ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .goreleaser.yml ├── .vscode └── settings.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENCE ├── Makefile ├── README.md ├── SECURITY.md ├── api └── io │ ├── decode_body.go │ ├── errors.go │ └── response.go ├── cmd ├── all-in-one │ └── main.go ├── cli │ ├── commands │ │ ├── apply.go │ │ ├── local.go │ │ ├── root.go │ │ └── scan.go │ └── main.go ├── collector │ ├── app │ │ ├── collector.go │ │ ├── routes.go │ │ ├── sqs_server.go │ │ └── sqs_server_test.go │ └── main.go └── console │ ├── app │ ├── api │ │ ├── actions.go │ │ ├── findings.go │ │ ├── handlers.go │ │ └── tokens.go │ ├── console.go │ └── routes.go │ └── main.go ├── deploy ├── bootstrap.yml ├── root.yml └── web-server.yml ├── docker-compose.yml ├── docker └── hashicorp.asc ├── go.mod ├── go.sum ├── internal ├── middleware │ ├── collector_token_auth.go │ ├── logger.go │ └── tracing.go └── tracing │ └── tracing.go ├── pkg ├── applier │ ├── applier.go │ ├── cdk │ │ └── cdk.go │ ├── diff.go │ └── terraform │ │ ├── terraform.go │ │ ├── terraform_test.go │ │ └── test │ │ └── example_1 │ │ ├── main.tf │ │ ├── modules │ │ ├── ec2 │ │ │ └── main.tf │ │ └── s3 │ │ │ └── main.tf │ │ ├── snapshots │ │ ├── snapshot_1 │ │ │ └── main.tf │ │ ├── snapshot_2 │ │ │ └── main.tf │ │ └── snapshot_3 │ │ │ ├── main.tf │ │ │ └── modules │ │ │ ├── ec2 │ │ │ ├── main.tf │ │ │ └── variables.tf │ │ │ └── s3 │ │ │ ├── main.tf │ │ │ └── outputs.tf │ │ └── terraform.tfstate ├── audit │ ├── auditor.go │ ├── cfn_types.go │ ├── cloudformation.go │ ├── cloudformation_test.go │ ├── fixture.go │ ├── links.go │ ├── role.go │ └── role_test.go ├── cloudtrail │ ├── aggregator.go │ ├── aggregator_test.go │ ├── cloudtrail.go │ ├── event_from_cloudtrail.go │ └── event_from_cloudtrail_test.go ├── config │ └── env_file_parser.go ├── crypto │ └── random_token.go ├── events │ └── detective.go ├── healthcheck │ ├── handler.go │ └── handler_test.go ├── policies │ ├── cdk_resource.go │ ├── policy.go │ └── policy_test.go ├── recommendations │ ├── action.go │ ├── arn.go │ ├── arn_test.go │ ├── finding.go │ ├── json_recommendations.go │ ├── json_recommendations_test.go │ ├── recommendations.go │ ├── types.go │ └── types_test.go ├── service │ ├── admin.go │ └── service.go ├── storage │ ├── action.go │ ├── action_bolt.go │ ├── action_inmemory.go │ ├── action_postgres.go │ ├── bolt.go │ ├── event.go │ ├── event_noop.go │ ├── event_postgres.go │ ├── finding.go │ ├── finding_bolt.go │ ├── finding_inmemory.go │ ├── finding_postgres.go │ ├── migrations │ │ ├── 20210927162301_add_tokens_table.down.sql │ │ ├── 20210927162301_add_tokens_table.up.sql │ │ ├── 20211008135034_add_findings_actions_tables.down.sql │ │ ├── 20211008135034_add_findings_actions_tables.up.sql │ │ └── migrations.go │ ├── postgres.go │ ├── postgres_integration_tests │ │ ├── actions_test.go │ │ ├── events_test.go │ │ ├── findings_test.go │ │ ├── main_test.go │ │ ├── postgres_test.go │ │ └── setup.go │ └── storage.go └── tokens │ ├── README.md │ ├── dynamodb_token.go │ ├── factory.go │ ├── inmemory_token.go │ ├── postgres_token.go │ └── token.go ├── tracing ├── docker-compose.yml └── otel-collector-config.yml └── web ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── README.md ├── build.go ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.css ├── App.tsx ├── api-types.tsx ├── api.tsx ├── components │ ├── CenteredSpinner.tsx │ ├── KeyValueBadge.tsx │ ├── LastUpdatedText.tsx │ ├── PolicyBox.tsx │ └── TokenBox.tsx ├── context │ └── createCtx.tsx ├── icons.tsx ├── index.css ├── index.tsx ├── layouts │ ├── DropdownNavButton.tsx │ ├── Layout.tsx │ └── SimpleNavbar.tsx ├── logo.svg ├── pages │ ├── AlertRedirectToPolicy.tsx │ ├── FindingDetails.tsx │ ├── Findings.test.tsx │ ├── Findings.tsx │ └── Tokens.tsx ├── react-app-env.d.ts ├── reportWebVitals.ts ├── setupTests.ts ├── test-utils.tsx ├── theme │ ├── colors.ts │ └── index.ts └── utils │ ├── getAlertTitle.tsx │ ├── getEventCountString.tsx │ ├── mockData.tsx │ └── renderStringOrObject.tsx ├── tsconfig.json └── yarn.lock /.env.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/.env.template -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/.gitignore -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/.goreleaser.yml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/LICENCE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/SECURITY.md -------------------------------------------------------------------------------- /api/io/decode_body.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/api/io/decode_body.go -------------------------------------------------------------------------------- /api/io/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/api/io/errors.go -------------------------------------------------------------------------------- /api/io/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/api/io/response.go -------------------------------------------------------------------------------- /cmd/all-in-one/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/all-in-one/main.go -------------------------------------------------------------------------------- /cmd/cli/commands/apply.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/cli/commands/apply.go -------------------------------------------------------------------------------- /cmd/cli/commands/local.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/cli/commands/local.go -------------------------------------------------------------------------------- /cmd/cli/commands/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/cli/commands/root.go -------------------------------------------------------------------------------- /cmd/cli/commands/scan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/cli/commands/scan.go -------------------------------------------------------------------------------- /cmd/cli/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/cli/main.go -------------------------------------------------------------------------------- /cmd/collector/app/collector.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/collector/app/collector.go -------------------------------------------------------------------------------- /cmd/collector/app/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/collector/app/routes.go -------------------------------------------------------------------------------- /cmd/collector/app/sqs_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/collector/app/sqs_server.go -------------------------------------------------------------------------------- /cmd/collector/app/sqs_server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/collector/app/sqs_server_test.go -------------------------------------------------------------------------------- /cmd/collector/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/collector/main.go -------------------------------------------------------------------------------- /cmd/console/app/api/actions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/app/api/actions.go -------------------------------------------------------------------------------- /cmd/console/app/api/findings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/app/api/findings.go -------------------------------------------------------------------------------- /cmd/console/app/api/handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/app/api/handlers.go -------------------------------------------------------------------------------- /cmd/console/app/api/tokens.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/app/api/tokens.go -------------------------------------------------------------------------------- /cmd/console/app/console.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/app/console.go -------------------------------------------------------------------------------- /cmd/console/app/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/app/routes.go -------------------------------------------------------------------------------- /cmd/console/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/cmd/console/main.go -------------------------------------------------------------------------------- /deploy/bootstrap.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/deploy/bootstrap.yml -------------------------------------------------------------------------------- /deploy/root.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/deploy/root.yml -------------------------------------------------------------------------------- /deploy/web-server.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/deploy/web-server.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docker/hashicorp.asc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/docker/hashicorp.asc -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/go.sum -------------------------------------------------------------------------------- /internal/middleware/collector_token_auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/internal/middleware/collector_token_auth.go -------------------------------------------------------------------------------- /internal/middleware/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/internal/middleware/logger.go -------------------------------------------------------------------------------- /internal/middleware/tracing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/internal/middleware/tracing.go -------------------------------------------------------------------------------- /internal/tracing/tracing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/internal/tracing/tracing.go -------------------------------------------------------------------------------- /pkg/applier/applier.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/applier.go -------------------------------------------------------------------------------- /pkg/applier/cdk/cdk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/cdk/cdk.go -------------------------------------------------------------------------------- /pkg/applier/diff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/diff.go -------------------------------------------------------------------------------- /pkg/applier/terraform/terraform.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/terraform.go -------------------------------------------------------------------------------- /pkg/applier/terraform/terraform_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/terraform_test.go -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/modules/ec2/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/modules/ec2/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/modules/s3/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/modules/s3/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_1/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_1/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_2/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_2/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_3/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_3/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/ec2/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/ec2/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/ec2/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/ec2/variables.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/s3/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/s3/main.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/s3/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/snapshots/snapshot_3/modules/s3/outputs.tf -------------------------------------------------------------------------------- /pkg/applier/terraform/test/example_1/terraform.tfstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/applier/terraform/test/example_1/terraform.tfstate -------------------------------------------------------------------------------- /pkg/audit/auditor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/auditor.go -------------------------------------------------------------------------------- /pkg/audit/cfn_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/cfn_types.go -------------------------------------------------------------------------------- /pkg/audit/cloudformation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/cloudformation.go -------------------------------------------------------------------------------- /pkg/audit/cloudformation_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/cloudformation_test.go -------------------------------------------------------------------------------- /pkg/audit/fixture.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/fixture.go -------------------------------------------------------------------------------- /pkg/audit/links.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/links.go -------------------------------------------------------------------------------- /pkg/audit/role.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/role.go -------------------------------------------------------------------------------- /pkg/audit/role_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/audit/role_test.go -------------------------------------------------------------------------------- /pkg/cloudtrail/aggregator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/cloudtrail/aggregator.go -------------------------------------------------------------------------------- /pkg/cloudtrail/aggregator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/cloudtrail/aggregator_test.go -------------------------------------------------------------------------------- /pkg/cloudtrail/cloudtrail.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/cloudtrail/cloudtrail.go -------------------------------------------------------------------------------- /pkg/cloudtrail/event_from_cloudtrail.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/cloudtrail/event_from_cloudtrail.go -------------------------------------------------------------------------------- /pkg/cloudtrail/event_from_cloudtrail_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/cloudtrail/event_from_cloudtrail_test.go -------------------------------------------------------------------------------- /pkg/config/env_file_parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/config/env_file_parser.go -------------------------------------------------------------------------------- /pkg/crypto/random_token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/crypto/random_token.go -------------------------------------------------------------------------------- /pkg/events/detective.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/events/detective.go -------------------------------------------------------------------------------- /pkg/healthcheck/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/healthcheck/handler.go -------------------------------------------------------------------------------- /pkg/healthcheck/handler_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/healthcheck/handler_test.go -------------------------------------------------------------------------------- /pkg/policies/cdk_resource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/policies/cdk_resource.go -------------------------------------------------------------------------------- /pkg/policies/policy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/policies/policy.go -------------------------------------------------------------------------------- /pkg/policies/policy_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/policies/policy_test.go -------------------------------------------------------------------------------- /pkg/recommendations/action.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/action.go -------------------------------------------------------------------------------- /pkg/recommendations/arn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/arn.go -------------------------------------------------------------------------------- /pkg/recommendations/arn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/arn_test.go -------------------------------------------------------------------------------- /pkg/recommendations/finding.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/finding.go -------------------------------------------------------------------------------- /pkg/recommendations/json_recommendations.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/json_recommendations.go -------------------------------------------------------------------------------- /pkg/recommendations/json_recommendations_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/json_recommendations_test.go -------------------------------------------------------------------------------- /pkg/recommendations/recommendations.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/recommendations.go -------------------------------------------------------------------------------- /pkg/recommendations/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/types.go -------------------------------------------------------------------------------- /pkg/recommendations/types_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/recommendations/types_test.go -------------------------------------------------------------------------------- /pkg/service/admin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/service/admin.go -------------------------------------------------------------------------------- /pkg/service/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/service/service.go -------------------------------------------------------------------------------- /pkg/storage/action.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/action.go -------------------------------------------------------------------------------- /pkg/storage/action_bolt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/action_bolt.go -------------------------------------------------------------------------------- /pkg/storage/action_inmemory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/action_inmemory.go -------------------------------------------------------------------------------- /pkg/storage/action_postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/action_postgres.go -------------------------------------------------------------------------------- /pkg/storage/bolt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/bolt.go -------------------------------------------------------------------------------- /pkg/storage/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/event.go -------------------------------------------------------------------------------- /pkg/storage/event_noop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/event_noop.go -------------------------------------------------------------------------------- /pkg/storage/event_postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/event_postgres.go -------------------------------------------------------------------------------- /pkg/storage/finding.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/finding.go -------------------------------------------------------------------------------- /pkg/storage/finding_bolt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/finding_bolt.go -------------------------------------------------------------------------------- /pkg/storage/finding_inmemory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/finding_inmemory.go -------------------------------------------------------------------------------- /pkg/storage/finding_postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/finding_postgres.go -------------------------------------------------------------------------------- /pkg/storage/migrations/20210927162301_add_tokens_table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS tokens; -------------------------------------------------------------------------------- /pkg/storage/migrations/20210927162301_add_tokens_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/migrations/20210927162301_add_tokens_table.up.sql -------------------------------------------------------------------------------- /pkg/storage/migrations/20211008135034_add_findings_actions_tables.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/migrations/20211008135034_add_findings_actions_tables.down.sql -------------------------------------------------------------------------------- /pkg/storage/migrations/20211008135034_add_findings_actions_tables.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/migrations/20211008135034_add_findings_actions_tables.up.sql -------------------------------------------------------------------------------- /pkg/storage/migrations/migrations.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/migrations/migrations.go -------------------------------------------------------------------------------- /pkg/storage/postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres.go -------------------------------------------------------------------------------- /pkg/storage/postgres_integration_tests/actions_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres_integration_tests/actions_test.go -------------------------------------------------------------------------------- /pkg/storage/postgres_integration_tests/events_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres_integration_tests/events_test.go -------------------------------------------------------------------------------- /pkg/storage/postgres_integration_tests/findings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres_integration_tests/findings_test.go -------------------------------------------------------------------------------- /pkg/storage/postgres_integration_tests/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres_integration_tests/main_test.go -------------------------------------------------------------------------------- /pkg/storage/postgres_integration_tests/postgres_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres_integration_tests/postgres_test.go -------------------------------------------------------------------------------- /pkg/storage/postgres_integration_tests/setup.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/postgres_integration_tests/setup.go -------------------------------------------------------------------------------- /pkg/storage/storage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/storage/storage.go -------------------------------------------------------------------------------- /pkg/tokens/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/tokens/README.md -------------------------------------------------------------------------------- /pkg/tokens/dynamodb_token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/tokens/dynamodb_token.go -------------------------------------------------------------------------------- /pkg/tokens/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/tokens/factory.go -------------------------------------------------------------------------------- /pkg/tokens/inmemory_token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/tokens/inmemory_token.go -------------------------------------------------------------------------------- /pkg/tokens/postgres_token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/tokens/postgres_token.go -------------------------------------------------------------------------------- /pkg/tokens/token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/pkg/tokens/token.go -------------------------------------------------------------------------------- /tracing/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/tracing/docker-compose.yml -------------------------------------------------------------------------------- /tracing/otel-collector-config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/tracing/otel-collector-config.yml -------------------------------------------------------------------------------- /web/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/.eslintrc.js -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/.gitignore -------------------------------------------------------------------------------- /web/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/.prettierrc -------------------------------------------------------------------------------- /web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/README.md -------------------------------------------------------------------------------- /web/build.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/build.go -------------------------------------------------------------------------------- /web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/package.json -------------------------------------------------------------------------------- /web/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/public/favicon.ico -------------------------------------------------------------------------------- /web/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/public/index.html -------------------------------------------------------------------------------- /web/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/public/logo192.png -------------------------------------------------------------------------------- /web/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/public/logo512.png -------------------------------------------------------------------------------- /web/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/public/manifest.json -------------------------------------------------------------------------------- /web/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/public/robots.txt -------------------------------------------------------------------------------- /web/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/App.css -------------------------------------------------------------------------------- /web/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/App.tsx -------------------------------------------------------------------------------- /web/src/api-types.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/api-types.tsx -------------------------------------------------------------------------------- /web/src/api.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/api.tsx -------------------------------------------------------------------------------- /web/src/components/CenteredSpinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/components/CenteredSpinner.tsx -------------------------------------------------------------------------------- /web/src/components/KeyValueBadge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/components/KeyValueBadge.tsx -------------------------------------------------------------------------------- /web/src/components/LastUpdatedText.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/components/LastUpdatedText.tsx -------------------------------------------------------------------------------- /web/src/components/PolicyBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/components/PolicyBox.tsx -------------------------------------------------------------------------------- /web/src/components/TokenBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/components/TokenBox.tsx -------------------------------------------------------------------------------- /web/src/context/createCtx.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/context/createCtx.tsx -------------------------------------------------------------------------------- /web/src/icons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/icons.tsx -------------------------------------------------------------------------------- /web/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/index.css -------------------------------------------------------------------------------- /web/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/index.tsx -------------------------------------------------------------------------------- /web/src/layouts/DropdownNavButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/layouts/DropdownNavButton.tsx -------------------------------------------------------------------------------- /web/src/layouts/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/layouts/Layout.tsx -------------------------------------------------------------------------------- /web/src/layouts/SimpleNavbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/layouts/SimpleNavbar.tsx -------------------------------------------------------------------------------- /web/src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/logo.svg -------------------------------------------------------------------------------- /web/src/pages/AlertRedirectToPolicy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/pages/AlertRedirectToPolicy.tsx -------------------------------------------------------------------------------- /web/src/pages/FindingDetails.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/pages/FindingDetails.tsx -------------------------------------------------------------------------------- /web/src/pages/Findings.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/pages/Findings.test.tsx -------------------------------------------------------------------------------- /web/src/pages/Findings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/pages/Findings.tsx -------------------------------------------------------------------------------- /web/src/pages/Tokens.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/pages/Tokens.tsx -------------------------------------------------------------------------------- /web/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /web/src/reportWebVitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/reportWebVitals.ts -------------------------------------------------------------------------------- /web/src/setupTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/setupTests.ts -------------------------------------------------------------------------------- /web/src/test-utils.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/test-utils.tsx -------------------------------------------------------------------------------- /web/src/theme/colors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/theme/colors.ts -------------------------------------------------------------------------------- /web/src/theme/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/theme/index.ts -------------------------------------------------------------------------------- /web/src/utils/getAlertTitle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/utils/getAlertTitle.tsx -------------------------------------------------------------------------------- /web/src/utils/getEventCountString.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/utils/getEventCountString.tsx -------------------------------------------------------------------------------- /web/src/utils/mockData.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/utils/mockData.tsx -------------------------------------------------------------------------------- /web/src/utils/renderStringOrObject.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/src/utils/renderStringOrObject.tsx -------------------------------------------------------------------------------- /web/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/tsconfig.json -------------------------------------------------------------------------------- /web/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-fate/iamzero/HEAD/web/yarn.lock --------------------------------------------------------------------------------