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

[rhobs/stage]: fix tenants secret #669

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ require (
)

// Delete when https://github.com/observatorium/observatorium/pull/543 is merged to main branch
replace github.com/observatorium/observatorium => github.com/thibaultmg/observatorium v0.0.0-20231220163412-1ab33d0d2970
replace github.com/observatorium/observatorium => github.com/thibaultmg/observatorium v0.0.0-20240105161024-101d341092f9
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,8 @@ github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I=
github.com/thibaultmg/observatorium v0.0.0-20231220163412-1ab33d0d2970 h1:s8EY8D5uaMn2WrxdLhM36XFDPveL39e6ufpO0X8RbXQ=
github.com/thibaultmg/observatorium v0.0.0-20231220163412-1ab33d0d2970/go.mod h1:VFiHODMs9Mnd2DGCtYBr6qdKBZwj6gmwgxilTmnv4EE=
github.com/thibaultmg/observatorium v0.0.0-20240105161024-101d341092f9 h1:A+TcmA/7KHIAvUce9049FRZK1jBdKDPYBCyq4j5ff18=
github.com/thibaultmg/observatorium v0.0.0-20240105161024-101d341092f9/go.mod h1:VFiHODMs9Mnd2DGCtYBr6qdKBZwj6gmwgxilTmnv4EE=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE=
github.com/tinylib/msgp v1.1.0/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@ objects:
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: avalanche
app.kubernetes.io/part-of: observatorium
- apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: api
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: observatorium-api
app.kubernetes.io/part-of: observatorium
app.kubernetes.io/version: main-2023-12-06-62d7703
name: observatorium-ams-oidc-client-secret
namespace: rhobs
stringData:
client-id: ${AMS_OIDC_CLIENT_ID}
client-secret: ${AMS_OIDC_CLIENT_SECRET}
issuer-url: ${AMS_OIDC_ISSUER_URL}
- apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -459,17 +475,17 @@ objects:
valueFrom:
secretKeyRef:
key: client-id
name: observatorium-api-oidc-client
name: observatorium-ams-oidc-client-secret
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
key: client-secret
name: observatorium-api-oidc-client
name: observatorium-ams-oidc-client-secret
- name: ISSUER_URL
valueFrom:
secretKeyRef:
key: issuer-url
name: observatorium-api-oidc-client
name: observatorium-ams-oidc-client-secret
image: quay.io/observatorium/opa-ams:master-2022-11-03-222daab
livenessProbe:
failureThreshold: 10
Expand Down Expand Up @@ -511,9 +527,9 @@ objects:
- configMap:
name: observatorium-rbac
name: rbac-config
- configMap:
name: observatorium-tenants
name: tenants
- name: tenants
secret:
secretName: observatorium-tenants
- apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -1502,46 +1518,57 @@ objects:
name: observatorium-rbac
namespace: rhobs
- apiVersion: v1
data:
kind: Secret
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: api
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: observatorium-api
app.kubernetes.io/part-of: observatorium
app.kubernetes.io/version: main-2023-12-06-62d7703
name: observatorium-tenants
namespace: rhobs
stringData:
config.yaml: |
tenants:
- name: appsre
id: 3833951d-bede-4a53-85e5-f73f4913973f
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/appsre/callback
usernameClaim: preferred_username
- name: cnvqe
id: 9ca26972-4328-4fe3-92db-31302013d03f
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/cnvqe/callback
usernameClaim: preferred_username
- name: dptp
id: AC879303-C60F-4D0D-A6D5-A485CFD638B8
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/dptp/callback
usernameClaim: preferred_username
- name: odfms
id: 99c885bc-2d64-4c4d-b55e-8bf30d98c657
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/odfms/callback
usernameClaim: preferred_username
- name: osd
id: 770c1124-6ae8-4324-a9d4-9ce08590094b
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/osd/callback
usernameClaim: preferred_username
Expand All @@ -1554,32 +1581,32 @@ objects:
- name: psiocp
id: 37b8fd3f-56ff-4b64-8272-917c9b0d1623
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/psiocp/callback
usernameClaim: preferred_username
- name: reference-addon
id: d17ea8ce-d4c6-42ef-b259-7d10c9227e93
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/reference-addon/callback
usernameClaim: preferred_username
- name: rhacs
id: 1b9b6e43-9128-4bbf-bfff-3c120bbe6f11
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/rhacs/callback
usernameClaim: preferred_username
- name: rhel
id: ""
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/rhel/callback
usernameClaim: preferred_username
Expand All @@ -1590,47 +1617,36 @@ objects:
- name: rhobs
id: 0fc2b00e-201b-4c17-b9f2-19d91adc4fd2
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
groupClaim: email
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/rhobs/callback
usernameClaim: preferred_username
- name: rhods
id: 8ace13a2-1c72-4559-b43d-ab43e32a255a
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/rhods/callback
usernameClaim: preferred_username
- name: rhtap
id: 0031e8d6-e50a-47ea-aecb-c7e0bd84b3f1
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/rhtap/callback
usernameClaim: preferred_username
- name: telemeter
id: ""
oidc:
clientID: ${CLIENT_ID}
clientSecret: ${CLIENT_SECRET}
clientID: ${TENANT_OIDC_CLIENT_ID}
clientSecret: ${TENANT_OIDC_CLIENT_SECRET}
issuerURL: https://sso.redhat.com/auth/realms/redhat-external
redirectURL: https://observatorium-mst.api.stage.openshift.com/oidc/telemeter/callback
usernameClaim: preferred_username
kind: ConfigMap
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: api
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: observatorium-api
app.kubernetes.io/part-of: observatorium
app.kubernetes.io/version: main-2023-12-06-62d7703
name: observatorium-tenants
namespace: rhobs
- apiVersion: v1
data:
queries.yaml: |
Expand Down Expand Up @@ -2141,6 +2157,9 @@ objects:
app.kubernetes.io/name: memcached
app.kubernetes.io/part-of: observatorium
parameters:
- name: AMS_OIDC_CLIENT_ID
- name: AMS_OIDC_CLIENT_SECRET
- name: AMS_OIDC_ISSUER_URL
- name: CACHE_CPU_REQUEST
value: 500m
- name: CACHE_MEMORY_LIMIT
Expand All @@ -2159,3 +2178,5 @@ parameters:
value: 1Gi
- name: OBSAPI_REPLICAS
value: "1"
- name: TENANT_OIDC_CLIENT_ID
- name: TENANT_OIDC_CLIENT_SECRET
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ objects:
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: alertmanager
app.kubernetes.io/part-of: observatorium
serviceName: observatorium-alertmanager
serviceName: observatorium-alertmanager-cluster
template:
metadata:
creationTimestamp: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ objects:
spec:
ports:
- name: http
port: 9090
port: 10902
protocol: TCP
targetPort: 9090
targetPort: 10902
- name: https
port: 8443
protocol: TCP
Expand Down Expand Up @@ -362,19 +362,19 @@ objects:
failureThreshold: 8
httpGet:
path: /-/healthy
port: 9090
port: 10902
periodSeconds: 30
timeoutSeconds: 1
name: thanos
ports:
- containerPort: 9090
- containerPort: 10902
name: http
protocol: TCP
readinessProbe:
failureThreshold: 20
httpGet:
path: /-/ready
port: 9090
port: 10902
periodSeconds: 5
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ objects:
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: avalanche
app.kubernetes.io/part-of: observatorium
- apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: api
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: observatorium-api
app.kubernetes.io/part-of: observatorium
app.kubernetes.io/version: main-2023-12-06-62d7703
name: observatorium-ams-oidc-client-secret
stringData:
client-id: ${AMS_OIDC_CLIENT_ID}
client-secret: ${AMS_OIDC_CLIENT_SECRET}
issuer-url: ${AMS_OIDC_ISSUER_URL}
- apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -443,14 +458,17 @@ objects:
valueFrom:
secretKeyRef:
key: client-id
name: observatorium-ams-oidc-client-secret
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
key: client-secret
name: observatorium-ams-oidc-client-secret
- name: ISSUER_URL
valueFrom:
secretKeyRef:
key: issuer-url
name: observatorium-ams-oidc-client-secret
image: quay.io/observatorium/opa-ams:master-2022-11-03-222daab
livenessProbe:
failureThreshold: 10
Expand Down Expand Up @@ -489,9 +507,9 @@ objects:
serviceAccountName: observatorium-api
terminationGracePeriodSeconds: 120
volumes:
- configMap:
name: observatorium-tenants
name: tenants
- name: tenants
secret:
secretName: observatorium-tenants
- apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -970,10 +988,7 @@ objects:
app.kubernetes.io/name: rules-obsctl-reloader
app.kubernetes.io/part-of: observatorium
- apiVersion: v1
data:
config.yaml: |
tenants: []
kind: ConfigMap
kind: Secret
metadata:
creationTimestamp: null
labels:
Expand All @@ -983,6 +998,9 @@ objects:
app.kubernetes.io/part-of: observatorium
app.kubernetes.io/version: main-2023-12-06-62d7703
name: observatorium-tenants
stringData:
config.yaml: |
tenants: []
- apiVersion: v1
data:
queries.yaml: |
Expand Down Expand Up @@ -1472,6 +1490,9 @@ objects:
app.kubernetes.io/name: memcached
app.kubernetes.io/part-of: observatorium
parameters:
- name: AMS_OIDC_CLIENT_ID
- name: AMS_OIDC_CLIENT_SECRET
- name: AMS_OIDC_ISSUER_URL
- name: CACHE_CPU_REQUEST
value: 500m
- name: CACHE_MEMORY_LIMIT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ objects:
app.kubernetes.io/instance: observatorium
app.kubernetes.io/name: alertmanager
app.kubernetes.io/part-of: observatorium
serviceName: observatorium-alertmanager
serviceName: observatorium-alertmanager-cluster
template:
metadata:
creationTimestamp: null
Expand Down
Loading
Loading