Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
335 commits
Select commit Hold shift + click to select a range
53709cb
social profile api
Irioth Feb 27, 2020
d5bb21c
fix: error redirect store errors
Irioth Feb 27, 2020
c11ba44
fix: changed captcha token and action names, response 204 to json
cheebo Feb 27, 2020
6200e07
fix: fixed password reset param names
cheebo Feb 27, 2020
c32d32f
fix: fixed password reset param names
cheebo Feb 27, 2020
4786d82
fix: fixed error message on unregistered email
cheebo Feb 27, 2020
62cebb7
fix: fixed response code
cheebo Feb 27, 2020
eb312f0
feat: check app captcha enabled before check it
cheebo Feb 27, 2020
16d56c9
link api
Irioth Feb 28, 2020
7ed911c
merge with master
Irioth Feb 28, 2020
dcad6ff
social signup
Irioth Feb 28, 2020
246a200
Merge pull request #14 from qilin/social-fb
Irioth Feb 28, 2020
7534028
fix: fixed login url on password reset
cheebo Mar 2, 2020
d649ad9
refactor
Irioth Mar 3, 2020
8fcc47f
refactor: password reset functions moved into separate file
cheebo Mar 3, 2020
26ec778
fix: fixed error messages, comments and wrong field names clientid ->…
cheebo Mar 3, 2020
08574a5
refactor: removed unused code
cheebo Mar 3, 2020
9e7e88d
refactor: changed error type in ChangePasswordManager.ChangePasswordC…
cheebo Mar 3, 2020
011eca1
fix: fixed validation rule in ChangePasswordStartForm
cheebo Mar 3, 2020
c63a67b
added comments, rename Link method
Irioth Mar 4, 2020
baeaf2f
attach error desc to invalid request and invalid params
Irioth Mar 4, 2020
1e4c2de
fix: fixed error message format
cheebo Mar 4, 2020
6df8c43
fix: fixed tests in pkg/manager/change_password_test.go
cheebo Mar 4, 2020
ecf0b3a
unique device id cookie
Irioth Mar 4, 2020
9fa5fdd
use device id middleware
Irioth Mar 4, 2020
8831adb
Merge pull request #15 from qilin/reset-password
cheebo Mar 4, 2020
a6195b4
Merge branch 'master' into social-link
Irioth Mar 4, 2020
34223f7
Merge pull request #16 from qilin/social-link
Irioth Mar 4, 2020
c3bb372
Done
behuamuh Mar 5, 2020
09d23a8
Merge pull request #18 from qilin/features/link-unlink-email-templates
ramenski Mar 5, 2020
cfffcdf
improve auth log
Irioth Mar 5, 2020
2a883aa
remove unused collections from mongo
Irioth Mar 5, 2020
0359e5d
Fixed
behuamuh Mar 5, 2020
acb673a
fix unhandled error if DeviceID not initialized
Irioth Mar 5, 2020
0d12f94
Merge pull request #19 from qilin/bugs/templates-contact-us-fix
behuamuh Mar 5, 2020
3e9e810
Merge branch 'master' into device_id
Irioth Mar 5, 2020
041cd6e
fix errors
Irioth Mar 5, 2020
cd38d2c
Merge pull request #17 from qilin/device_id
Irioth Mar 5, 2020
28e3b60
remove captcha on social signup
Irioth Mar 6, 2020
47d2443
handle fb cancel
Irioth Mar 6, 2020
9532584
Merge pull request #20 from qilin/fb-bugs
Irioth Mar 6, 2020
0581ab5
fix: added mail templates variables to helm values
cheebo Mar 10, 2020
50f81f7
fix: fixed error response on resetting password for nonexistent mail
cheebo Mar 10, 2020
3256652
resolve micro dependency issue
Irioth Mar 11, 2020
70dccce
merge with master
Irioth Mar 11, 2020
66a0fa6
check for already existed link
Irioth Mar 11, 2020
a89f995
don't authorize after password reset
Irioth Mar 11, 2020
dc1a8fa
Merge pull request #24 from qilin/reset_no_login
cheebo Mar 11, 2020
91d4443
api and doc
Irioth Mar 11, 2020
5a2c885
auth for manage api
Irioth Mar 11, 2020
4bed532
add challenge to reset link
Irioth Mar 11, 2020
a8afb56
Merge pull request #25 from qilin/reset_no_login
Irioth Mar 11, 2020
8b92875
api for get previous login
Irioth Mar 11, 2020
8ed79a8
Merge branch 'master' into prev-login
Irioth Mar 11, 2020
c7f42f1
Merge branch 'master' into onesocial
Irioth Mar 12, 2020
262222a
fix already exist check
Irioth Mar 12, 2020
a3c6c15
Merge pull request #23 from qilin/onesocial
Irioth Mar 12, 2020
9cff059
Merge branch 'master' into prev-login
Irioth Mar 12, 2020
4e8a3aa
init login apis
Irioth Mar 12, 2020
47236e9
feat: drop user's consent and auth sessions, execute user.logout webhook
cheebo Mar 12, 2020
e429fa0
make captcha action optional
Irioth Mar 12, 2020
78bc4b4
support recaptcha2
Irioth Mar 12, 2020
abf3b33
Merge pull request #26 from qilin/recaptcha2
Irioth Mar 12, 2020
a50252e
refactor: changed hydra version from 1.0.0-rc9 to 1.3.2
cheebo Mar 12, 2020
dd49b62
merge master
cheebo Mar 13, 2020
326d16b
fix: fixed mock for HydraAdminApi
cheebo Mar 13, 2020
9a6760a
geoip service integration
Irioth Mar 13, 2020
7cb3910
merge with master
Irioth Mar 13, 2020
19ff929
update example in doc
Irioth Mar 13, 2020
9b684d6
update example in doc
Irioth Mar 13, 2020
2dc6939
Merge pull request #22 from qilin/authlog
Irioth Mar 13, 2020
b244cca
merge master
cheebo Mar 13, 2020
f94c05f
fix: fixed webhook structure
cheebo Mar 13, 2020
5c7a151
Merge branch 'master' into prev-login
Irioth Mar 16, 2020
021f9fa
fix remember fuction
Irioth Mar 16, 2020
afc4dc6
fix: fixed go.mod and added todo comment
cheebo Mar 16, 2020
ccb2cc6
sessions doc
Irioth Mar 17, 2020
612188e
update sessions docs
Irioth Mar 17, 2020
3ef9648
refactor: fixed go modules deps
cheebo Mar 17, 2020
2053157
fix test
Irioth Mar 17, 2020
881ea7a
enable ingress access to logout urls
Irioth Mar 17, 2020
0092cb3
Merge branch 'prev-login' into logout
Irioth Mar 17, 2020
f27ecc2
simple logout implementation
Irioth Mar 17, 2020
1a88b77
Merge pull request #27 from qilin/task-195650
cheebo Mar 17, 2020
a4ad351
Merge pull request #28 from qilin/prev-login
cheebo Mar 17, 2020
6c66db5
Merge branch 'master' into logout
Irioth Mar 17, 2020
2ab249d
Merge pull request #29 from qilin/logout
Irioth Mar 17, 2020
bd79b9c
store device ids for all logins, add to auth log
Irioth Mar 18, 2020
23da839
feat: social login for launcher
cheebo Mar 18, 2020
d10c633
always remember consent
Irioth Mar 18, 2020
2a25e24
Merge pull request #30 from qilin/device_id_fixes
Irioth Mar 18, 2020
455d4a6
Merge pull request #31 from qilin/prompt-none
Irioth Mar 18, 2020
a627a27
refactor: changed redirect url for launcher social login
cheebo Mar 19, 2020
6cf0a3c
set remember time to 30 days
Irioth Mar 19, 2020
65360f0
format code + remmeber time to const
Irioth Mar 19, 2020
6c671e9
refactor: fixed InternalRegistry mock
cheebo Mar 19, 2020
ac27d55
refactor: added commands to Makefile
cheebo Mar 19, 2020
a1c0fff
refactor: fixed potential error in lazy loading
cheebo Mar 19, 2020
1fd5dda
refactor: simplified launcher-state logic
cheebo Mar 19, 2020
0161358
refactor: prettify LauncherTokecnService interface
cheebo Mar 19, 2020
fb5b25c
refactor: prettify OneTimeTokenServiceInterface
cheebo Mar 19, 2020
793a445
refactor: added launcher token url param
cheebo Mar 19, 2020
3eb0032
bypass https proto check
Irioth Mar 19, 2020
e59b1d4
feat: added social login confirmation endpoint for launcher auth
cheebo Mar 19, 2020
ddfd114
Merge pull request #32 from qilin/task-195793
cheebo Mar 20, 2020
49b4138
fix: fixed application update
cheebo Mar 20, 2020
8d9aeb3
add username to id token
Irioth Mar 21, 2020
638055d
update go.mod.cache
Irioth Mar 21, 2020
adc99a8
global logger and request context
Irioth Mar 23, 2020
aecf07e
context, logging, errors
Irioth Mar 23, 2020
27ba456
new styled logs
Irioth Mar 23, 2020
005b830
Merge pull request #34 from qilin/logs
Irioth Mar 23, 2020
4d2eaad
Merge pull request #33 from qilin/fixes
Irioth Mar 23, 2020
9a8939e
Merge pull request #35 from qilin/sessions
Irioth Mar 23, 2020
2f2b4ad
fix: fixed webhook filling
cheebo Mar 23, 2020
28c3d8f
login hint api
Irioth Mar 24, 2020
62bb8ac
sorting in auth log
Irioth Mar 24, 2020
f6d3ce5
authlog by device
Irioth Mar 24, 2020
2dcacf4
sort auth log by timestamp
Irioth Mar 24, 2020
bcf8595
Merge pull request #36 from qilin/login_hint
Irioth Mar 24, 2020
82bce0c
post logout redirect
Irioth Mar 25, 2020
ff30232
Merge pull request #37 from qilin/logout_redirect
Irioth Mar 25, 2020
f8cc97f
feat: launcher websockets
cheebo Mar 26, 2020
d81017f
docker compose
cheebo Mar 26, 2020
8393e90
fixed docker file and makefile
cheebo Mar 26, 2020
df5d9bd
nginx config for ws
cheebo Mar 26, 2020
2053910
fixed ws client init
cheebo Mar 26, 2020
a9405dd
refactor: url json tag to omitempty
cheebo Mar 26, 2020
2c4a54a
refactor: regenerate mocks
cheebo Mar 27, 2020
1a63b3f
refactor: fixed early login accept on social auth in launcher
cheebo Mar 30, 2020
25dcf15
Merge branch 'websocket-tests' into bug-196045
cheebo Mar 30, 2020
ea9bc41
feat: added api to cancel social login in launcher
cheebo Mar 31, 2020
c13b848
refactor: removed excess error logging
cheebo Mar 31, 2020
726256c
refactor: removed obsolet todo
cheebo Mar 31, 2020
4f7f295
refactor: removed unused url variable
cheebo Mar 31, 2020
cbc45e5
refactor: centrifugo to provide websockets
cheebo Apr 2, 2020
603619c
refactor: removed obsolet launcher server service
cheebo Apr 2, 2020
f384811
refactor: fixed tests
cheebo Apr 2, 2020
ff23a10
refactor: added helm variables
cheebo Apr 2, 2020
8e9e482
merge websockets
cheebo Apr 2, 2020
7b4c7f2
refactor: removed unused prints
cheebo Apr 3, 2020
a965f46
refactor: added variable to docker-compose
cheebo Apr 3, 2020
32c7c96
Merge branch 'websockets' into bug-196045
cheebo Apr 3, 2020
2b0af40
refactor: removed obsolet service
cheebo Apr 3, 2020
53b09a7
Merge pull request #38 from qilin/websockets
cheebo Apr 3, 2020
863f65b
refactor: fixed centirfugo auth handler and updated docker-compose co…
cheebo Apr 3, 2020
80b83a3
Merge branch 'websockets' into bug-196045
cheebo Apr 3, 2020
529a689
Merge pull request #40 from qilin/websockets
cheebo Apr 3, 2020
2995169
fix: fixed url in ws
cheebo Apr 3, 2020
9ae686c
fix: fixed error logging and error type
cheebo Apr 3, 2020
691f5ad
fix: removed tmp code
cheebo Apr 3, 2020
f8d8380
Merge pull request #41 from qilin/bug-196045
cheebo Apr 6, 2020
d95a3e4
refactor: restored code lost on merge
cheebo Apr 6, 2020
d11c7c3
Merge pull request #42 from qilin/bug-196045
cheebo Apr 6, 2020
97363fc
refactor: restored code lost on merge
cheebo Apr 6, 2020
3ffcc48
Merge branch 'bug-196045'
cheebo Apr 6, 2020
2b18e85
fix: fixed type cast
cheebo Apr 8, 2020
168a215
refactor: permanent to temporary redirect
cheebo Apr 10, 2020
cc52833
Merge pull request #43 from qilin/social-reauth-bug
cheebo Apr 10, 2020
77190c8
attach users to space
Irioth Apr 13, 2020
abd72fb
fix: ws notification on challenge expiration
cheebo Apr 14, 2020
afddfd3
Merge pull request #44 from qilin/qil-10147
cheebo Apr 15, 2020
4585bc5
docs: update readme
snezhana-dorogova Apr 15, 2020
926f039
Merge branch 'master' into docs
snezhana-dorogova Apr 17, 2020
771428d
feat: grpc service to manage user profile
cheebo Apr 17, 2020
a2ebc6f
id providers to space
Irioth Apr 20, 2020
ec42170
refactor: refactored repos and services
cheebo Apr 20, 2020
b0c564d
refactor: removed obsolet code
cheebo Apr 20, 2020
b1e839a
fix tests
Irioth Apr 21, 2020
67233a6
refactor: changed service method names
cheebo Apr 21, 2020
50b008f
Merge branch 'master' into space_user
Irioth Apr 21, 2020
47a8a5e
one compose with centrifugo
Irioth Apr 21, 2020
a69294f
feat: added user identities
cheebo Apr 22, 2020
21b9230
fix bugs
Irioth Apr 22, 2020
9b2972a
feat: set password
cheebo Apr 22, 2020
d8e709d
remove empty migrations, revert dockerfile to self build
Irioth Apr 23, 2020
7cb0523
Merge pull request #47 from qilin/space_user_compose
Irioth Apr 23, 2020
933706d
fix manage identity providers apis
Irioth Apr 23, 2020
f924098
renew mocks fix tests
Irioth Apr 23, 2020
021664e
Merge pull request #46 from qilin/space_user
Irioth Apr 23, 2020
02ab0f1
complete auth process from launcher
Irioth Apr 24, 2020
1a3d15c
minor fixes, alias for oauth apis
Irioth Apr 24, 2020
692af4d
fix check for free usernames
Irioth Apr 24, 2020
8344030
fix /api/login
Irioth Apr 24, 2020
acfe96a
Merge branch 'grpc-2' into grpc
cheebo Apr 27, 2020
033a906
Merge pull request #48 from qilin/fastlogin
Irioth Apr 28, 2020
c2472ed
docs: update readme
snezhana-dorogova Apr 29, 2020
c6d6619
docs: update readme
snezhana-dorogova Apr 30, 2020
1452bf3
merge with master
Irioth May 27, 2020
6672a10
remove micro v2, some fix to profile
Irioth May 27, 2020
261ce81
restore static selector
Irioth May 27, 2020
14aa279
add grpc service to helm chart
Irioth May 27, 2020
2f0af88
fix profile update
Irioth May 27, 2020
635958f
remove empty file
Irioth May 28, 2020
c8d7e42
admin server init
Irioth May 29, 2020
7ccf42b
update new domain structs, added spaces, fix change password
Irioth May 30, 2020
76e8e94
Merge branch 'grpc_password' into admin
Irioth May 30, 2020
92c36c8
spaces and providers in admin server
Irioth May 31, 2020
3fb7d10
Merge pull request #49 from qilin/grpc_std
Irioth Jun 1, 2020
db0b5a6
create space, application repo, build admin ui
Irioth Jun 1, 2020
f405b54
Merge pull request #50 from qilin/grpc_password
salyakhov-art Jun 2, 2020
38e5937
added comments in Dockerfile
Irioth Jun 2, 2020
4552d55
support currency in profile
Irioth Jun 2, 2020
bd24c81
Merge pull request #52 from qilin/profile_currency
Irioth Jun 2, 2020
fac9e2d
Merge branch 'master' into admin
Irioth Jun 2, 2020
abb966c
Added admin container to backend pod, etc changes
atlix Jun 2, 2020
276624f
Typo fix
atlix Jun 2, 2020
fb9b9ca
change admin port
Irioth Jun 2, 2020
ef0c7ea
protect admin with basic auth
Irioth Jun 3, 2020
c326ef4
Merge pull request #51 from qilin/admin
Irioth Jun 3, 2020
71465f5
retrive social connections
Irioth Jun 3, 2020
c3fc0fe
update spaces in admin panel
Irioth Jun 3, 2020
5e6246b
Merge pull request #53 from qilin/social
salyakhov-art Jun 3, 2020
bd0c57f
cut old space functionality
Irioth Jun 3, 2020
36ce91d
inject repository into old code
Irioth Jun 3, 2020
19609fb
add new spaces repo to identity providers service
Irioth Jun 4, 2020
03ad01b
add update identity providers
Irioth Jun 4, 2020
72a342e
remove dublicate method
Irioth Jun 4, 2020
c696830
Merge branch 'master' into rx
Irioth Jun 4, 2020
d8a241f
remove old code
Irioth Jun 4, 2020
87b6770
fix tests
Irioth Jun 4, 2020
a4807c4
remove password settings from application, update tests
Irioth Jun 5, 2020
d975a45
remove unused code
Irioth Jun 5, 2020
5435e3f
Merge pull request #54 from qilin/rx
Irioth Jun 5, 2020
5c71a61
remove old space model
Irioth Jun 5, 2020
45be18e
remove space options from app
Irioth Jun 5, 2020
06735a8
remove app id providers where possible
Irioth Jun 5, 2020
b93c6cb
fix email in user profile, tmp
Irioth Jun 10, 2020
f96a88d
Merge pull request #55 from qilin/rx
Irioth Jun 15, 2020
8fa8a1c
feat: set ptofile user phone
cheebo Jun 29, 2020
3b2f4cc
fix: fixed var name
cheebo Jun 29, 2020
35b7ad3
fix: restore go.mod.cache
cheebo Jun 29, 2020
e8687ea
fix: fixed generated pb.go
cheebo Jun 30, 2020
b0aa3b4
Merge pull request #57 from qilin/fix-grpc
salyakhov-art Jun 30, 2020
25e7a93
Update README.md
Irioth Jul 6, 2020
bfadb46
Merge pull request #58 from qilin/docs
Irioth Jul 6, 2020
dd41610
refactor: extended app view
cheebo Jul 28, 2020
1f94ba6
feat: user roles
cheebo Jul 30, 2020
6815bad
fix: fixed user repo
cheebo Jul 30, 2020
75e1e8f
refactor: roles in spaces and admin edit roles in spaces and users
cheebo Aug 5, 2020
a21c857
Merge pull request #59 from qilin/user-roles
cheebo Aug 6, 2020
74810ca
feat(admin): check user roles on update
cheebo Aug 6, 2020
ef14866
fix(admin): user app_id restored
cheebo Aug 6, 2020
fc6cc1e
error log
cheebo Aug 7, 2020
4887a89
added registration timestamp into profile
Irioth Oct 8, 2020
7a55aa4
Merge pull request #60 from qilin/profile_reg_time
salyakhov-art Oct 8, 2020
154c948
Stage env modification
Oct 9, 2020
254cd35
Ingress template fix
Oct 9, 2020
20e8680
Helm chart fix
Oct 9, 2020
62e3da4
Remove unused params from jenkinsfile
Oct 9, 2020
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
admin/node_modules
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
.idea
*.exe
*.exe~
*.out
/sandbox/
/bin/
/auth1
/bin/
109 changes: 0 additions & 109 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Protocol.One Auth1 service
name: p1auth1
name: qilinauth
version: 0.0.1
16 changes: 15 additions & 1 deletion .helm/templates/deployment-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,19 @@ spec:
initialDelaySeconds: 5
timeoutSeconds: 1
failureThreshold: 2
periodSeconds: 5
periodSeconds: 5
- name: {{ $deployment.name }}-admin
image: {{ $deployment.image }}:{{ $deployment.imageTag }}
command: ["/app/auth1"]
args: ["admin"]
env:
{{- range .Values.backend.env}}
- name: {{.}}
valueFrom:
secretKeyRef:
name: {{ $deploymentName }}-env
key: {{.}}
{{- end}}
ports:
- containerPort: {{ $deployment.adminPort }}

