-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 integration tests for OIDC authentication #801
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b27b789
Added base config file template
juanfont cb70d7c
Return the results on error
juanfont fca3805
Initial work on OIDC tests
juanfont 5f384c6
Removed old code and minor changes
juanfont f33e3e3
Parse the OIDC login URL
juanfont 71b7123
Minor change on the base config for OIDC
juanfont 9c0cf45
OIDC integration tests working
juanfont 41353a5
Added integration tests for OIDC on Makefile
juanfont 5774b32
Include OIDC in the full execution
juanfont b2f3ffb
Run integration tests in Actions
juanfont 99307d1
Update nix sum
juanfont 3abca99
Add logs for issues in Actions
juanfont c21479c
Print docker network config
juanfont d83a28b
Merge branch 'main' into oidc-integration-testing
juanfont b117ca7
Added missing TLS key for testing
9c58395
Removed unused param after routes fix
1c267f7
Capture listen error on mockoidc
a3f18f2
Add internal mockoidc command
b3a53bf
Do not load the config for CLI mockoidc (and version)
2e97119
Added derp config to OIDC etc
1563d75
Use Headscale container to run mockoidc
7a171cf
Added sleep to workaround #814
083d2a8
Linting fixes
e87b470
Removed fmt.Println for linting
8aa0eef
Merge branch 'main' into oidc-integration-testing
juanfont 95948e0
Added indication of workaround for #814
6953598
Return stderr too in ExecuteCommand
7092a3e
Merge branch 'oidc-integration-testing' of https://github.com/juanfon…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
log_level: trace | ||
acl_policy_path: "" | ||
db_type: sqlite3 | ||
ephemeral_node_inactivity_timeout: 30m | ||
node_update_check_interval: 10s | ||
ip_prefixes: | ||
- fd7a:115c:a1e0::/48 | ||
- 100.64.0.0/10 | ||
db_path: /tmp/integration_test_db.sqlite3 | ||
private_key_path: private.key | ||
noise: | ||
private_key_path: noise_private.key | ||
listen_addr: 0.0.0.0:8443 | ||
server_url: https://headscale:8443 | ||
tls_cert_path: "/etc/headscale/tls/server.crt" | ||
tls_key_path: "/etc/headscale/tls/server.key" | ||
tls_client_auth_mode: disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
-----BEGIN CERTIFICATE----- | ||
MIIC8jCCAdqgAwIBAgIULbu+UbSTMG/LtxooLLh7BgSEyqEwDQYJKoZIhvcNAQEL | ||
BQAwFDESMBAGA1UEAwwJaGVhZHNjYWxlMCAXDTIyMDMwNTE2NDgwM1oYDzI1MjEx | ||
MTA0MTY0ODAzWjAUMRIwEAYDVQQDDAloZWFkc2NhbGUwggEiMA0GCSqGSIb3DQEB | ||
AQUAA4IBDwAwggEKAoIBAQDqcfpToLZUF0rlNwXkkt3lbyw4Cl4TJdx36o2PKaOK | ||
U+tze/IjRsCWeMwrcR1o9TNZcxsD+c2J48D1WATuQJlMeg+2UJXGaTGRKkkbPMy3 | ||
5m7AFf/Q16UEOgm2NYjZaQ8faRGIMYURG/6sXmNeETJvBixpBev9yKJuVXgqHNS4 | ||
NpEkNwdOCuAZXrmw0HCbiusawJOay4tFvhH14rav8Uimonl8UTNVXufMzyUOuoaQ | ||
TGflmzYX3hIoswRnTPlIWFoqObvx2Q8H+of3uQJXy0m8I6OrIoXLNxnqYMfFls79 | ||
9SYgVc2jPsCbh5fwyRbx2Hof7sIZ1K/mNgxJRG1E3ZiLAgMBAAGjOjA4MBQGA1Ud | ||
EQQNMAuCCWhlYWRzY2FsZTALBgNVHQ8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUH | ||
AwEwDQYJKoZIhvcNAQELBQADggEBANGlVN7NCsJaKz0k0nhlRGK+tcxn2p1PXN/i | ||
Iy+JX8ahixPC4ocRwOhrXgb390ZXLLwq08HrWYRB/Wi1VUzCp5d8dVxvrR43dJ+v | ||
L2EOBiIKgcu2C3pWW1qRR46/EoXUU9kSH2VNBvIhNufi32kEOidoDzxtQf6qVCoF | ||
guUt1JkAqrynv1UvR/2ZRM/WzM/oJ8qfECwrwDxyYhkqU5Z5jCWg0C6kPIBvNdzt | ||
B0eheWS+ZxVwkePTR4e17kIafwknth3lo+orxVrq/xC+OVM1bGrt2ZyD64ZvEqQl | ||
w6kgbzBdLScAQptWOFThwhnJsg0UbYKimZsnYmjVEuN59TJv92M= | ||
-----END CERTIFICATE----- | ||
|
||
(Expires on Nov 4 16:48:03 2521 GMT) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create an issue to have all keys/certs used for testing generated at start? I dont like that we check them in, but its fine for this pr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#817