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

chore(ci): Remove keytool step #1276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions .github/scripts/init-temp-keys.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ set "hostKeyDir=%cd%"
set hostKeyDir=%hostKeyDir%/keys
set "hostKeyDir=%hostKeyDir:\=/%"

openssl pkcs12 -export -in keys/keycloak-ca.pem -inkey keys/keycloak-ca-private.pem -out keys/ca.p12 -nodes -passout pass:password
docker run -v %hostKeyDir%:/keys --entrypoint keytool cgr.dev/chainguard/keycloak@sha256:37895558d2e0e93ffff75da5900f9ae7e79ec6d1c390b18b2ecea6cee45ec26f -importkeystore -srckeystore /keys/ca.p12 -srcstoretype PKCS12 -destkeystore /keys/ca.jks -deststoretype JKS -srcstorepass "password" -deststorepass "password" -noprompt
openssl pkcs12 -export -in keys/keycloak-ca.pem -inkey keys/keycloak-ca-private.pem -out keys/ca.p12 -keypbe NONE -certpbe NONE -passout pass:
23 changes: 5 additions & 18 deletions .github/scripts/init-temp-keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,11 @@ openssl req -x509 -nodes -newkey ec:ecparams.tmp -subj "/CN=kas" -keyout "$opt_o

mkdir -p keys
openssl req -x509 -nodes -newkey RSA:2048 -subj "/CN=ca" -keyout keys/keycloak-ca-private.pem -out keys/keycloak-ca.pem -days 365
printf "subjectAltName=DNS:localhost,IP:127.0.0.1" > keys/sanX509.conf
printf "[req]\ndistinguished_name=req_distinguished_name\n[req_distinguished_name]\n[alt_names]\nDNS.1=localhost\nIP.1=127.0.0.1" > keys/req.conf
printf "subjectAltName=DNS:localhost,IP:127.0.0.1" >keys/sanX509.conf
printf "[req]\ndistinguished_name=req_distinguished_name\n[req_distinguished_name]\n[alt_names]\nDNS.1=localhost\nIP.1=127.0.0.1" >keys/req.conf
openssl req -new -nodes -newkey rsa:2048 -keyout keys/localhost.key -out keys/localhost.req -batch -subj "/CN=localhost" -config keys/req.conf
openssl x509 -req -in keys/localhost.req -CA keys/keycloak-ca.pem -CAkey keys/keycloak-ca-private.pem -CAcreateserial -out keys/localhost.crt -days 3650 -sha256 -extfile keys/sanX509.conf
openssl x509 -req -in keys/localhost.req -CA keys/keycloak-ca.pem -CAkey keys/keycloak-ca-private.pem -CAcreateserial -out keys/localhost.crt -days 3650 -sha256 -extfile keys/sanX509.conf
openssl req -new -nodes -newkey rsa:2048 -keyout keys/sampleuser.key -out keys/sampleuser.req -batch -subj "/CN=sampleuser"
openssl x509 -req -in keys/sampleuser.req -CA keys/keycloak-ca.pem -CAkey keys/keycloak-ca-private.pem -CAcreateserial -out keys/sampleuser.crt -days 3650
openssl x509 -req -in keys/sampleuser.req -CA keys/keycloak-ca.pem -CAkey keys/keycloak-ca-private.pem -CAcreateserial -out keys/sampleuser.crt -days 3650