2 changes: 2 additions & 0 deletions .helm/templates/hydra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ spec:
- name: TRACING_PROVIDER_JAEGER_SAMPLING_VALUE
value: "1"
{{- end }}
- name: OAUTH2_LOGOUT_URL
value: "/oauth2/logout"
- name: BCRYPT_COST
value: "8"
- name: LOG_FORMAT
Expand Down
102 changes: 91 additions & 11 deletions .helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{- $endpoint := .Values.backend -}}
{{- $hydraSvc := printf "hydra-external-%s" .Release.Name}}
{{ $namespace := .Release.Namespace }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
Expand All @@ -25,31 +27,109 @@ spec:
- host: {{printf "%s%s" .Values.ingress.hostnamePrefix .Values.ingress.hostname }}
http:
paths:
- path: {{ .Values.ingress.path }}
backend:
serviceName: {{ .Release.Name }}
servicePort: {{ $endpoint.service.port }}
- path: /userinfo
backend:
serviceName: hydra
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /oauth2/auth
backend:
serviceName: hydra
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /oauth2/token
backend:
serviceName: hydra
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /oauth2/revoke
backend:
serviceName: hydra
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /oauth2/sessions/logout
backend:
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /oauth2/userinfo
backend:
serviceName: hydra
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /.well-known/jwks.json
backend:
serviceName: hydra
servicePort: 4444
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /.well-known/openid-configuration
backend:
serviceName: {{ $hydraSvc }}
servicePort: 4444
- path: /oauth2
backend:
serviceName: {{ .Release.Name }}
servicePort: {{ $endpoint.service.port }}
- path: /api
backend:
serviceName: {{ .Release.Name }}
servicePort: {{ $endpoint.service.port }}
- path: /
backend:
serviceName: store-auth-web
servicePort: 80
---
{{ if eq $namespace "default" }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ .Release.Name }}-admin
labels:
app: {{ .Chart.Name }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/issuer: {{ .Release.Name }}
ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/tls-acme: "true"
spec:
tls:
- hosts:
- {{printf "%s%s" .Values.ingress.hostnamePrefix .Values.ingress.adminHostname }}
secretName: {{ .Release.Name}}-admin-ssl-secret
rules:
- host: {{printf "%s%s" .Values.ingress.hostnamePrefix .Values.ingress.adminHostname }}
http:
paths:
- path: /
backend:
serviceName: {{ .Release.Name }}
servicePort: {{ $endpoint.adminPort }}
{{ end }}
---
{{ if eq $namespace "stg" }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ .Release.Name }}-admin
labels:
app: {{ .Chart.Name }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/issuer: {{ .Release.Name }}
ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/tls-acme: "true"
spec:
tls:
- hosts:
- {{printf "%s%s" .Values.ingress.hostnamePrefix .Values.ingress.adminStgHostname }}
secretName: {{ .Release.Name}}-admin-ssl-secret
rules:
- host: {{printf "%s%s" .Values.ingress.hostnamePrefix .Values.ingress.adminStgHostname }}
http:
paths:
- path: /
backend:
serviceName: {{ .Release.Name }}
servicePort: {{ $endpoint.adminPort }}
{{ end }}
31 changes: 30 additions & 1 deletion .helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,38 @@ metadata:
spec:
type: {{ $deployment.service.type }}
ports:
- port: {{ $deployment.service.port }}
- name: auth1
port: {{ $deployment.service.port }}
targetPort: {{ $deployment.port }}
protocol: {{ $deployment.service.protocol }}
- name: auth1-admin
port: {{ $deployment.adminPort }}
targetPort: {{ $deployment.adminPort }}
protocol: {{ $deployment.service.protocol }}
selector:
app: {{ .Chart.Name }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
role: {{ $deployment.role }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ $svcName }}-grpc
labels:
app: {{ .Chart.Name }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
role: {{ $deployment.role }}
spec:
type: {{ $deployment.service.type }}
ports:
- name: grpc
port: {{ $deployment.grpcApiPort }}
targetPort: {{ $deployment.grpcApiPort }}
protocol: {{ $deployment.service.protocol }}
selector:
app: {{ .Chart.Name }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down
22 changes: 19 additions & 3 deletions .helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
# Declare variables to be passed into your templates.

enableRedis: true
enableMongo: true
enableHydra: true
enableMongo: false
enableHydra: false
enableCertIssuer: true
enableHydraDebug: false

ingress:
hostname: auth1.tst.protocol.one
hostname: id.tst.qilin.super.com
adminHostname: admin-id.tst.qilin.super.com
stgHostname: id.stg.qilin.super.com
adminStgHostname: admin-id.stg.qilin.super.com
hostnamePrefix:
path: /

Expand All @@ -20,6 +23,8 @@ backend:
role: gobackend
image: "p1hub/p1auth1"
imageTag: latest
grpcApiPort: 5300
adminPort: 8081
port: 8080
replicas: 1
service:
Expand Down Expand Up @@ -57,6 +62,17 @@ backend:
- AUTHONE_MAILER_FROM
- AUTHONE_MAILER_SKIP_VERIFY
- AUTHONE_MIGRATION_DIRECT
- AUTHONE_AUTH_WEB_FORM_SDK_URL
- AUTHONE_RECAPTCHA_KEY
- AUTHONE_RECAPTCHA_SECRET
- AUTHONE_MAILTEMPLATES_PLATFORM_URL
- AUTHONE_MAILTEMPLATES_PLATFORM_NAME
- AUTHONE_MAILTEMPLATES_SUPPORT_PORTAL_URL
- AUTHONE_CENTRIFUGO_ADDR
- AUTHONE_CENTRIFUGO_API_KEY
- AUTHONE_CENTRIFUGO_HMAC_SECRET
- AUTHONE_CENTRIFUGO_SESSION_TTL
- AUTHONE_CENTRIFUGO_LAUNCHER_CHANNEL

hydra:
env:
Expand Down
Loading