feat: oidc config on harbor side

This commit is contained in:
2023-12-29 15:06:19 +00:00
parent c07c80c24f
commit 9baacd5597
4 changed files with 14 additions and 11 deletions

View File

@@ -1,12 +1,12 @@
{ {
"auth_mode": "oidc_auth", "auth_mode": "oidc_auth",
"oidc_name": "keycloak", "oidc_name": "AtlantisHQ Accounts",
"oidc_endpoint": "https://", "oidc_endpoint": "https://keycloak.atlantishq.de/realms/master",
"oidc_groups_claim": "groups", "oidc_groups_claim": "groups",
"oidc_admin_group": "admin", "oidc_admin_group": "admin",
"oidc_client_id": "defaultwithclientkey", "oidc_client_id": "z_harbor",
"oidc_client_secret": "asdfasdfasdfasdfasddfasdfasdfasdf", "oidc_client_secret": "HISTORY_PURGED_SECRET",
"oidc_scope": "openid,email,profile,offline_access", "oidc_scope": "openid,email,profile",
"oidc_verify_cert": "true", "oidc_verify_cert": "true",
"oidc_auto_onboard": "true", "oidc_auto_onboard": "true",
"oidc_user_claim": "preferred_username" "oidc_user_claim": "preferred_username"

View File

@@ -28,7 +28,7 @@ http:
# Uncomment external_url if you want to enable external proxy # Uncomment external_url if you want to enable external proxy
# And when it enabled the hostname will no longer used # And when it enabled the hostname will no longer used
external_url: https://harbor.atlantishq.de external_url: https://harbor-registry.atlantishq.de
# The initial password of Harbor admin # The initial password of Harbor admin
# It only works in first time to install harbor # It only works in first time to install harbor

View File

@@ -15,9 +15,10 @@
- name: Deploy OpenVPN configs - name: Deploy OpenVPN configs
template: template:
src: "{{ item }}.conf" src: "{{ item }}.conf"
dest: "/etc/openvpn/{{ item }}/" dest: "/etc/openvpn/{{ item }}-{{ item.dev_type }}/{{ item }}-{{ item.dev_type }}.conf"
with_items: with_items:
- atlantishq - { "name" : "atlantishq", "dev_type" : "tap", "port" : 7012 }
- { "name" : "atlantishq", "dev_type" : "tun", "port" : 7013 }
- name: Openvpn Mgnt interface Pass file - name: Openvpn Mgnt interface Pass file
copy: copy:

View File

@@ -2,13 +2,15 @@ server 172.16.1.0 255.255.255.0
#server-ipv6 fd2a:aef:608:1::/64 #server-ipv6 fd2a:aef:608:1::/64
dev athq_sheppyvpn dev athq_sheppyvpn
dev-type tap dev-type {{ dev_type }}
proto tcp proto {{ proto }}
port 7012 port {{ port }}
{% if dev_type == "tap" %}
topology subnet topology subnet
client-to-client client-to-client
{% endif %}
# disable logging # disable logging
#log /dev/null #log /dev/null