openssl pkcs12 -export -in keys/keycloak-ca.pem -inkey keys/keycloak-ca-private.pem -out keys/ca.p12 -nodes -passout pass:password
docker run \
-v $(pwd)/keys:/keys \
--entrypoint keytool \
--user $(id -u):$(id -g) \
cgr.dev/chainguard/keycloak@sha256:37895558d2e0e93ffff75da5900f9ae7e79ec6d1c390b18b2ecea6cee45ec26f \
-importkeystore \
-srckeystore /keys/ca.p12 \
-srcstoretype PKCS12 \
-destkeystore /keys/ca.jks \
-deststoretype JKS \
-srcstorepass "password" \
-deststorepass "password" \
-noprompt
openssl pkcs12 -export -in keys/keycloak-ca.pem -inkey keys/keycloak-ca-private.pem -out keys/ca.p12 -keypbe NONE -certpbe NONE -passout pass:
6 changes: 2 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ services:
volumes:
- ./keys/localhost.crt:/etc/x509/tls/localhost.crt
- ./keys/localhost.key:/etc/x509/tls/localhost.key
- ./keys/ca.jks:/truststore/truststore.jks
- ./keys/ca.p12:/truststore/truststore.p12
# This is kc 24.0.1 with opentdf protocol mapper on board
image: cgr.dev/chainguard/keycloak@sha256:37895558d2e0e93ffff75da5900f9ae7e79ec6d1c390b18b2ecea6cee45ec26f
restart: always
command:
- "start-dev"
- "--verbose"
- "-Djavax.net.ssl.trustStorePassword=password"
- "-Djavax.net.ssl.HostnameVerifier=AllowAll"
- "-Djavax.net.ssl.trustStore=/truststore/truststore.jks"
- "--truststore-paths=/truststore/truststore.p12"
- "--spi-truststore-file-hostname-verification-policy=ANY"
environment:
KC_PROXY: edge
Expand All @@ -38,7 +37,6 @@ services:
KC_FEATURES: "preview,token-exchange"
KC_HEALTH_ENABLED: "true"
KC_HTTPS_KEY_STORE_PASSWORD: "password"
KC_HTTPS_KEY_STORE_FILE: "/truststore/truststore.jks"
KC_HTTPS_CERTIFICATE_FILE: "/etc/x509/tls/localhost.crt"
KC_HTTPS_CERTIFICATE_KEY_FILE: "/etc/x509/tls/localhost.key"
KC_HTTPS_CLIENT_AUTH: "request"
Expand Down
6 changes: 3 additions & 3 deletions sdk/internal/oauth/oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,19 +544,19 @@ func setupKeycloak(ctx context.Context, t *testing.T) (tc.Container, string, str
Cmd: []string{"start-dev", "--http-port=8082", "--https-port=8083", "--features=preview", "--verbose",
"-Djavax.net.ssl.trustStorePassword=password", "-Djavax.net.ssl.HostnameVerifier=AllowAll",
"-Djavax.net.debug=ssl",
"-Djavax.net.ssl.trustStore=/truststore/truststore.jks",
"-Djavax.net.ssl.trustStore=/truststore/truststore.p12",
"--spi-truststore-file-hostname-verification-policy=ANY",
},
Files: []tc.ContainerFile{
{HostFilePath: "testdata/ca.jks", ContainerFilePath: "/truststore/truststore.jks", FileMode: int64(0o777)},
{HostFilePath: "testdata/ca.p12", ContainerFilePath: "/truststore/truststore.p12", FileMode: int64(0o777)},
{HostFilePath: "testdata/localhost.crt", ContainerFilePath: "/etc/x509/tls/localhost.crt", FileMode: int64(0o777)},
{HostFilePath: "testdata/localhost.key", ContainerFilePath: "/etc/x509/tls/localhost.key", FileMode: int64(0o777)},
},
Env: map[string]string{
"KEYCLOAK_ADMIN": "admin",
"KEYCLOAK_ADMIN_PASSWORD": "admin",
"KC_HTTPS_KEY_STORE_PASSWORD": "password",
"KC_HTTPS_KEY_STORE_FILE": "/truststore/truststore.jks",
"KC_HTTPS_KEY_STORE_FILE": "/truststore/truststore.p12",
"KC_HTTPS_CERTIFICATE_FILE": "/etc/x509/tls/localhost.crt",
"KC_HTTPS_CERTIFICATE_KEY_FILE": "/etc/x509/tls/localhost.key",
"KC_HTTPS_CLIENT_AUTH": "request",
Expand Down
Binary file removed sdk/internal/oauth/testdata/ca.jks
Binary file not shown.
Binary file added sdk/internal/oauth/testdata/ca.p12
Binary file not shown.
30 changes: 16 additions & 14 deletions sdk/internal/oauth/testdata/keycloak-ca.pem
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
-----BEGIN CERTIFICATE-----
MIICljCCAX4CCQCbn54dZw//JTANBgkqhkiG9w0BAQsFADANMQswCQYDVQQDDAJj
YTAeFw0yNDA0MjUwMTUzMjlaFw0yNTA0MjUwMTUzMjlaMA0xCzAJBgNVBAMMAmNh
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArgtrFrIciTIVTJA9IaG/
Hs3rjdE++BpO5KsTKci09XHjTHQ2ej3q04ycblcDqb5iv5MJalSEy91522WR5SI0
SEFtVcflOLM8AwreZ7u65ouIyGH3KqOMzAZmdX6Q83FDWZsEDkFeKZsgcIHFMMbT
of40AgyvMFvH45wT4OkWkVcu/nlNkVN6CDfQQ+eMcIaBaNq+cwq41s6avMn3S8yG
qbEfj0J8ez8kk1TBRPgUe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A1UdIwQYMBaAFI6+sxYzSS8hV4T7IHIlnPJx9G3tMA8GA1Ud
EwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAAJxC4PXdMxZbvoXaj0gU7Z8
ixBkFkV8gzZonJcmj1Z3ZWkbwZ4TrAC5dMkFBg7p6shER7Cj4s94ZS775GcPc12q
gUAuRu10ozP2ZuT7TzxOrpSaMuKuAy0A1B35mJz3rWFqzrWZrheHAMitajMtA6Ou
+xgYpfLEC+zkGA4tq5l02yWhdkIQmv5MPi25dkcu1hL5XuUD0Vw/r/OAIZoP20qI
tZIPfrnCb1EnlyBU+aQ5vhtUptmd4krprR1ujkji5PlDpJ+TbgGjNQg/1rCAf+D1
2e9Ap3Ktmno841yLyifKbp8aHgW4ndnb1KKJ+Nn7iCEt431Ns8yhTaIC5mIE7/o=
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions sdk/internal/oauth/testdata/keycloak-ca.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
742AA38E17BAAA9E9D5BB22C8FCF5FB37C77D158
32 changes: 17 additions & 15 deletions sdk/internal/oauth/testdata/localhost.crt
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
-----BEGIN CERTIFICATE-----
MIICwjCCAaqgAwIBAgIJAKtVXCAer8hIMA0GCSqGSIb3DQEBCwUAMA0xCzAJBgNV
BAMMAmNhMB4XDTI0MDQyNTAxNTMzMFoXDTM0MDQyMzAxNTMzMFowFDESMBAGA1UE
AwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsqu+
0OxVLgFEGaSAaf2vPhncfgrZH2gyCgwVKPwAjNNKAkQY8dYTcEeCHdXc49zgEng6
MCfR9Kl026WosFQE0mcwpkIM5N+z8kHuAE2DW4HgdtrdSZzas8wfLOThhfu6oguN
iopsy0SgNDnjwC4dQ1ge74h57u6SNWVXuM0X1b75WjrL2nbKijoL0KUX72xJodNe
FxTxrxoQNR63ZxN2CI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EraMhdSsebfaaeCGdIT
MDiO3twXMLmIi1QoHQX33LQuRvmPDqwRAgMBAAGjXjBcMBoGA1UdEQQTMBGCCWxv
Y2FsaG9zdIcEfwAAATAdBgNVHQ4EFgQUTaqo3ZrlCk6TObjlSF8UV4l7DkQwHwYD
VR0jBBgwFoAUjr6zFjNJLyFXhPsgciWc8nH0be0wDQYJKoZIhvcNAQELBQADggEB
AH1qgt2yrfObhledn9yMvXMTvlSfvzPArSwVmnIAIXuaBOSmXEyN3Wuld2jK2Sw4
2a5GMVBDyMRe2NEXYuX10oTFsJjBM7Y4w6vuJHq6S9LDhr+S9gyIJyZi7VRTFXE3
xN03/FaGqHXmZqeM/xZlUsGUK7y1yz1TSi8xc04/MRkIAZLE6bMAFUTsqpkZNvsr
vxHzfGMrn20SBrpWv4KHMdPy6RWO4SFD7fCRr7CzWr8r6P8hN6LSi0d506SHX0Es
EPjXqk59it4KILPhvTHb+0PB9a7u6FwGDWUa1taYzA1bnV9i1nqfon7eK5/PaVVy
X07gSnunIgFHEm9+wKbLHX0=
-----END CERTIFICATE-----
52 changes: 26 additions & 26 deletions sdk/internal/oauth/testdata/localhost.key
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCyq77Q7FUuAUQZ
pIBp/a8+Gdx+CtkfaDIKDBUo/ACM00oCRBjx1hNwR4Id1dzj3OASeDowJ9H0qXTb
paiwVATSZzCmQgzk37PyQe4ATYNbgeB22t1JnNqzzB8s5OGF+7qiC42KimzLRKA0
OePALh1DWB7viHnu7pI1ZVe4zRfVvvlaOsvadsqKOgvQpRfvbEmh014XFPGvGhA1
HrdnE3YIhDBiZtwnd8ABgMxTDfpiXR3nLmdpumXufNjf/mSy8LFhsnycydtRSbJ9
NNmcPhNbrZXkdMi9ltJI0cORXdGMrFyoUnSkEPZMgQbm47mFYS31gcZF1VeYE5aj
X7ktfujHAgM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
+4e3ygfVr4q2p/G/S7Kh8aP+hwKBgQDFKGO0Qo3j3TQRcJirSHjGx9t6Zx6GJEqs
oHmRcf4PMy8GbFZC5TtVJqXnt0M9HmgwGKSUISP8otoB0qK/McXMrR9da4/+nx1J
W+e5xtz6UQOTAjyzg2NLIzZO0A4gUIs9VXK5wrIbuqZOEJBIcXePcogIipMbHhdo
gvYj3WXOpwKBgDW/k4aRCVdCAF17zekNHts/R/sNlxm75NLt1EXuFP9F+f0rcal9
/LDJhknAodQmX1EkQnU3T0UK2siEbDKdNxsQzoHQ0ir0i88eatTBYJGfSQLBvvX0
mKKALD1qSyVOUDblzN+eVq4JVNfPCU1nmGxeBwh4sGLupLOl4Q/2vFvRAoGAeMdp
bQBok/Lq9tQXcraO5peAqNeLJ3oMFPyp/KPsk7szT6gGoCx10JBAilcGZea+xNgT
2nsC5L2O+BblhGMlXWGhGUXPjJhFBK+8oV5l+SKwIdr4/K+8oEcN+fIS9VDiO8yg
35OaMMqDHsee3AJG0CXFmBXsUGx6wpeX2hjDSXkCgYAkCpCF1jzlKXwicTgMh257
uP32rtXzSoX6iny2IR3O/CNBbLBG3x3iax6zPvAektiZIb7i5cg4CoQtsIncVKzM
JjFlv1s9EsQtXGzGtu27OTGp0fiA6ae9vBW0IbM1Xfq7McyJ8TKKvYO4jNhgUVdK
a0D248NUa4CgOFkyVHdxXw==
-----END PRIVATE KEY-----
31 changes: 16 additions & 15 deletions sdk/internal/oauth/testdata/sampleuser.crt
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
-----BEGIN CERTIFICATE-----
MIICnjCCAYYCCQCrVVwgHq/ISTANBgkqhkiG9w0BAQsFADANMQswCQYDVQQDDAJj
YTAeFw0yNDA0MjUwMTUzMzBaFw0zNDA0MjMwMTUzMzBaMBUxEzARBgNVBAMMCnNh
bXBsZXVzZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCaXs9WCGdF
wtRcs8+NGyf8lebUQ55fBTKUn7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DNch05X5XAofK
truUwRGqiWHAQ+CaHLlSqnbXyym0FkAcQmDy+2zFuSTYGtKk5CygrhVQTbQQg6si
IVImGnoIcRAZCk8Rujzt8VdMFIKOeVdAGD540pH6EK6r7UFpLHD8hN27BL9JlICS
/sI/QnHLaJ/qLCxAgAXJLN24tVhOL99jNwIDAQABo0IwQDAdBgNVHQ4EFgQUVsmE
Zm2hXCNXDgT3Bglgbxn9e2UwHwYDVR0jBBgwFoAUjr6zFjNJLyFXhPsgciWc8nH0
be0wDQYJKoZIhvcNAQELBQADggEBAFw9uTt8mHS2KsWOQZYuifU1H1JdkebzvWAs
ZTuucaK0g/HTjm1iCuI/K4/uS+ks3QAliwar3BcjCB/cQgKr2OXNjyhhXlkcQOpL
WKytm+Clw1t7tZWAe2MaLOcIkS+rIEfJeXEGv/uzNk/JEbYFn3T4RosELitwPe0B
8qEt20Cag28r/zZ6Fw1OAAhuxlmNd6wPkpcx7PtYeH2qzz2SyY8bj9o3+nNy+1vA
tvL8n0nVfMPmi54ZamaJOViMbZnjTOaMloFH3PSCLbdOejghIq+g6/lV6TgmPerJ
duxd1n7wd/D4I+nC+E0SN/rVaJwYU2QFzMVtsi11p6xgnQSaXd8=
-----END CERTIFICATE-----
52 changes: 26 additions & 26 deletions sdk/internal/oauth/testdata/sampleuser.key
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCaXs9WCGdFwtRc
s8+NGyf8lebUQ55fBTKUn7Y6tIfox/f6Mtrtc9xUW+1fiO7PhiVxRphAPdfttekL
GB6LKYRmnBk58EBUQpbbC2mfxL8LhdEYz9XCq8pzGLI59IciRqHaS1YMH9pHW7e5
PDCuS5BrcA05gip5y6vyiLh80GWKwo/9Wf8A70KtLnk3ggrFKMXw5DOCVzTM6ms6
bVjqdXHK1c64q/kNcr4nrEiamV8KwH87UZ8qCMWkET5B4/+lTbgioEdP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