diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-06-05 15:40:52 +0200 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-06-08 08:26:08 +0200 |
commit | 5336a4ad074c54e392c8b0ec128ce4e450111c9c (patch) | |
tree | 40568209e36bf61e00b4357fd179e465e7ec935a /kubernetes/aaf/charts/aaf-sms | |
parent | 3c2395cd1dede2bed7bd385d637f989eb6bfb15b (diff) |
[AAF SMS] Override outdated certificates
Certificates in AAF SMS are outdated
Replacing by new ones
Issue-ID: AAF-1159
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I47c459e6f9ca002bf7ed946a7de80426b04e959a
Diffstat (limited to 'kubernetes/aaf/charts/aaf-sms')
7 files changed, 153 insertions, 2 deletions
diff --git a/kubernetes/aaf/charts/aaf-sms/resources/certs/aaf_root_ca.cer b/kubernetes/aaf/charts/aaf-sms/resources/certs/aaf_root_ca.cer new file mode 100644 index 0000000000..e9a50d7ea0 --- /dev/null +++ b/kubernetes/aaf/charts/aaf-sms/resources/certs/aaf_root_ca.cer @@ -0,0 +1,31 @@ +-----BEGIN CERTIFICATE----- +MIIFPjCCAyagAwIBAgIJAJ6u7cCnzrWdMA0GCSqGSIb3DQEBCwUAMCwxDjAMBgNV +BAsMBU9TQUFGMQ0wCwYDVQQKDARPTkFQMQswCQYDVQQGEwJVUzAeFw0xODA0MDUx +NDE1MjhaFw0zODAzMzExNDE1MjhaMCwxDjAMBgNVBAsMBU9TQUFGMQ0wCwYDVQQK +DARPTkFQMQswCQYDVQQGEwJVUzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC +ggIBAMA5pkgRs7NhGG4ew5JouhyYakgYUyFaG121+/h8qbSdt0hVQv56+EA41Yq7 +XGie7RYDQK9NmAFF3gruE+6X7wvJiChp+Cyd7sFMnb65uWhxEdxWTM2BJFrgfzUn +H8ZCxgaCo3XH4PzlKRy2LQQJEJECwl/RZmRCXij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+PsBTkZA5hpa/rA+mKv6Af4VBViYr8cz4dZCsFChuioVebe9ighrfjB//qKepFjPF +CyjzKN1u0JKm/2x/ORqxkTONG8p3uDwoIOyimUcTtTMv42bfYD88RKakqSFXE9G+ +Z0LlaKABqfjK49o/tsAp+c5LoNlYllKhnetO3QAdraHwdmC36BhoghzR1jpX751A +cZn2VH3Q4XKyp01cJNCJIrua+A+bx6zh3RyW6zIIkbRCbET+UD+4mr8WIcSE3mtR +ZVlnhUDO4z9//WKMVzwS9Rh8/kuszrGFI1KQozXCHLrce3YP6RYZfOed79LXaRwX +dYY= +-----END CERTIFICATE----- diff --git a/kubernetes/aaf/charts/aaf-sms/resources/certs/org.onap.aaf-sms.crt b/kubernetes/aaf/charts/aaf-sms/resources/certs/org.onap.aaf-sms.crt new file mode 100644 index 0000000000..6a70443738 --- /dev/null +++ b/kubernetes/aaf/charts/aaf-sms/resources/certs/org.onap.aaf-sms.crt @@ -0,0 +1,52 @@ +-----BEGIN CERTIFICATE----- +MIIEdzCCA1+gAwIBAgIJAPjgcZm5gVWUMA0GCSqGSIb3DQEBCwUAMEcxCzAJBgNV +BAYTAlVTMQ0wCwYDVQQKDARPTkFQMQ4wDAYDVQQLDAVPU0FBRjEZMBcGA1UEAwwQ +aW50ZXJtZWRpYXRlQ0FfOTAeFw0yMDA2MDQxNjEyMDRaFw0yMTA2MDQxNjEyMDRa +MGUxEDAOBgNVBAMMB2FhZi1zbXMxJTAjBgNVBAsMHGFhZi1zbXNAYWFmLXNtcy5v +bmFwLm9yZzpERVYxDjAMBgNVBAsMBU9TQUFGMQ0wCwYDVQQKDARPTkFQMQswCQYD +VQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ8Tg54iobqT +7xqdu0fV8aIfmLfdm+BcQNkbn273UUguJpdzfdSziQIUr8NIX0K8jGFIGAZinji3 +Wqscr/eKSrMSyYmvu8aQYfV7LPXGn0l5aEp0M08q066+rJi52rhOF7ALyBHlZFXn +7F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fhJWwe7UsZnBKZaZKbQZu7hEtqKWYp/ +QsHgnjoLYXsh0WD5rz/mBxdTdDLGpFqWDzDqb8rsYnqBzoowvsasV8X8OSkov0Ht +8Yka0ckFH9yf8j1Cwmbl6ttuonOhky3N/gwLEozuhy7TPcZGVyzevF70kXy7g1CX +kpFGJyEHXoprlNi8FR4I+NFzbDe6a2cFow1JN19AJ9Z5Rk5m7M0mQPaQ4RcikjB3 +aoLsASCJTm1OpOFHfxEKiBW4Lsp3Uc5/Rb9ZNbfLrwqWZRM7buW1e3ekLqntgbky +uKKISHqVJuw/vXHl1jNibEo9+JuQ88VNuAcm7WpGUogeCa2iAlPTckPZei+MwZ8w +tpvxTyYlZEC8DWzY1VC29+W2N5cvh01e2E3Ql08W1zL63dqrgdEZ3VWjzooYi4ep +BmMXTvouW+Flyvcw/0oTcfN0biDIt0mCkZ5CQVjfGL9DTOYteR5hw+k= +-----END CERTIFICATE----- diff --git a/kubernetes/aaf/charts/aaf-sms/resources/certs/org.onap.aaf-sms.key b/kubernetes/aaf/charts/aaf-sms/resources/certs/org.onap.aaf-sms.key new file mode 100644 index 0000000000..649387ba04 --- /dev/null +++ b/kubernetes/aaf/charts/aaf-sms/resources/certs/org.onap.aaf-sms.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCfE4OeIqG6k+8a +nbtH1fGiH5i33ZvgXEDZG59u91FILiaXc33Us4kCFK/DSF9CvIxhSBgGYp44t1qr +HK/3ikqzEsmJr7vGkGH1eyz1xp9JeWhKdDNPKtOuvqyYudq4ThewC8gR5WRV5+xV +dvXBn5/UE5EK2F8YwKem+ZUL5WgwgaytT7Di8TMUWY/sE9sTgeVRb8sZJl9coIw+ +FCLnNym6TE4SUzrdmmbjDwX7iBpNVnh4/k9Uawf5y01WCXrLiGN0MziVy6QyeUzp +BHPnPpFnOgOoaaQ0cUtquuVjFdxlZk6ELyaztO8Y/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XMvr+e2B/oepyHz2y0vNUKtWAmqUgUCQOZQKBgDEjqlU91hQka8gFEjEn +c0uEhxdhBv7qB54BpG4Ea1o8g0/ZVR1ANqyEDUoF+JvdnL+UZGUs2ghvDPJAPERW +MmClS/n1EebB7slh/B2C4hlvb7YFlY3+YMLLq4ofU9shDcTXrrOq4DMZ7oxJ+Ufv +z6MfQL0GTwvu0rc6yriTMetO +-----END PRIVATE KEY----- diff --git a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml index ca35fdc55a..b8886e2332 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml @@ -80,6 +80,9 @@ spec: subPath: smsconfig.json - mountPath: /sms/auth name: {{ include "common.fullname" . }}-auth + - mountPath: /sms/certs + name: {{ include "common.fullname" . }}-certs + readOnly: true resources: {{ include "common.resources" . | indent 10 }} {{- if .Values.nodeSelector }} @@ -100,5 +103,8 @@ spec: - name: {{ include "common.fullname" . }}-auth persistentVolumeClaim: claimName: {{ include "common.fullname" . }} + - name: {{ include "common.fullname" . }}-certs + secret: + secretName: {{ include "common.fullname" . }}-certs imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/aaf/charts/aaf-sms/templates/job.yaml b/kubernetes/aaf/charts/aaf-sms/templates/job.yaml index a5446ab20e..a3b1fa9818 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/job.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/job.yaml @@ -70,6 +70,9 @@ spec: readOnly: true - mountPath: /preload/config name: {{ include "common.name" . }}-preload + - mountPath: /sms/certs + name: {{ include "common.fullname" . }}-certs + readOnly: true resources: {{ include "common.resources" . | indent 10 }} {{- if .Values.nodeSelector }} @@ -87,6 +90,9 @@ spec: - name : {{ include "common.name" . }}-preload configMap: name: {{ include "common.fullname" . }}-preload + - name: {{ include "common.fullname" . }}-certs + secret: + secretName: {{ include "common.fullname" . }}-certs restartPolicy: OnFailure imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml b/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml new file mode 100644 index 0000000000..1ee1fa6c12 --- /dev/null +++ b/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml @@ -0,0 +1,28 @@ +{{/* +# Copyright 2020 Orange +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*/}} + +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "common.fullname" . }}-certs + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +data: +{{ tpl (.Files.Glob "resources/certs/*").AsSecrets . | indent 2 }} diff --git a/kubernetes/aaf/charts/aaf-sms/values.yaml b/kubernetes/aaf/charts/aaf-sms/values.yaml index de005ed366..06833c8d28 100644 --- a/kubernetes/aaf/charts/aaf-sms/values.yaml +++ b/kubernetes/aaf/charts/aaf-sms/values.yaml @@ -39,8 +39,8 @@ debugEnabled: false config: smsdbaddress: "http://aaf-sms-db:8200" cafile: "/sms/certs/aaf_root_ca.cer" - servercert: "/sms/certs/aaf-sms.pub" - serverkey: "/sms/certs/aaf-sms.pr" + servercert: "/sms/certs/org.onap.aaf-sms.crt" + serverkey: "/sms/certs/org.onap.aaf-sms.key" password: "c2VjcmV0bWFuYWdlbWVudHNlcnZpY2VzZWNyZXRwYXNzd29yZA==" # subchart configuration |