From 38e3ce315402b4176701051c4aaa2aaa603c4ff7 Mon Sep 17 00:00:00 2001 From: Yashvi Jain <91940132+YashviJain01@users.noreply.github.com> Date: Tue, 17 Dec 2024 07:00:13 +0530 Subject: [PATCH 1/4] New version of opensearch in automate (#8670) * Testing changes Signed-off-by: Yashvi Jain * Testing changes Signed-off-by: Yashvi Jain * Adding env in user bin Signed-off-by: Yashvi Jain * Cleaning the docs correction in integration tests, exclusing system level index Signed-off-by: Yashvi Jain * fixing pipelines Signed-off-by: Yashvi Jain * Adding Signed-off-by: Yashvi Jain * Adding Signed-off-by: Yashvi Jain * Adding index names in cleanup Signed-off-by: Yashvi Jain * Adding correct number of indicies Signed-off-by: Yashvi Jain --------- Signed-off-by: Yashvi Jain Co-authored-by: Yashvi Jain --- .studio/common | 1 + .studio/deployment-service | 2 + .studiorc | 3 + .../habitat/config/opensearch.yml | 1 + .../config/securityconfig/internal_users.yml | 1 + .../habitat/hooks/post-run | 5 +- .../automate-opensearch/habitat/plan.sh | 21 ++++++- .../integration_test/suite_test.go | 56 +++++++++---------- .../integration_test/purge_test.go | 2 +- .../integration_test/suite_test.go | 13 +++-- .../integration_test/suite_test.go | 12 ++-- 11 files changed, 73 insertions(+), 44 deletions(-) diff --git a/.studio/common b/.studio/common index 6c2d231e2ef..7160a2101ee 100644 --- a/.studio/common +++ b/.studio/common @@ -362,6 +362,7 @@ function build_all_changed_components() { hab pkg install core/coreutils >/dev/null mkdir -p /usr/bin ln -sv "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env 2>/dev/null + cp "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env pushd /src >/dev/null for component in $(./scripts/changed_components.rb) diff --git a/.studio/deployment-service b/.studio/deployment-service index 9fc3d8d92c1..749c3431776 100644 --- a/.studio/deployment-service +++ b/.studio/deployment-service @@ -10,6 +10,8 @@ function start_deployment_service { local local_manifest="" local_manifest=$(find_local_manifest) + cp "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env + chef-automate dev configure-deployment --config dev/config.toml --manifest-dir "$local_manifest" restart_gateway_if_up diff --git a/.studiorc b/.studiorc index 9931437ac32..a99d0d6784c 100644 --- a/.studiorc +++ b/.studiorc @@ -159,6 +159,9 @@ DOC start_all_services() { start_deployment_service chef-automate dev deployinate + + cp "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env + if [[ -f "/src/dev/license.jwt" ]]; then chef-automate license apply "/src/dev/license.jwt" fi diff --git a/components/automate-opensearch/habitat/config/opensearch.yml b/components/automate-opensearch/habitat/config/opensearch.yml index 48145e8ff39..3637e2d6025 100644 --- a/components/automate-opensearch/habitat/config/opensearch.yml +++ b/components/automate-opensearch/habitat/config/opensearch.yml @@ -162,6 +162,7 @@ plugins.security.authcz.admin_dn: plugins.security.audit.type: internal_opensearch plugins.security.enable_snapshot_restore_privilege: true plugins.security.check_snapshot_restore_write_privileges: true +plugins.security.restapi.admin.enabled: true plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"] plugins.security.system_indices.enabled: true plugins.security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"] diff --git a/components/automate-opensearch/habitat/config/securityconfig/internal_users.yml b/components/automate-opensearch/habitat/config/securityconfig/internal_users.yml index 6b21189d8ff..3128ad0e474 100644 --- a/components/automate-opensearch/habitat/config/securityconfig/internal_users.yml +++ b/components/automate-opensearch/habitat/config/securityconfig/internal_users.yml @@ -15,6 +15,7 @@ admin: reserved: true backend_roles: - "admin" + - "security_rest_api_access" description: "Demo admin user" kibanaserver: diff --git a/components/automate-opensearch/habitat/hooks/post-run b/components/automate-opensearch/habitat/hooks/post-run index 8509f37dc06..7ddd0b65838 100644 --- a/components/automate-opensearch/habitat/hooks/post-run +++ b/components/automate-opensearch/habitat/hooks/post-run @@ -2,9 +2,10 @@ exec 2>&1 +sleep 80 # Executing opensearch securityadmin echo "Executing opensearch securityadmin" -hab pkg exec core/bash {{pkg.path}}/os/plugins/opensearch-security/tools/securityadmin.sh -cd {{pkg.svc_config_path}}/securityconfig -icl -key {{pkg.svc_config_path}}/admin-key.pem -cert {{pkg.svc_config_path}}/admin.pem -cacert {{pkg.svc_config_path}}/root-ca.pem -nhnv -h "localhost" -p {{cfg.transport.port}} +hab pkg exec core/bash {{pkg.path}}/os/plugins/opensearch-security/tools/securityadmin.sh -cd {{pkg.svc_config_path}}/securityconfig -icl -key {{pkg.svc_config_path}}/admin-key.pem -cert {{pkg.svc_config_path}}/admin.pem -cacert {{pkg.svc_config_path}}/root-ca.pem -nhnv -h "localhost" -p {{cfg.network.port}} echo "Done !!!! Executing opensearch securityadmin" source {{pkg.svc_config_path}}/health_check @@ -62,7 +63,7 @@ curl \ -H 'Content-Type: application/json'\ -X PUT "https://${HOST}:{{cfg.network.port}}/_all/_settings?preserve_existing=true" \ -k \ - -u admin:admin \ + --cert {{pkg.svc_config_path}}/admin.pem --key {{pkg.svc_config_path}}/admin-key.pem \ -d '{ "index.number_of_replicas": "{{cfg.index.number_of_replicas}}", "index.refresh_interval": "{{cfg.index.refresh_interval}}" diff --git a/components/automate-opensearch/habitat/plan.sh b/components/automate-opensearch/habitat/plan.sh index 79284a7debe..6c27cfdd0b2 100644 --- a/components/automate-opensearch/habitat/plan.sh +++ b/components/automate-opensearch/habitat/plan.sh @@ -5,12 +5,14 @@ pkg_name="automate-opensearch" pkg_description="Wrapper package for core/elasticsearch" pkg_origin="chef" -pkg_version="1.3.19" +pkg_version="2.18.0" pkg_maintainer="Chef Software Inc. " pkg_license=("Chef-MLSA") pkg_upstream_url="https://www.chef.io/automate" -pkg_source="https://artifacts.opensearch.org/releases/bundle/opensearch/1.3.19/opensearch-1.3.19-linux-x64.tar.gz" -pkg_shasum=af901097211df4c3d2ef75f0c3699452d82a87adac60c240520a3ca03f969595 +pkg_source="https://artifacts.opensearch.org/releases/bundle/opensearch/2.18.0/opensearch-2.18.0-linux-x64.tar.gz" +pkg_shasum=ae3cb4107b2e0cdbb9b98bb4e5f2f019b736b68e995442c718e459d39ff01df1 +# pkg_source="https://artifacts.opensearch.org/releases/bundle/opensearch/2.11.1/opensearch-2.11.1-linux-x64.tar.gz" +# pkg_shasum=926eb3f99f592e7518d5dc1e250ae11d1bb45ef766a90222a8df11bb2ee35a9c pkg_build_deps=( @@ -52,7 +54,20 @@ do_build() { return 0 } +do_after() { + if [ ! -f /usr/bin/env ]; then + echo "inside the /usr/ib/env" + cp $(pkg_path_for core/coreutils)/bin/env /usr/bin/env + fi + +} + do_install() { + if [ ! -f /usr/bin/env ]; then + echo "inside the /isr/ib/env" + cp $(pkg_path_for core/coreutils)/bin/env /usr/bin/env + fi + cd "$HAB_CACHE_SRC_PATH/opensearch-${pkg_version}" chown -RL hab:hab ${pkg_prefix} mkdir -p "${pkg_prefix}/os" diff --git a/components/config-mgmt-service/integration_test/suite_test.go b/components/config-mgmt-service/integration_test/suite_test.go index 6058dce624b..857ab07d4da 100644 --- a/components/config-mgmt-service/integration_test/suite_test.go +++ b/components/config-mgmt-service/integration_test/suite_test.go @@ -56,11 +56,11 @@ const ( // multiple tests, consider putting it here so that we have them available globally // // This struct holds: -// * A Ingest backend client, that you can leverate to do all sorts of ingestion. -// => Check this for the list of things this client can do: -// https://github.com/github.com/chef/automate/components/ingest-service/blob/master/backend/client.go#L1 -// * A Elasticsearch client, that you can use to throw ES queries. -// => Docs: https://godoc.org/gopkg.in/olivere/elastic.v5 +// - A Ingest backend client, that you can leverate to do all sorts of ingestion. +// => Check this for the list of things this client can do: +// https://github.com/github.com/chef/automate/components/ingest-service/blob/master/backend/client.go#L1 +// - A Elasticsearch client, that you can use to throw ES queries. +// => Docs: https://godoc.org/gopkg.in/olivere/elastic.v5 type Suite struct { ingest iBackend.Client client *elastic.Client @@ -128,16 +128,12 @@ func (s *Suite) GlobalTeardown() { } indicesToDelete := make([]string, 0) - for _, index := range indices { - //don't ever delete node run info.. we'll do that after each test when needed - if index != mappings.IndexNameNodeRunInfo { - indicesToDelete = append(indicesToDelete, index) - } - } - for i, v := range indicesToDelete { - if v == ".opendistro_security" { - indicesToDelete = append(indicesToDelete[:i], indicesToDelete[i+1:]...) - break + + for _, v := range indices { + if v == ".plugins-ml-config" || v == ".opensearch-observability" || v == ".opendistro_security" || v != mappings.IndexNameNodeRunInfo { + continue + } else { + indicesToDelete = append(indicesToDelete, v) } } time.Sleep(2 * time.Second) @@ -221,15 +217,17 @@ func (s *Suite) Indices() []string { // // You should call this method on every single test as the following example: // ``` -// func TestGrpcFunc(t *testing.T) { -// // Here we are ingesting a number of nodes -// suite.IngestNodes(nodes) // -// // Immediately after the ingestion add the hook to clean all documents, -// // by using `defer` you will ensure that the next test will have clean -// // data regardless if this test passes or fails -// defer suite.DeleteAllDocuments() -// } +// func TestGrpcFunc(t *testing.T) { +// // Here we are ingesting a number of nodes +// suite.IngestNodes(nodes) +// +// // Immediately after the ingestion add the hook to clean all documents, +// // by using `defer` you will ensure that the next test will have clean +// // data regardless if this test passes or fails +// defer suite.DeleteAllDocuments() +// } +// // ``` func (s *Suite) DeleteAllDocuments() { // ES Query to match all documents @@ -237,14 +235,16 @@ func (s *Suite) DeleteAllDocuments() { // Make sure we clean them all! indices, _ := s.client.IndexNames() - for i, v := range indices { - if v == ".opendistro_security" { - indices = append(indices[:i], indices[i+1:]...) - break + indicesToDelete := make([]string, 0) + for _, v := range indices { + if v == ".plugins-ml-config" || v == ".opensearch-observability" || v == ".opendistro_security" { + continue + } else { + indicesToDelete = append(indicesToDelete, v) } } _, err := s.client.DeleteByQuery(). - Index(indices...). + Index(indicesToDelete...). Query(q). IgnoreUnavailable(true). Refresh("true"). diff --git a/components/es-sidecar-service/integration_test/purge_test.go b/components/es-sidecar-service/integration_test/purge_test.go index 85c5aa93985..dffbd14d4da 100644 --- a/components/es-sidecar-service/integration_test/purge_test.go +++ b/components/es-sidecar-service/integration_test/purge_test.go @@ -32,7 +32,7 @@ func TestPurgeTimeSeriesIndicesByAge(t *testing.T) { fmt.Sprintf("When starting with %v indices and removing older than %v days, %v remain", test.startingCount, test.olderThanDays, test.expectedRemainingCount), func(t *testing.T) { - doPurgeTest(t, TimeSeriesTestIndex, test.startingCount, test.olderThanDays, test.expectedRemainingCount+2) + doPurgeTest(t, TimeSeriesTestIndex, test.startingCount, test.olderThanDays, test.expectedRemainingCount+4) }, ) } diff --git a/components/es-sidecar-service/integration_test/suite_test.go b/components/es-sidecar-service/integration_test/suite_test.go index 826bd09c0c7..c2a3e4b6e4a 100644 --- a/components/es-sidecar-service/integration_test/suite_test.go +++ b/components/es-sidecar-service/integration_test/suite_test.go @@ -79,13 +79,16 @@ func (suite *Suite) DeleteAllIndices() { if err != nil { fmt.Printf("Could not retrieve index list: %s\n", err) } - for i, v := range indices { - if v == ".opendistro_security" { - indices = append(indices[:i], indices[i+1:]...) - break + + indicesToDelete := make([]string, 0) + for _, v := range indices { + if v == ".plugins-ml-config" || v == ".opensearch-observability" || v == ".opendistro_security" { + continue + } else { + indicesToDelete = append(indicesToDelete, v) } } - suite.esClient.DeleteIndex(indices...).Do(context.Background()) + suite.esClient.DeleteIndex(indicesToDelete...).Do(context.Background()) } func (suite Suite) GlobalTeardown() { diff --git a/components/ingest-service/integration_test/suite_test.go b/components/ingest-service/integration_test/suite_test.go index 28ee3a3db24..7a303610633 100644 --- a/components/ingest-service/integration_test/suite_test.go +++ b/components/ingest-service/integration_test/suite_test.go @@ -265,14 +265,16 @@ func (s *Suite) DeleteAllDocuments() { q := elastic.RawStringQuery("{\"match_all\":{}}") // Make sure we clean them all! indices, _ := s.client.IndexNames() - for i, v := range indices { - if v == ".opendistro_security" { - indices = append(indices[:i], indices[i+1:]...) - break + indicesToDelete := make([]string, 0) + for _, v := range indices { + if v == ".plugins-ml-config" || v == ".opensearch-observability" || v == ".opendistro_security" { + continue + } else { + indicesToDelete = append(indicesToDelete, v) } } _, err := s.client.DeleteByQuery(). - Index(indices...). + Index(indicesToDelete...). Query(q). IgnoreUnavailable(true). Refresh("true"). From 328d0d4dabb0e64e2dd17c4fa6d5e95217bdc1d2 Mon Sep 17 00:00:00 2001 From: Yashvi Jain Date: Wed, 18 Dec 2024 15:38:50 +0530 Subject: [PATCH 2/4] Adding pg update Signed-off-by: Yashvi Jain --- components/automate-deployment/habitat/plan.sh | 2 +- components/automate-platform-tools/habitat/plan.sh | 2 +- .../habitat/config/functions.sh | 2 +- .../automate-postgresql/habitat/config/pg_hba.conf | 2 +- .../habitat/config/postgresql.conf | 2 +- components/automate-postgresql/habitat/hooks/init | 14 +++++++------- components/automate-postgresql/habitat/hooks/run | 2 +- components/automate-postgresql/habitat/plan.sh | 8 ++++---- components/pg-sidecar-service/habitat/plan.sh | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/components/automate-deployment/habitat/plan.sh b/components/automate-deployment/habitat/plan.sh index 475a679824b..d74c87fccdf 100644 --- a/components/automate-deployment/habitat/plan.sh +++ b/components/automate-deployment/habitat/plan.sh @@ -32,7 +32,7 @@ pkg_deps=( chef/mlsa # deployment-service uses the postgres11 client to backup/restore postgresql. # we need pg11 because the ha backend uses postgres 11 - core/postgresql13-client + core/postgresql17-client ) pkg_bin_dirs=(bin) diff --git a/components/automate-platform-tools/habitat/plan.sh b/components/automate-platform-tools/habitat/plan.sh index a96f9b7ea55..b08f415744a 100644 --- a/components/automate-platform-tools/habitat/plan.sh +++ b/components/automate-platform-tools/habitat/plan.sh @@ -10,7 +10,7 @@ pkg_maintainer="Chef Software Inc. " pkg_license=('Chef-MLSA') pkg_upstream_url="https://www.chef.io/automate" pkg_bin_dirs=(bin) -pkg_scaffolding="${local_scaffolding_origin:-chef}/automate-scaffolding-go" +pkg_scaffolding="${local_scaffolding_origin:-yjain}/automate-scaffolding-go" scaffolding_no_platform=true # Don't inject automate platform scaffolding scaffolding_go_base_path=github.com/chef scaffolding_go_repo_name=automate diff --git a/components/automate-postgresql/habitat/config/functions.sh b/components/automate-postgresql/habitat/config/functions.sh index f8f173bee6e..4bbd6599a61 100644 --- a/components/automate-postgresql/habitat/config/functions.sh +++ b/components/automate-postgresql/habitat/config/functions.sh @@ -33,7 +33,7 @@ ensure_dir_ownership() { fi echo "Ensuring proper ownership: $ownership_command" $ownership_command - chmod 0700 {{pkg.svc_data_path}}/pgdata13 + chmod 0700 {{pkg.svc_data_path}}/pgdata17 } ensure_key_ownership() { diff --git a/components/automate-postgresql/habitat/config/pg_hba.conf b/components/automate-postgresql/habitat/config/pg_hba.conf index 187345f4cdc..81ee5a56865 100644 --- a/components/automate-postgresql/habitat/config/pg_hba.conf +++ b/components/automate-postgresql/habitat/config/pg_hba.conf @@ -12,7 +12,7 @@ local all all md5 # TODO: perhaps we could restrict this to just peers in the hab ring -hostssl all all 0.0.0.0/0 cert clientcert=1 map=service-map +hostssl all all 0.0.0.0/0 cert clientcert=verify-full map=service-map # Always allow MD5 from localhost host all all 127.0.0.1/8 md5 diff --git a/components/automate-postgresql/habitat/config/postgresql.conf b/components/automate-postgresql/habitat/config/postgresql.conf index 6cbdbe340be..aa6cf7f7cf6 100644 --- a/components/automate-postgresql/habitat/config/postgresql.conf +++ b/components/automate-postgresql/habitat/config/postgresql.conf @@ -18,7 +18,7 @@ datestyle = 'iso, mdy' default_text_search_config = 'pg_catalog.english' -data_directory = '{{pkg.svc_data_path}}/pgdata13' +data_directory = '{{pkg.svc_data_path}}/pgdata17' hba_file = '{{pkg.svc_config_path}}/pg_hba.conf' ident_file = '{{pkg.svc_config_path}}/pg_ident.conf' diff --git a/components/automate-postgresql/habitat/hooks/init b/components/automate-postgresql/habitat/hooks/init index 6ec1537468e..950718cd923 100644 --- a/components/automate-postgresql/habitat/hooks/init +++ b/components/automate-postgresql/habitat/hooks/init @@ -27,13 +27,13 @@ mkdir -p {{pkg.svc_var_path}}/pg_stat_tmp # Auto-detect pg data in the root of svc_data_path, where older versions of this plan had it if [[ -f "{{pkg.svc_data_path}}/PG_VERSION" ]]; then - echo "PGDATA detected in the root of the data path ( {{pkg.svc_data_path}} ), relocating it to {{pkg.svc_data_path}}/pgdata13" - mkdir -p {{pkg.svc_data_path}}/pgdata13 + echo "PGDATA detected in the root of the data path ( {{pkg.svc_data_path}} ), relocating it to {{pkg.svc_data_path}}/pgdata17" + mkdir -p {{pkg.svc_data_path}}/pgdata17 # bash extended globbing can cleanly move everything under a subfolder http://www.linuxjournal.com/content/bash-extended-globbing - mv {{pkg.svc_data_path}}/!(pgdata13) {{pkg.svc_data_path}}/pgdata13/ - chmod 0700 {{pkg.svc_data_path}}/pgdata13 + mv {{pkg.svc_data_path}}/!(pgdata73) {{pkg.svc_data_path}}/pgdata17/ + chmod 0700 {{pkg.svc_data_path}}/pgdata17 else - mkdir -p {{pkg.svc_data_path}}/pgdata13 + mkdir -p {{pkg.svc_data_path}}/pgdata17 fi mkdir -p {{pkg.svc_data_path}}/archive @@ -41,11 +41,11 @@ mkdir -p {{pkg.svc_data_path}}/archive ensure_dir_ownership ensure_key_ownership -if [[ ! -f "{{pkg.svc_data_path}}/pgdata13/PG_VERSION" ]]; then +if [[ ! -f "{{pkg.svc_data_path}}/pgdata17/PG_VERSION" ]]; then echo " Database does not exist, creating with 'initdb'" initdb -U {{cfg.superuser.name}} \ -E utf8 \ - -D {{pkg.svc_data_path}}/pgdata13 \ + -D {{pkg.svc_data_path}}/pgdata17 \ --locale POSIX \ --data-checksums fi diff --git a/components/automate-postgresql/habitat/hooks/run b/components/automate-postgresql/habitat/hooks/run index d7430c3a62f..ce18834f5a1 100644 --- a/components/automate-postgresql/habitat/hooks/run +++ b/components/automate-postgresql/habitat/hooks/run @@ -23,7 +23,7 @@ ensure_dir_ownership ensure_key_ownership echo "Starting PostgreSQL" -export PGDATA={{pkg.svc_data_path}}/pgdata13 +export PGDATA={{pkg.svc_data_path}}/pgdata17 pidfile="$PGDATA/postmaster.pid" if [ -f "$pidfile" ]; then diff --git a/components/automate-postgresql/habitat/plan.sh b/components/automate-postgresql/habitat/plan.sh index 755eb366077..83204e2e439 100644 --- a/components/automate-postgresql/habitat/plan.sh +++ b/components/automate-postgresql/habitat/plan.sh @@ -4,22 +4,22 @@ pkg_name="automate-postgresql" pkg_description="Wrapper package for core/postgresql" pkg_origin="chef" -pkg_version="13.18.0" +pkg_version="17.2.0" vendor_origin="core" pkg_maintainer="Chef Software Inc. " pkg_license=("Chef-MLSA") pkg_upstream_url="https://www.chef.io/automate" # pinned PG version. We need to also update components/automate-cli/cmd/chef-automate/migration_pg.go (line) -pg_version="13.18" +pg_version="17.2" # pinned PG version. We need to also update components/automate-cli/cmd/chef-automate/migration_pg.go (line) -ident="20241203070217" +ident="20241203071443" pkg_deps=( core/coreutils chef/mlsa - ${vendor_origin}/postgresql13/${pg_version}/${ident} + ${vendor_origin}/postgresql17/${pg_version}/${ident} ) pkg_exports=( diff --git a/components/pg-sidecar-service/habitat/plan.sh b/components/pg-sidecar-service/habitat/plan.sh index fb78666bda9..eb6df13ec76 100644 --- a/components/pg-sidecar-service/habitat/plan.sh +++ b/components/pg-sidecar-service/habitat/plan.sh @@ -22,8 +22,8 @@ pkg_deps=( chef/automate-platform-tools # Pin postgresql, sqitch_pg, and postgresql client until automate-postgresql # is updated. - core/postgresql13/13.18 # for psql and pg_dump - core/postgresql13-client/13.18 + core/postgresql17/17.2 # for psql and pg_dump + core/postgresql17-client/17.2 core/sqitch_pg ) pkg_bin_dirs=(bin) From 64336fce9c924bf4a62afa06dd642ddedd89448d Mon Sep 17 00:00:00 2001 From: Yashvi Jain Date: Thu, 19 Dec 2024 12:49:41 +0530 Subject: [PATCH 3/4] Upgrade postgresql to 17.2 Signed-off-by: Yashvi Jain --- components/automate-postgresql/habitat/plan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/automate-postgresql/habitat/plan.sh b/components/automate-postgresql/habitat/plan.sh index 83204e2e439..d68fb313578 100644 --- a/components/automate-postgresql/habitat/plan.sh +++ b/components/automate-postgresql/habitat/plan.sh @@ -17,8 +17,8 @@ pg_version="17.2" ident="20241203071443" pkg_deps=( - core/coreutils - chef/mlsa + core/coreutils/9.4/20241017111752 + chef/mlsa/1.0.1/20241018111404 ${vendor_origin}/postgresql17/${pg_version}/${ident} ) From c8031f38e7c0ae2b6d98146e0708f74f14da8edb Mon Sep 17 00:00:00 2001 From: Yashvi Jain Date: Thu, 19 Dec 2024 14:08:13 +0530 Subject: [PATCH 4/4] Remvoing unwanted changes Signed-off-by: Yashvi Jain --- components/automate-platform-tools/habitat/plan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/automate-platform-tools/habitat/plan.sh b/components/automate-platform-tools/habitat/plan.sh index b08f415744a..a96f9b7ea55 100644 --- a/components/automate-platform-tools/habitat/plan.sh +++ b/components/automate-platform-tools/habitat/plan.sh @@ -10,7 +10,7 @@ pkg_maintainer="Chef Software Inc. " pkg_license=('Chef-MLSA') pkg_upstream_url="https://www.chef.io/automate" pkg_bin_dirs=(bin) -pkg_scaffolding="${local_scaffolding_origin:-yjain}/automate-scaffolding-go" +pkg_scaffolding="${local_scaffolding_origin:-chef}/automate-scaffolding-go" scaffolding_no_platform=true # Don't inject automate platform scaffolding scaffolding_go_base_path=github.com/chef scaffolding_go_repo_name=automate