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

Add OpenID authentication support using a KeyCloak server #720

Merged
merged 70 commits into from
May 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
ff6685e
added userentity authentication type
fmartingr Mar 21, 2024
3b8b843
more descriptive error messages
fmartingr Mar 21, 2024
6f90dcc
handle login using openid from users file
fmartingr Mar 21, 2024
919149c
keycloak provisioning (wip)
fmartingr Mar 27, 2024
a861efe
use updateAppConfig
fmartingr Apr 1, 2024
7c43c23
added sample keycloak realm
fmartingr Apr 2, 2024
b3e5fda
setup openid from config
fmartingr Apr 2, 2024
8217a3d
setup default realm, disable ssl
fmartingr Apr 2, 2024
8cf9d2a
health argument directly in call
fmartingr Apr 2, 2024
5446c20
development by default
fmartingr Apr 2, 2024
56c7df7
docs wip
fmartingr Apr 2, 2024
343e055
disable ssl in master realm and configured realm
fmartingr Apr 3, 2024
a190c7a
autogenerate keycloak users
fmartingr Apr 3, 2024
066e964
override UsersFilePath instead of log
fmartingr Apr 4, 2024
9b4cee4
more docs
fmartingr Apr 4, 2024
b5ac989
jvm settings for large imports
fmartingr Apr 8, 2024
0b8b574
realm import improvements
fmartingr Apr 9, 2024
babebb7
disable ssl in default realm
fmartingr Apr 9, 2024
c8a37f0
updated assets
fmartingr Apr 9, 2024
5dbf56d
Update docs/external_auth_providers.md
fmartingr Apr 10, 2024
f5ac82f
db set to postgres
fmartingr Apr 10, 2024
6e19432
remove default for instance count in tf
fmartingr Apr 10, 2024
e041458
apply suggestion
fmartingr Apr 10, 2024
28c3beb
moved keycloakEnvFileContents closer to usage
fmartingr Apr 10, 2024
aadc041
return early if token is found, err otherwise
fmartingr Apr 10, 2024
003f979
removed now unused var
fmartingr Apr 10, 2024
4a454d2
keycloak db dump support
fmartingr Apr 10, 2024
e556ce6
make assets
fmartingr Apr 10, 2024
20dbc81
remove keycloak_db_instance_engine
fmartingr Apr 10, 2024
49c02dc
remove variable usage
fmartingr Apr 10, 2024
a611473
fixed family
fmartingr Apr 10, 2024
5bbd2a6
import keycloak db dump on keycloak config
fmartingr Apr 10, 2024
49605ea
fixed ingest commands
fmartingr Apr 10, 2024
dc4191d
ingest keycloak db on create only
fmartingr Apr 10, 2024
8182e44
updated docs
fmartingr Apr 10, 2024
eadca08
using bool instead of count to enable the keycloak deployment
fmartingr Apr 10, 2024
c7b08b3
install realm only when no dump is provided
fmartingr Apr 11, 2024
2b9526f
better logging
fmartingr Apr 15, 2024
c54a0a9
add hosts file to agent nodes as well
fmartingr Apr 15, 2024
b1de1d2
psql database setup
fmartingr Apr 15, 2024
bdd340e
disable specific changes using dump
fmartingr Apr 15, 2024
7a86020
get user when authenticating
fmartingr Apr 16, 2024
b3f7dae
simplified keycloak database setup
fmartingr Apr 17, 2024
67d29d4
added metrics
fmartingr Apr 17, 2024
4024790
Merge remote-tracking branch 'origin/master' into feat/openid-users
fmartingr Apr 18, 2024
49ece26
simplify logic and avoid panics
fmartingr Apr 22, 2024
95ccbe5
typo
fmartingr Apr 22, 2024
791d40c
fixed metrics path
fmartingr Apr 22, 2024
5011569
requested changes
fmartingr Apr 22, 2024
4c08af4
Merge remote-tracking branch 'origin/master' into feat/openid-users
fmartingr Apr 22, 2024
4b35f96
fixed database upload
fmartingr Apr 23, 2024
50842ad
ignore exit 5 when stopping keycloak while creating the database
fmartingr Apr 23, 2024
fec4c6e
main function should start keycloak
fmartingr Apr 23, 2024
9ed759f
Merge remote-tracking branch 'origin/master' into feat/openid-users
fmartingr Apr 24, 2024
25c3ba0
allow provisioning of extra SQL files for the mattermost db
fmartingr Apr 24, 2024
ad1fb66
remove path in prometheus target
fmartingr Apr 25, 2024
e9a5945
typo in default annotation
fmartingr Apr 25, 2024
c9aa2ba
add ON_ERROR_STOP to keycloak dump
fmartingr Apr 25, 2024
2384ca6
use siteurl for agent configuration if set up
fmartingr Apr 26, 2024
9de8440
handle failures in keycloak sql scripts
fmartingr Apr 26, 2024
7ca520b
lint
fmartingr Apr 26, 2024
19c839a
fixed site url logic on agents
fmartingr Apr 29, 2024
cba76a8
refactored server url logic to be testable
fmartingr Apr 29, 2024
e9115db
switch keycloak instance type to c7i
fmartingr Apr 30, 2024
1c83664
add externalauthprovidersetting to deployer sample
fmartingr Apr 30, 2024
12b5487
don't initialise unnecessary clients
fmartingr May 2, 2024
d812cea
close ssh client
fmartingr May 2, 2024
ffc628b
TODOs
fmartingr May 2, 2024
e7a406f
TODO
fmartingr May 2, 2024
9fccc75
add reference to users file in docs
fmartingr May 2, 2024
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
Prev Previous commit
Next Next commit
removed now unused var
fmartingr committed Apr 10, 2024
commit 003f9791bc32e41cdbafa2bc04c0a8d0bff6a3d8
1 change: 0 additions & 1 deletion deployment/terraform/utils.go
Original file line number Diff line number Diff line change
@@ -243,7 +243,6 @@ func (t *Terraform) getParams() []string {
"-var", fmt.Sprintf("keycloak_instance_type=%s", t.config.ExternalAuthProviderSettings.InstanceType),
"-var", fmt.Sprintf("keycloak_db_instance_type=%s", t.config.ExternalAuthProviderSettings.DatabaseInstanceType),
"-var", fmt.Sprintf("keycloak_db_instance_count=%d", t.config.ExternalAuthProviderSettings.DatabaseInstanceCount),
"-var", fmt.Sprintf("keycloak_db_instance_engine=%s", t.config.ExternalAuthProviderSettings.DatabaseInstanceEngine),
"-var", fmt.Sprintf("keycloak_db_parameters=%s", t.config.ExternalAuthProviderSettings.DatabaseParameters),
"-var", fmt.Sprintf("keycloak_db_username=%s", t.config.ExternalAuthProviderSettings.DatabaseUsername),
"-var", fmt.Sprintf("keycloak_db_password=%s", t.config.ExternalAuthProviderSettings.DatabasePassword),