{"id":19785727,"url":"https://github.com/cartyc/falco-sidekick-pubsub","last_synced_at":"2026-06-08T16:04:02.261Z","repository":{"id":74692756,"uuid":"344110998","full_name":"cartyc/falco-sidekick-pubsub","owner":"cartyc","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-12T11:49:08.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T02:56:09.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cartyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-03T11:58:34.000Z","updated_at":"2021-04-12T11:50:15.000Z","dependencies_parsed_at":"2023-02-25T07:45:49.030Z","dependency_job_id":null,"html_url":"https://github.com/cartyc/falco-sidekick-pubsub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cartyc/falco-sidekick-pubsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cartyc%2Ffalco-sidekick-pubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cartyc%2Ffalco-sidekick-pubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cartyc%2Ffalco-sidekick-pubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cartyc%2Ffalco-sidekick-pubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cartyc","download_url":"https://codeload.github.com/cartyc/falco-sidekick-pubsub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cartyc%2Ffalco-sidekick-pubsub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T06:15:34.926Z","updated_at":"2026-06-08T16:04:02.256Z","avatar_url":"https://github.com/cartyc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Falco Sidekick PubSub Demo\n\n## Provision Infra\n\n### Crossplane\n\nCrossplane Helm\n\n```\nkubectl create namespace crossplane-system\n\nhelm repo add crossplane-stable https://charts.crossplane.io/stable\nhelm repo update\n\nhelm install crossplane --namespace crossplane-system crossplane-stable/crossplane --version 1.0.0\n```\n\nCrossplane CLI\n\n```\ncurl -sL https://raw.githubusercontent.com/crossplane/crossplane/release-1.0/install.sh | sh\n\nkubectl crossplane install provider crossplane/provider-gcp:v0.14.0\n```\n\nCreate GCP SA Key\n\n```\nPROJECT_ID=my-project\nNEW_SA_NAME=test-service-account-name\n\n# create service account\nSA=\"${NEW_SA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com\"\ngcloud iam service-accounts create $NEW_SA_NAME --project $PROJECT_ID\n\n# enable cloud API\nSERVICE=\"sqladmin.googleapis.com\"\ngcloud services enable $SERVICE --project $PROJECT_ID\n\n# grant access to cloud API\nROLE=\"roles/cloudsql.admin\"\ngcloud projects add-iam-policy-binding --role=\"$ROLE\" $PROJECT_ID --member \"serviceAccount:$SA\"\n\n# create service account keyfile\ngcloud iam service-accounts keys create creds.json --project $PROJECT_ID --iam-account $SA\n```\n\nCreate the Key\n\n```\nkubectl create secret generic gcp-creds -n crossplane-system --from-file=key=./creds.json\n```\n\nConfigure the Provider\n\n```\n# replace this with your own gcp project id\nPROJECT_ID=my-project\n\necho \"apiVersion: gcp.crossplane.io/v1beta1\nkind: ProviderConfig\nmetadata:\n  name: default\nspec:\n  projectID: ${PROJECT_ID}\n  credentials:\n    source: Secret\n    secretRef:\n      namespace: crossplane-system\n      name: gcp-creds\n      key: key\" | kubectl apply -f -\n```\n\n### Kubernetes Config Connector\n\n#### GKE\n\nCreate a new GKE cluster with the configconnector addon and workload identity enabled.\n\n```\nexport PROJECT_NAME=\u003cyourproject\u003e\n\ngcloud container clusters create kcc-infra \\\n--no-enable-basic-auth \\\n--enable-shielded-nodes \\\n--no-issue-client-certificate \\\n--num-nodes 1 \\\n--release-channel regular \\\n--enable-stackdriver-kubernetes \\\n--enable-ip-alias \\\n--enable-network-policy \\\n--no-enable-legacy-authorization \\\n--machine-type n2-standard-2 \\\n--zone northamerica-northeast1-a \\\n--image-type cos_containerd \\\n--workload-pool=${PROJECT_NAME}.svc.id.goog \\\n--addons ConfigConnector\n```\n\n#### Kind or other K8s conformant cluster\n\n```\ngcloud iam service-accounts create $SA_ACCOUNT\n\ngcloud projects add-iam-policy-binding $PROJECT_ID \\\n--member=\"serviceAccount:${SA_ACCOUNT}@${PROJECT_ID}.iam.gserviceaccount.com\" \\\n--role=\"roles/owner\"\n\ngcloud iam service-accounts keys create --iam-account \\\n${SA_ACCOUNT}@${PROJECT_ID}.iam.gserviceaccount.com key.json\n\nkubectl create namespace cnrm-system\n\nkubectl create secret generic kcc-key \\\n--from-file key.json \\\n--namespace cnrm-system\n\nrm key.json\n\n# Install Config Connector\n\ngsutil cp gs://configconnector-operator/latest/release-bundle.tar.gz release-bundle.tar.gz\n\ntar zxvf release-bundle.tar.gz\n\nkubectl apply -f operator-system/configconnector-operator.yaml\n```\n## Create Namespace for the configs to live in\n\n```\nkubectl create ns infrastructure\nkubectl annotate ns infrastructure cnrm.cloud.google.com/project-id=${PROJECT_ID}\n```\n\n## Create create the demo resources\n\nThis will create a GKE Cluster and a PubSub Topic that Falco Sidekick will send the events too.\n\n```\nkubectl apply -f kcc-infra/\n```\n\n## Install Falco and Falco Sidekick\n\nFirst lets switch our context to the newly created GKE cluster.\n\n```\ngcloud container clusters get-credentials $CLUSTER_NAME\n```\n\nOnce the context has been switched we can go ahead and install Falco.\n\n```\nhelm repo add falcosecurity https://falcosecurity.github.io/charts\nhelm repo update\n\nhelm install falco falcosecurity/falco -f values/falco-values.yaml\n```\n\nInstall Falco Sidekick\n\nCreate SA account for sidekick to use for publishing topics.\n\n```\ngcloud iam create service-accounts $SA_ACCOUNT\n\ngcloud projects add-iam-policy-binding ${PROJECT_ID} \\\n--member=\"serviceAccount:${SA_ACCOUNT}@${PROJECT_ID}.iam.gserviceaccount.com\" \\\n--role=\"roles/pubsub.publisher\"\n```\n\n```\nhelm install falco-sidekick falcosecurity/falcosidekick -f values/sidekick-values.yaml\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcartyc%2Ffalco-sidekick-pubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcartyc%2Ffalco-sidekick-pubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcartyc%2Ffalco-sidekick-pubsub/lists"}