Skip to content

Commit

Permalink
livegrep: update crawler config
Browse files Browse the repository at this point in the history
  • Loading branch information
kahnwong committed Aug 25, 2024
1 parent 640e230 commit 1a63b31
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
3 changes: 3 additions & 0 deletions kubernetes/clusters/snikt/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
livegrep-reindex:
kubectl create job --from=cronjob/livegrep-indexer livegrep-indexer-manual -n tools
kubectl rollout restart deploy livegrep-backend --namespace tools
2 changes: 2 additions & 0 deletions kubernetes/clusters/snikt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ kubectl taint nodes fringe-division storage-required=true:NoSchedule
| [kubernetes_cluster_role_binding.deployment_restart](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/cluster_role_binding) | resource |
| [kubernetes_cluster_role_binding.pod_exec](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/cluster_role_binding) | resource |
| [kubernetes_config_map.configmaps](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/config_map) | resource |
| [kubernetes_config_map.livegrep-ignorelist](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/config_map) | resource |
| [kubernetes_config_map.plausible_clickhouse_config](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/config_map) | resource |
| [kubernetes_config_map.plausible_clickhouse_user_config](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/config_map) | resource |
| [kubernetes_manifest.qa_discord_bot](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/manifest) | resource |
Expand All @@ -49,6 +50,7 @@ kubectl taint nodes fringe-division storage-required=true:NoSchedule
| [kubernetes_service_account.pod_exec](https://registry.terraform.io/providers/hashicorp/kubernetes/2.25.2/docs/resources/service_account) | resource |
| [sops_file.configmaps](https://registry.terraform.io/providers/carlpett/sops/1.0.0/docs/data-sources/file) | data source |
| [sops_file.livegrep](https://registry.terraform.io/providers/carlpett/sops/1.0.0/docs/data-sources/file) | data source |
| [sops_file.livegrep-ignorelist](https://registry.terraform.io/providers/carlpett/sops/1.0.0/docs/data-sources/file) | data source |
| [sops_file.secrets](https://registry.terraform.io/providers/carlpett/sops/1.0.0/docs/data-sources/file) | data source |

## Inputs
Expand Down
18 changes: 18 additions & 0 deletions kubernetes/clusters/snikt/configmaps.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,21 @@ resource "kubernetes_config_map" "plausible_clickhouse_user_config" {
"clickhouse-user-config.xml" = file("${path.module}/configmaps/plausible.clickhouse-user-config.xml")
}
}

# livegrep
data "sops_file" "livegrep-ignorelist" {
source_file = "${path.module}/configmaps/livegrep.ignorelist.sops.txt"
input_type = "raw"
}
resource "kubernetes_config_map" "livegrep-ignorelist" {
metadata {
name = "livegrep-ignorelist"
namespace = "tools"
}

data = {
"ignorelist.txt" = data.sops_file.livegrep-ignorelist.raw
}

depends_on = [data.sops_file.livegrep-ignorelist]
}
20 changes: 20 additions & 0 deletions kubernetes/clusters/snikt/configmaps/livegrep.ignorelist.sops.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"data": "ENC[AES256_GCM,data:8miW1A8vfGbYwLeijmUJyOAVrjb34IimQAleC2G1ehcz7PgT0wRyeQ5At04YMMsdhOM76jfxML6cBXfW8YHLk+kU2usov3MMKJIyHdmkfb1E04e7DgNycgrpf1YjdmkamUSVDqKkTegvQEITMy6MvrpGvqru2NcozJpdngNL6ak5PbJfzixRr6x5Esvr+QTgAHSFTBERn2f3k51OVn2aKU9BOMeZ2IrjwOTk9PyG/IPKNb7VzpO5iQQHJ4OoPE8988nsnPI5AnEdQfOI38c7Ykdn/LIv4GOZKQsFoURbQiGAFXC04XLh4wngDqs2IBCtZAirdJncGQ5hTGyf/CkFPzGs0Di8qQVzl0qE6Iqtu9zIc7JKNClVrrF4sGptJe8nshhBEg2cZonhjv30KBvTpcj3O17KxQeFDA7aWVihko4Q0WcFv4Zgs4pVG0UL1TBcBtTjaLINn6G0GDqhXmMXXTeaPmnITZcJgycyJvZ1LrNuEh7IXpMiEKbOY7bZmp8zUX4F01mlFayjicPQso8KlmLlMRAunrkQw4aZyAR667mQstE4dgKqfVGL+N9iVXYvkuqoMkOwjStCVX19anklK18MfM9mGqjlXW1l8Xv2IIbLZYqYmEtULWCuJ6eoATYBVwj83LwD8JcioMhA2kgPlGxDDA1H0jY=,iv:Upy8AZIzkRvnT2ej4AdQql2CAooVWuOIvvbs2TmzwCw=,tag:mQjyJBuLqZJE+IMbrnGy8w==,type:str]",
"sops": {
"kms": null,
"gcp_kms": null,
"azure_kv": null,
"hc_vault": null,
"age": [
{
"recipient": "age14ke6m4zzfpgpu2herm8cu22wshyalyfkvjp2hjedm34h7wg0ypjss9e3ct",
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBSTjREblZqZ0dHcm45MmZZ\nT2lJTGlJYTFnUHJtT0xrR2NhQ3pIWGJ6N0RjCkhpaHJPUEhCMzBkZEdTZmlBMld4\nNHlPTkNKYTdVMTRZSUJzTnY1bnhKOFkKLS0tIEtxL2lkWExUY0x6QS90emxVZUdD\ndE5NanFuaXp5blZLOTMvVW5CUG56QWMK5oD9qQJN2xfByZJ9IeQU+bkPMOfZBrzi\n8MNck7uwGum6E/BvEuYN70gWW620ScXaF2/o1NuBogy6fu5nlFtKWw==\n-----END AGE ENCRYPTED FILE-----\n"
}
],
"lastmodified": "2024-08-25T04:58:24Z",
"mac": "ENC[AES256_GCM,data:LC+f4bdE05jcmVfhM9EhDb/a/Y3GlxbGP43dNSCfSn5KmS5OLkb1mMRmPeQCsA+NArUoLvWimCuUdl3u3JWpINDHPOSJjMqj4ZbMJTj9LtJX6ymfvo2SRcKES/+tOU2TszLQJl01tLdRuQRBdMwL8B3M3FG9W6BAtUI2oPqJAkE=,iv:Z1mF0hU7Nofqvbk1DNyqG+IUdHSDOiP3po9qaQ5P5TE=,tag:qvwPtiVzY6wnK6He4IRdNw==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.9.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ containers:
- ENC[AES256_GCM,data:VII=,iv:QGE76JvbmG7S59UJxa4bRJ+ciQ8o9iYeIsorGvSI8Mg=,tag:cc/bzrHjc5vcg/w7n0H0gA==,type:str]
- ENC[AES256_GCM,data:6l8=,iv:IW5gLWItTWbg1GRG6DnSKmUlYGjWy3U9SLZSTz7oGlw=,tag:/bElvCaicmIvc3uynt6uKQ==,type:str]
args:
- ENC[AES256_GCM,data:A7Ht4ZufFHrUcLXNSLby+ISxRxxoM4kfgxj0PJ/jLRb3xF4nJYGedjCQ+3Z+tW4VbEQG6Xqkq/t6nJhd84qLNvvBDtG+vT+KXk0Qbx3KOLqwdjW9n0dH9H49kIgOG19NIWlv8CEUDviB8IkF5Vfi/MLqvrJcDJRAlCQBHt9iga54cLCxfgq16a+ZXiobNFxMxUjyEYTfhhSdg6clGYz5EYtKSomE3F11hSAO5pAW21+WV7U8GJZG7LIxHnPhKE8Hpu2b6m5YoLCDL18hEwEzyE0g0D8hIrMaZ6C5OvKb8GyoPMiQaTQVS9fEIO0yQhw506IcG1yOcrldvX9+M9rm8dsbyYby8+lQjLn3Fc34/c4vbLAJZdi5Rq0ZN1kOHrj++SjmmSJ5EFLO8EkifGSTh0BlT4qBAO0g/UG3TGreet9Mqp0Dvc8CKDFEDRPDF8Wz+vZkLeTpFfmYOil52XoSJCJjr35k2999QtS7F3AFz9BIuks7zSHLAUKqy9skYkcFdQtFxTF4FraQ7rO9GwlHElxUo1aRKkewd5GCi1NChX3aiVDex90ayzuT4bUnHTN2fswAqO7PvF1rn+ed2CLhBk6ukYq0FQ7e31sJUzhX1e6fJWHDQ6Z/15LPRtHpa8XDn5m62HRlTSZN7rVKExsWBwUe80p47cuam78C2fedPHSg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7stZGEsRXKaum/Vdz4QBaIoCvApe6tkh5NaB8aTUywytRD4J/GfYWz0hFkxRjtYjjbdqJLKpV3iyiSwWt/fhqD73uzIR43+jaJSr3aCH/WUMs6hOHxbsVxd9E8lJqXTWM+W5spt3BGSkO8G9CfDB055ePQpRKEBLgduoT2kPDVgOuKbc3fF16Lx/M+cn+T/YxVqbHEfwkjsBqq3DtSQGY5+JUQs9932DwgHCEfWrrsTeKxMSXSypVwohR25VPiEDQwm4CxCcu0H7FjjSMdgEsZuv45YHmyaiz4PI5r64zHHERsVlEmqfJZ03Mi9NQc2qiHAvj3F0fKiPzSQy6QEZ2yQJvJJe7MZ2Q7DpP/KlBe8QS+8Bf2rlLa23JdsHCfzcvdSEAoap31bwQM3,iv:yadqKE6vfbXJ81JJ+V5tJIcN8wnTRqlElnwBpcgR1B0=,tag:zRWP28NIMW9r1znyzLVMMQ==,type:str]
volumeMounts:
- name: ENC[AES256_GCM,data:qq5/Dz/ILBM=,iv:cqmwIA2bCUVXjjzTa8mwkgG+IRvKz3DH4yQX3P01af8=,tag:D69OnWP5VuJ7RnaQzmAUEg==,type:str]
mountPath: ENC[AES256_GCM,data:euzJCm0=,iv:7UqARnIgXAFJqE9Wls9m3CcgeJLV+wAmn9tvBurJjPg=,tag:Xw36wx7sdL+jIOVca2j2wQ==,type:str]
- name: ENC[AES256_GCM,data:U7PauPn8ytZ+OQ==,iv:M9cMDAmjAyVk8PY7zBSbQqweFq9jdK8H9Yr/lrbn6D0=,tag:WxFcARTR8d4vnI8NgmSjdA==,type:str]
mountPath: ENC[AES256_GCM,data:8kyasyPnig==,iv:JTg5BKag38sv0FUVBGZw4w975xgPoA+S457rMCFvzoc=,tag:4WD5tGMlLFwB5sPZ6VzF9w==,type:str]
readOnly: ENC[AES256_GCM,data:kklZNQ==,iv:iVGUfMBv3VTdJ1EdbF8j4kgQo9pMancy5RfBcrliz6c=,tag:Gi1ilkyCIlHQbX6N6zD8tw==,type:bool]
volumes:
- name: ENC[AES256_GCM,data:EK0rgZTskew=,iv:YD3XsGHlj8F+AsDSg1e8/TlaHXagUbbSpThooIWe3r8=,tag:nSUQsuHOtYspOP02Av/geg==,type:str]
hostPath:
path: ENC[AES256_GCM,data:+i3/hzEuOx+7RIjZ5A==,iv:hAHbPcp7WpcBCfkbm3v0G1gTiI/4u9dPTa2T1+q9FAQ=,tag:6voolfRSpowCAaw0mX/iyQ==,type:str]
- name: ENC[AES256_GCM,data:uXCN0f1YD1XKlw==,iv:TdHqlwr5sfZgU4kn9jV3huFftyzvraOTIoGr3G7vfO8=,tag:KehIYIvpOf9xBd4exDcOLQ==,type:str]
configMap:
name: ENC[AES256_GCM,data:SevlHleH7xS8Yvt8rUihrRWZrA==,iv:rCqR+Ig0uKSE03OOUr4ncb0XaTNjwJdafPsMr+QHWA4=,tag:s01zikB9d5euMWmJH++ECQ==,type:str]
sops:
kms: []
gcp_kms: []
Expand All @@ -32,8 +38,8 @@ sops:
TG9mVkZhQ21BQllpZCtDcmpQMHRQTEUKkxmxTo/t9ul3HPPFBODcOeR92flqZ3Co
BMkacrQY4EGv/BCmSUmxdFZ5ZlKbuAF19kbS3EBsvZv14tUOTCvmCQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-08-14T06:18:42Z"
mac: ENC[AES256_GCM,data:ngp3MuWcdcZ0VVYdraOSvrxXSb6Daa8LECjP0FDB+/qwkjUTlk+MFfctwyBxhtmigT3G77Rh4fLv9QHBf6uszlla5/KpaYCQW/ZGZZf5NT7lxZq3t9LD67dGgDFE4wdSZwFpv/zq2eRVejv/8f7AMYzzWVKpeyK6BDFeDKTgz2o=,iv:Ee5xkQL8JnXGjJdHHCICKEIIyoGQoV2ocF+ZKQ1V1MA=,tag:xS4rkNEmI1xGe8793miWPg==,type:str]
lastmodified: "2024-08-25T05:24:13Z"
mac: ENC[AES256_GCM,data:nYXcu1a0Ot7pECZhW3tEjt9YOpDBvfJqcYr3xt91fvte5JHT9kGi3NE5eFCZAI/8tDb5jA4wU7sCv+MJsQwGCiyEufFEkNIEvxjLzhqglTlHJ2P0w8WiuQ+elRXdk+eaEG+OTdoxEYMr4wwFMkgqAjFlbRxx9XUQTrmB8O6H+Zo=,iv:sWKbTS/BQYjWcJqiD/+1NQdri6pO+hDv+7ARz2qcN5c=,tag:99WOVkehvkabgiUmHaYSMQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.0

0 comments on commit 1a63b31

Please sign in to comment.