Skip to content

Commit bea64ad

Browse files
committed
fix(charts): reserved names miss
1 parent cca4b2d commit bea64ad

3 files changed

Lines changed: 4 additions & 78 deletions

File tree

charts/passport/templates/_helpers.tpl

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -100,77 +100,3 @@ volumes:
100100
configMap:
101101
name: passport-config
102102
{{- end }}
103-
104-
{{/* Generate passport default reserved usernames */}}
105-
{{- define "passport.defaultReservedUsernames" }}
106-
admin
107-
administrator
108-
anonymous
109-
asshole
110-
bastard
111-
billing
112-
callback
113-
cancer
114-
cocaine
115-
contact
116-
coronavirus
117-
cracker
118-
database
119-
developer
120-
doopai
121-
drycc
122-
email
123-
explore
124-
faggot
125-
feedback
126-
hacker
127-
helpdesk
128-
hentai
129-
heroin
130-
hitler
131-
homophobic
132-
horny
133-
idiot
134-
killer
135-
login
136-
logout
137-
moderator
138-
murder
139-
nigger
140-
nigga
141-
official
142-
payment
143-
pedophile
144-
pornhub
145-
profile
146-
racist
147-
rapist
148-
recovery
149-
register
150-
retard
151-
scammer
152-
security
153-
service
154-
settings
155-
sexist
156-
signup
157-
signin
158-
slave
159-
spammer
160-
staff
161-
suicide
162-
support
163-
system
164-
terrorism
165-
trending
166-
undefined
167-
update
168-
username
169-
verification
170-
verify
171-
webmaster
172-
webhook
173-
wetback
174-
whore
175-
xvideos
176-
{{- end }}

charts/passport/templates/passport-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ data:
88
init-applications.json: |-
99
{{ toPrettyJson .Values.initApplications | indent 4 }}
1010
reserved-name-patterns.txt: |-
11-
{{- if .Values.config.reservedNames }}
12-
{{- (tpl .Values.config.reservedNames $) | nindent 4 }}
11+
{{- if .Values.reservedNames }}
12+
{{- (tpl .Values.reservedNames $) | nindent 4 }}
1313
{{- else}}
1414
{{- .Files.Get "files/reserved-name-patterns.txt" | nindent 4 }}
1515
{{- end }}

charts/passport/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ environment:
8686
adminUsername: "admin"
8787
adminPassword: "admin"
8888
adminEmail: "admin@email.com"
89-
# Reserved usernames
90-
reservedUsernames: ""
89+
# Reserved names
90+
reservedNames: ""
9191
# The following configurations to initialize oauth2 application
9292
# Names are all lowercase letters
9393
# The key and secret are generated automatically if they are empty

0 commit comments

Comments
 (0)