Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go upgrade, Azure SDK upgrade with azure api scan filtering enabled #5870

Merged
merged 24 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ steps:
- scripts/install_golang.sh
- scripts/setup_buildkite_pg.sh cereal_test
- cd lib
- PG_USER="postgres" PATH=/usr/lib/postgresql/9.6/bin/:\$PATH make lint unit cereal_integration
- PG_USER="postgres" PATH=/usr/lib/postgresql/9.6/bin/:\$PATH GODEBUG=x509ignoreCN=0 make lint unit cereal_integration
timeout_in_minutes: 10
retry:
automatic:
Expand Down
2 changes: 1 addition & 1 deletion .expeditor/verify_private.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ steps:
- label: "ontop backup"
command:
- integration/run_test integration/tests/backup_ontop.sh
timeout_in_minutes: 25
timeout_in_minutes: 30
expeditor:
executor:
linux:
Expand Down
3 changes: 3 additions & 0 deletions .license_scout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ fallbacks:
- name: github.com/shirou/w32
license_id: w32-Authors
license_content: https://raw.githubusercontent.com/shirou/w32/master/LICENSE
- name: golang.org/x/crypto
license_id: BSD-3-Clause
license_content: https://raw.githubusercontent.com/golang/crypto/master/LICENSE

habitat:
- name: chef/mlsa
Expand Down
2 changes: 1 addition & 1 deletion GOLANG_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14
1.15
3 changes: 3 additions & 0 deletions components/applications-load-gen/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/applications-service/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/authn-service/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/authz-service/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-curator/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

while [ 1 ]
do
PYTHONWARNINGS=ignore curator --config {{pkg.svc_path}}/config/curator.yml {{pkg.svc_path}}/config/actions.yml &
Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-elasticsearch/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0


half_mem=$(echo $(( $(free -m | grep Mem | awk '{print $2}') / 2 )))
if [ $half_mem -lt 26624 ]; then heapsize=$half_mem; heapsize+=m;else heapsize=26624m; fi
Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-elasticsidecar/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

echo "extracting ops dashboards"
mkdir -p /hab/svc/automate-backend-elasticsidecar/config/dashboards/
tar -xzf {{pkg.path}}/data/dashboards.tar.gz -C /hab/svc/automate-backend-elasticsidecar/config/dashboards/
Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-haproxy/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

export PGLEADERCHK_PORT

