@@ -824,6 +824,20 @@ module "intake_smoketests" {
824824 helm_values = indent (10 , trimspace (local. smoketests_values ))
825825}
826826
827+ resource "random_password" "minio-password" {
828+ length = 16
829+ special = false
830+ }
831+
832+ output "minio-username" {
833+ value = " indico"
834+ }
835+
836+ output "minio-password" {
837+ sensitive = true
838+ value = random_password. minio-password . result
839+ }
840+
827841locals {
828842 insights_pre_reqs_values = [<< EOF
829843crunchy-postgres:
@@ -910,37 +924,35 @@ crunchy-postgres:
910924ingress:
911925 useStaticCertificate: false
912926 secretName: indico-ssl-static-cert
913- tls.crt: #base64 encoded value of certificate chain
914- tls.key: #base64 encoded value of certificate key
915927minio:
916928 createStorageClass: false
917929 topology:
918- volumeSize: 128Gi
919930 storageClassName: default
920931 storage:
921- accessKey: <path:tools/argo/data/indico-dev/ins-dev/storage#access_key_id>
922- secretKey: <path:tools/argo/data/indico-dev/ins-dev/storage#secret_access_key>
932+ accessKey: ${ random_password . minio-username . result }
933+ secretKey: ${ random_password . minio-password . result }
923934weaviate:
924935 cronjob:
925936 services:
926937 weaviate-backup:
927938 enabled: true
928939 backupStorageConfig:
929- accessKey: <path:tools/argo/data/indico-dev/ins-dev/storage#access_key_id>
930- secretKey: <path:tools/argo/data/indico-dev/ins-dev/storage#secret_access_key>
940+ accessKey: ${ random_password . minio-username . result }
941+ secretKey: ${ random_password . minio-password . result }
931942 url: http://minio-tenant-hl.insights.svc.cluster.local:9000
932943 weaviate:
933944 env:
934- GOMEMLIMIT: "31GiB" # 1 less than the hard limit on the used nodes
935- # TODO: enable this when we have a backup bucket
945+ # 1 less than the hard limit of the weaviate node group type
946+ GOMEMLIMIT: "31GiB"
947+ # TODO: switch this to a dedicated weaviate backup bucket
936948 backups:
937949 s3:
938- enabled: false
950+ enabled: true
939951 envconfig:
940952 BACKUP_S3_ENDPOINT: minio-tenant-hl.insights.svc.cluster.local:9000
941953 secrets:
942- AWS_ACCESS_KEY_ID: <path:tools/argo/data/indico-dev/ins-dev/storage#access_key_id>
943- AWS_SECRET_ACCESS_KEY: <path:tools/argo/data/indico-dev/ins-dev/storage#secret_access_key>
954+ AWS_ACCESS_KEY_ID: ${ random_password . minio-username . result }
955+ AWS_SECRET_ACCESS_KEY: ${ random_password . minio-password . result }
944956 EOF
945957 ]
946958
@@ -949,20 +961,6 @@ global:
949961 host: ${ var . label } .${ var . region } .indico-dev.indico.io
950962 features:
951963 askMyDocument: true
952- intake:
953- host: dev-ci.us-east-2.indico-dev.indico.io
954- apiToken: <path:tools/argo/data/indico-dev/ins-dev/intake#api_token>
955- tokenSecret: <path:tools/argo/data/indico-dev/ins-dev/intake#noct_token_secret>
956- cookieSecret: <path:tools/argo/data/indico-dev/ins-dev/intake#noct_cookie_secret>
957- insights-edge:
958- additionalAllowedOrigins:
959- - https://local.indico.io:1234
960- server:
961- services:
962- lagoon:
963- env:
964- FIELD_AUTOCONFIRM_CONFIDENCE: 0.8
965- FIELD_CONFIG_PATH: "fields_config.yaml"
966964ask-my-docs:
967965 llmConfig:
968966 llm: indico-azure-instance
0 commit comments