Skip to content

Commit

Permalink
remove unused loggregator certificates and ops-files
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerj0 committed Jun 5, 2024
1 parent 6e2e66a commit a7f2d31
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 49 deletions.
3 changes: 0 additions & 3 deletions ci/autoscaler/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ anchors:
operations/instance-identity-cert-from-cf.yml
operations/add-postgres-variables.yml
operations/enable-nats-tls.yml
operations/loggregator-certs-from-cf.yml
operations/add-extra-plan.yml
operations/set-release-version.yml
operations/enable-metricsforwarder-via-metron-agent.yml
Expand All @@ -20,7 +19,6 @@ anchors:
operations/instance-identity-cert-from-cf.yml
operations/add-postgres-variables.yml
operations/enable-nats-tls.yml
operations/loggregator-certs-from-cf.yml
operations/add-extra-plan.yml
operations/set-release-version.yml
operations/enable-metricsforwarder-via-syslog-agent.yml
Expand All @@ -34,7 +32,6 @@ anchors:
operations/instance-identity-cert-from-cf.yml
operations/add-postgres-variables.yml
operations/enable-nats-tls.yml
operations/loggregator-certs-from-cf.yml
operations/postgres-persistent-disk.yml
operations/add-extra-plan.yml
operations/set-release-version.yml
Expand Down
1 change: 0 additions & 1 deletion ci/autoscaler/scripts/deploy-autoscaler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ops_files=${OPS_FILES:-"${autoscaler_dir}/operations/add-releases.yml\
${autoscaler_dir}/operations/add-postgres-variables.yml\
${autoscaler_dir}/operations/connect_to_postgres_with_certs.yml\
${autoscaler_dir}/operations/enable-nats-tls.yml\
${autoscaler_dir}/operations/loggregator-certs-from-cf.yml\
${autoscaler_dir}/operations/add-extra-plan.yml\
${autoscaler_dir}/operations/set-release-version.yml\
${autoscaler_dir}/operations/remove-metricsserver.yml\
Expand Down
1 change: 0 additions & 1 deletion ci/autoscaler/tasks/deploy-previous-autoscaler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ params:
# Optional: relative to the root of the release input. The files will be
# checked to see if they exist, if not they will be excluded from the list
OPS_FILES: |
example/operation/loggregator-certs-from-cf.yml
example/operation/postgres-persistent-disk.yml
Expand Down
22 changes: 0 additions & 22 deletions operations/loggregator-certs-from-cf.yml

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/generate_test_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ ${CERTSTRAP} --depot-path "${depot_path}" init --passphrase '' --common-name aut
mv -f "${depot_path}"/autoscalerCA.crt "${depot_path}"/autoscaler-ca.crt
mv -f "${depot_path}"/autoscalerCA.key "${depot_path}"/autoscaler-ca.key

# CA to distribute to dummy loggregator_agent certs
${CERTSTRAP} --depot-path "${depot_path}" init --passphrase '' --common-name loggregatorCA --years "20"
mv -f "${depot_path}"/loggregatorCA.crt "${depot_path}"/loggregator-ca.crt
mv -f "${depot_path}"/loggregatorCA.key "${depot_path}"/loggregator-ca.key

# CA to distribute to dummy syslog emitter certs
${CERTSTRAP} --depot-path "${depot_path}" init --passphrase '' --common-name LogCacheSyslogServerCA --years "20"
mv -f "${depot_path}"/LogCacheSyslogServerCA.crt "${depot_path}"/log-cache-syslog-server-ca.crt
Expand Down Expand Up @@ -91,11 +86,6 @@ ${CERTSTRAP} --depot-path "${depot_path}" sign metricserver --CA autoscaler-ca -
${CERTSTRAP} --depot-path "${depot_path}" request-cert --passphrase '' --domain metricserver_client
${CERTSTRAP} --depot-path "${depot_path}" sign metricserver_client --CA autoscaler-ca --years "20"

# metricsforwarder certificate for loggregator_agent
${CERTSTRAP} --depot-path "${depot_path}" request-cert --passphrase '' --domain metron
${CERTSTRAP} --depot-path "${depot_path}" sign metron --CA loggregator-ca --years "20"


# metricsforwarder certificate for log-cache-syslog-server
${CERTSTRAP} --depot-path "${depot_path}" request-cert --passphrase '' --domain cf-app
${CERTSTRAP} --depot-path "${depot_path}" sign cf-app --CA log-cache-syslog-server-ca --years "20"
Expand Down
12 changes: 0 additions & 12 deletions templates/app-autoscaler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -790,18 +790,6 @@ variables:
is_ca: true
key_length: 4096
duration: 180
- name: loggregator_agent_metrics_tls
type: certificate
update_mode: converge
options:
ca: metric_scraper_ca
common_name: loggregator_agent_server
alternative_names:
- loggregator_agent_server
extended_key_usage:
- server_auth
key_length: 4096
duration: 180

# metricsforwarder loggregator certificates
- name: metricsforwarder_autoscaler_metricsforwarder_loggregator_tls
Expand Down

0 comments on commit a7f2d31

Please sign in to comment.