{{~#if bind.pgleaderchk}}
Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-journalbeat/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:{{pkgPathFor "core/systemd"}}/lib

exec journalbeat \
Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-kibana/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

exec kibana -c {{pkg.svc_path}}/config/kibana.yml
2 changes: 2 additions & 0 deletions components/automate-backend-metricbeat/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

exec metricbeat \
-c "{{pkg.svc_config_path}}/metricbeat.yml" \
Expand Down
3 changes: 3 additions & 0 deletions components/automate-backend-pgleaderchk/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

exec pgleaderchk -c {{pkg.svc_config_path}}/config.toml serve
3 changes: 3 additions & 0 deletions components/automate-backend-postgresql/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -Exeuo pipefail

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

echo 'Executing run hook'

source {{pkg.svc_config_path}}/functions.sh
Expand Down
3 changes: 3 additions & 0 deletions components/automate-builder-api-proxy/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

mkdir -p "{{pkg.svc_var_path}}/nginx"
chown -R hab:hab "{{pkg.svc_config_path}}" "{{pkg.svc_data_path}}" "{{pkg.svc_var_path}}"

Expand Down
3 changes: 3 additions & 0 deletions components/automate-builder-api/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ exec 2>&1

set -e

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

export HOME="{{pkg.svc_data_path}}"

export RUST_LOG="{{cfg.log.level}},{{strJoin cfg.log.scoped_levels ","}}"
Expand Down
3 changes: 3 additions & 0 deletions components/automate-builder-memcached/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# From memcache 1.5.19:
#
# - ssl_chain_cert: certificate chain file in PEM format
Expand Down
3 changes: 3 additions & 0 deletions components/automate-cds/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/automate-cs-bookshelf/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

mkdir -p {{pkg.svc_var_path}}/logs
Expand Down
3 changes: 3 additions & 0 deletions components/automate-cs-nginx/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ exec 2>&1

set -e

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{#if cfg.required_recipe.enabled ~}}
# Copy the required_recipe into the service's data directory and
# ensure it has permissions that the service user can read.
Expand Down
3 changes: 3 additions & 0 deletions components/automate-cs-oc-bifrost/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

mkdir -p {{pkg.svc_var_path}}/logs
Expand Down
3 changes: 3 additions & 0 deletions components/automate-cs-oc-erchef/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

"{{pkgPathFor "chef/mlsa"}}/bin/accept" {{cfg.mlsa.accept}}

mkdir -p {{pkg.svc_var_path}}/logs
Expand Down
3 changes: 3 additions & 0 deletions components/automate-deployment/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/automate-dex/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

export A2_SVC_DB_USER="dex"

{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}
Expand Down
3 changes: 3 additions & 0 deletions components/automate-elasticsearch/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{#if cfg.disable ~}}
while true
do
Expand Down
3 changes: 3 additions & 0 deletions components/automate-es-gateway/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# We shipped a version of A2 where es-gateway would write logs into the /hab/pkgs
# path. Attempt to clean up those log files if they exist:
rm -f /hab/pkgs/core/nginx/1.15.6/20181212185120/chef /hab/pkgs/core/nginx/1.15.6/20190115154053/chef
Expand Down
3 changes: 3 additions & 0 deletions components/automate-gateway/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
4 changes: 4 additions & 0 deletions components/automate-load-balancer/habitat/hooks/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!{{pkgPathFor "core/bash"}}/bin/bash

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

source {{pkg.svc_config_path}}/render-certs.sh
Expand Down
3 changes: 3 additions & 0 deletions components/automate-minio/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

mkdir -p "{{pkg.svc_data_path}}/depot"

# Minio requires TLS certs to be in a 'certs' subdirectory of the config-dir.
Expand Down
3 changes: 3 additions & 0 deletions components/automate-pg-gateway/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

chmod 0600 {{pkg.svc_config_path}}/service.crt
chmod 0600 {{pkg.svc_config_path}}/service.key
chmod 0600 {{pkg.svc_config_path}}/root_ca.crt
Expand Down
3 changes: 3 additions & 0 deletions components/automate-postgresql/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
set -e
exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{#if cfg.disable ~}}
echo "Internal Postgres Disabled"
while true
Expand Down
3 changes: 3 additions & 0 deletions components/automate-prometheus/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

exec {{pkgPathFor "core/prometheus"}}/bin/prometheus \
--config.file={{pkg.svc_config_path}}/prometheus.yml \
--web.listen-address=":{{cfg.port}}" \
Expand Down
2 changes: 1 addition & 1 deletion components/automate-scaffolding-go/habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkg_version="0.1.0"
pkg_license=('Chef-MLSA')
pkg_source=nosuchfile.tar.gz
pkg_deps=(
core/go/1.14 # This is only pinned to force a scaffolding rebuild to this version
core/go/1.15 # This is only pinned to force a scaffolding rebuild to this version
core/git
)

Expand Down
3 changes: 3 additions & 0 deletions components/automate-ui-devproxy/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

echo "Setting UI proxy to $DEVPROXY_URL based on \$DEVPROXY_URL which is set differently by .studiorc for either the Docker-based or Vagrant-based studio dev env."
sed -i -e "s/WILL_GET_REPLACED_BY_INIT_HOOK/$DEVPROXY_URL/g" /hab/svc/automate-ui/config/nginx.conf || true

Expand Down
3 changes: 3 additions & 0 deletions components/automate-ui/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}
exec {{ pkgPathFor "core/nginx" }}/bin/nginx -c "{{ pkg.svc_config_path }}/nginx.conf"
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ export class JobNodesFormComponent {
}

supportsFilterByTag(managerType: string): boolean {
return ['automate', 'aws-ec2', 'azure-vm'].includes(managerType);
return ['automate', 'aws-ec2', 'azure-vm', 'azure-api'].includes(managerType);
}
}
3 changes: 3 additions & 0 deletions components/automate-workflow-nginx/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
3 changes: 3 additions & 0 deletions components/automate-workflow-server/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exec 2>&1

# Required to allow common name feild in certificate. Feature soon to deprecated by 1.17
export GODEBUG=x509ignoreCN=0

# Call the script to block until user accepts the MLSA via the package's config
{{pkgPathFor "chef/mlsa"}}/bin/accept {{cfg.mlsa.accept}}

Expand Down
Loading