-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathapp-config-rhdh.yaml
More file actions
209 lines (209 loc) · 8.75 KB
/
Copy pathapp-config-rhdh.yaml
File metadata and controls
209 lines (209 loc) · 8.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
app:
support:
url: https://github.com/redhat-developer/rhdh/issues
items:
- title: Red Hat Developer Hub
links:
- url: https://access.redhat.com/products/red-hat-developer-hub
title: Product Information
baseUrl: ${RHDH_BASE_URL}
title: Red Hat Developer Hub
branding:
fullLogo: # QE Red Hat Developer Hub
light: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160pt%22%20height%3D%2280pt%22%20viewBox%3D%220%200%20160%2080%22%3E%3Cg%20fill%3D%22%23000%22%20style%3D%22text-align%3Astart%3Btext-align-last%3Aauto%22%20letter-spacing%3D%220%22%3E%3Ctext%20font-family%3D%22Red%20Hat%20Display%22%20font-size%3D%2240%22%20font-weight%3D%22700%22%20transform%3D%22translate(-.177%2054.263)%22%20word-spacing%3D%220%22%3E%3Ctspan%20x%3D%220%22%3EQE%3C%2Ftspan%3E%3C%2Ftext%3E%3Ctext%20font-family%3D%22Red%20Hat%20Text%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20transform%3D%22translate(57.565%2035.73)%22%20word-spacing%3D%220%22%3E%3Ctspan%20x%3D%220%22%3ERed%20Hat%3C%2Ftspan%3E%3Ctspan%20x%3D%220%22%20dy%3D%2218.516%22%3EDeveloper%20Hub%3C%2Ftspan%3E%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"
dark: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160pt%22%20height%3D%2280pt%22%20viewBox%3D%220%200%20160%2080%22%3E%3Cg%20fill%3D%22%23fff%22%20style%3D%22text-align%3Astart%3Btext-align-last%3Aauto%22%20letter-spacing%3D%220%22%3E%3Ctext%20font-family%3D%22Red%20Hat%20Display%22%20font-size%3D%2240%22%20font-weight%3D%22700%22%20transform%3D%22translate(-.177%2054.263)%22%20word-spacing%3D%220%22%3E%3Ctspan%20x%3D%220%22%3EQE%3C%2Ftspan%3E%3C%2Ftext%3E%3Ctext%20font-family%3D%22Red%20Hat%20Text%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20transform%3D%22translate(57.565%2035.73)%22%20word-spacing%3D%220%22%3E%3Ctspan%20x%3D%220%22%3ERed%20Hat%3C%2Ftspan%3E%3Ctspan%20x%3D%220%22%20dy%3D%2218.516%22%3EDeveloper%20Hub%3C%2Ftspan%3E%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"
iconLogo: # QE icon
light: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280pt%22%20height%3D%2280pt%22%20viewBox%3D%220%200%2080%2080%22%3E%3Ctext%20fill%3D%22%23000%22%20font-family%3D%22Red%20Hat%20Mono%22%20font-size%3D%2264%22%20font-weight%3D%22700%22%20letter-spacing%3D%220%22%20style%3D%22text-align%3Astart%3Btext-align-last%3Aauto%22%20transform%3D%22translate(1.6%2062.813)%22%20word-spacing%3D%220%22%3E%3Ctspan%20x%3D%220%22%3EQE%3C%2Ftspan%3E%3C%2Ftext%3E%3C%2Fsvg%3E"
dark: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280pt%22%20height%3D%2280pt%22%20viewBox%3D%220%200%2080%2080%22%3E%3Ctext%20fill%3D%22%23fff%22%20font-family%3D%22Red%20Hat%20Mono%22%20font-size%3D%2264%22%20font-weight%3D%22700%22%20letter-spacing%3D%220%22%20style%3D%22text-align%3Astart%3Btext-align-last%3Aauto%22%20transform%3D%22translate(1.6%2062.813)%22%20word-spacing%3D%220%22%3E%3Ctspan%20x%3D%220%22%3EQE%3C%2Ftspan%3E%3C%2Ftext%3E%3C%2Fsvg%3E"
theme:
light:
primaryColor: "#2A61A7"
headerColor1: "rgb(216, 98, 208)"
headerColor2: "rgb(216, 164, 98)"
navigationIndicatorColor: "rgb(98, 216, 105)"
palette:
rhdh:
general:
sidebarItemSelectedBackgroundColor: "#f0f0f0"
dark:
primaryColor: "#DC6ED9"
headerColor1: "rgb(190, 122, 45)"
headerColor2: "rgb(45, 190, 50)"
navigationIndicatorColor: "rgb(45, 113, 190)"
palette:
rhdh:
general:
sidebarItemSelectedBackgroundColor: "#333333"
backend:
baseUrl: ${RHDH_BASE_URL}
cors:
origin: ${RHDH_BASE_URL}
reading:
allow:
- host: "github.com"
- host: ${DH_TARGET_URL}
auth:
dangerouslyDisableDefaultAuthPolicy: true
externalAccess:
- type: static
options:
token: test-token
subject: test-subject
keys:
- secret: ${BACKEND_SECRET}
cache:
store: redis
connection: redis://${REDIS_USERNAME}:${REDIS_PASSWORD}@redis:6379
# redis sets are no longer supported from 1.5
# useRedisSets: true
integrations:
# Plugin: GitHub
github:
- host: github.com
apps:
- appId: ${GITHUB_APP_APP_ID}
clientId: ${GITHUB_APP_CLIENT_ID}
clientSecret: ${GITHUB_APP_CLIENT_SECRET}
webhookUrl: ${GITHUB_APP_WEBHOOK_URL}
webhookSecret: ${GITHUB_APP_WEBHOOK_SECRET}
privateKey: |
${GITHUB_APP_PRIVATE_KEY}
- appId: ${GITHUB_APP_JANUS_TEST_APP_ID}
clientId: ${GITHUB_APP_JANUS_TEST_CLIENT_ID}
clientSecret: ${GITHUB_APP_JANUS_TEST_CLIENT_SECRET}
webhookUrl: ${GITHUB_APP_WEBHOOK_URL}
webhookSecret: ${GITHUB_APP_WEBHOOK_SECRET}
privateKey: |
${GITHUB_APP_JANUS_TEST_PRIVATE_KEY}
bitbucketServer:
- host: bitbucket.com
apiBaseUrl: temp
username: temp
password: temp
auth:
# see https://backstage.io/docs/auth/ to learn about auth providers
environment: development
session:
secret: superSecretSecret
providers:
guest:
dangerouslyAllowOutsideDevelopment: true
google:
development:
clientId: ${GOOGLE_CLIENT_ID}
clientSecret: ${GOOGLE_CLIENT_SECRET}
github:
development:
clientSecret: ${GITHUB_OAUTH_APP_SECRET}
clientId: ${GITHUB_OAUTH_APP_ID}
callbackUrl: ${RHDH_BASE_URL}/api/auth/github/handler/frame
oidc:
development:
metadataUrl: ${KEYCLOAK_AUTH_BASE_URL}/auth/realms/${KEYCLOAK_AUTH_REALM}
clientId: ${KEYCLOAK_AUTH_CLIENTID}
clientSecret: ${KEYCLOAK_AUTH_CLIENT_SECRET}
prompt: auto
callbackUrl: ${RHDH_BASE_URL}/api/auth/oidc/handler/frame
signIn:
resolvers:
- resolver: emailLocalPartMatchingUserEntityName
signInPage: oidc
proxy:
skipInvalidProxies: true
# endpoints: {}
endpoints:
# Other Proxies
"/quay/api":
target: https://quay.io/
headers:
X-Requested-With: "XMLHttpRequest"
changeOrigin: true
secure: true
"/add-test-header":
target: ${RHDH_BASE_URL_HTTP}/api/simple-chat
credentials: forward
headers:
"x-proxy-test-header": "hello!"
catalog:
processingInterval: { hours: 24 }
import:
entityFilename: catalog-info.yaml
# pullRequestBranchName: rhdh-integration
pullRequestBranchName: backstage-integration
rules:
- allow: [API, Component, Group, Location, Resource, System, Template]
locations:
- type: url
target: https://github.com/redhat-developer/rhdh/blob/main/catalog-entities/all.yaml
- type: url
target: https://github.com/redhat-developer/red-hat-developer-hub-software-templates/blob/main/templates.yaml
- type: url
target: https://github.com/janus-qe/rhdh-test/blob/main/user.yml
rules:
- allow: [User]
- type: url
target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml
rules:
- allow: [User, Group]
providers:
# githubOrg:
# id: production
# githubUrl: "${GITHUB_URL}"
# orgs: ["${GITHUB_ORG}", "${GITHUB_ORG_2}"]
# Using Github GH_USER_ID account
keycloakOrg:
default:
baseUrl: ${KEYCLOAK_AUTH_BASE_URL}/auth
loginRealm: ${KEYCLOAK_AUTH_LOGIN_REALM}
realm: ${KEYCLOAK_AUTH_REALM}
clientId: ${KEYCLOAK_AUTH_CLIENTID}
clientSecret: ${KEYCLOAK_AUTH_CLIENT_SECRET}
schedule:
# Let's perform a single execution per test run
frequency: { hours: 24 }
timeout: { minutes: 1 }
badConfigForMetrics:
baseUrl: ${KEYCLOAK_AUTH_BASE_URL}/auth
loginRealm: ${KEYCLOAK_AUTH_LOGIN_REALM}
realm: ${KEYCLOAK_AUTH_REALM}
clientId: ${KEYCLOAK_AUTH_CLIENTID}
# Intentionally incorrect client secret for test purposes.
clientSecret: ABC
schedule:
# Let's perform a single execution to trigger the metrics fetch failure counter; next fetch will never happen again.
frequency: { hours: 24 }
timeout: { minutes: 1 }
initialDelay: { seconds: 15 }
dynatrace:
baseUrl: temp
argocd:
appLocatorMethods:
- type: "config"
instances:
- name: argoInstance1
url: temp
token: temp
- name: argoInstance2
url: temp
token: temp
permission:
enabled: false
buildInfo:
title: "RHDH Build info"
card:
TechDocs builder: "local"
Authentication provider: "Github"
RBAC: disabled
overrideBuildInfo: true
# Opt-out of database storage for user settings
userSettings:
persistence: browser
i18n:
locales:
- en
- de
- es
- fr
- it
- ja
defaultLocale: en