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

Update pass-core config for configuration property value defaults #382

Merged
merged 1 commit into from
Oct 25, 2024
Merged
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
13 changes: 11 additions & 2 deletions .eclipse-pass.local_env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
AWS_REGION=us-east-1
AWS_SQS_ENDPOINT_OVERRIDE=http://localstack:4566

###################################################
# PASS_CORE config ################################
Expand All @@ -19,21 +18,31 @@ PASS_CORE_DATABASE_URL=jdbc:postgresql://postgres:5432/pass
PASS_CORE_DATABASE_USERNAME=pass
PASS_CORE_DATABASE_PASSWORD=moo

PASS_CORE_SP_ID=https://sp.pass/shibboleth
PASS_CORE_SP_KEY=file:////saml2/sp-key.pem
PASS_CORE_SP_CERT=file:////saml2/sp-cert.pem
PASS_CORE_SP_ACS={baseUrl}/login/saml2/sso/{registrationId}
PASS_CORE_IDP_METADATA=http://idp:8080/idp/shibboleth
PASS_CORE_DEFAULT_LOGIN_SUCCESS=/app/
PASS_CORE_LOGIN_PROCESSING_PATH=/login/saml2/sso/{registrationId}

# Go back to the app on logout
PASS_CORE_LOGOUT_SUCCESS=/app/

# Delete IDP session cookie on logout so can login as another user
PASS_CORE_LOGOUT_DELETE_COOKIES="JSESSIONID /,shib_idp_session /idp"

PASS_CORE_USERTOKEN_KEY=

# Postgres configuration
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres

PASS_CORE_FILE_SERVICE_TYPE=S3
PASS_CORE_S3_BUCKET_NAME=passcorefilestest
PASS_CORE_S3_ENDPOINT=http://localstack:4566

# Override aws endpoints to use localstack
PASS_CORE_JAVA_OPTS="-Daws.sqs.endpoint-override=http://localstack:4566 -Dpass.file-service.s3-endpoint=http://localstack:4566"

###################################################
# PASS_DEPOSIT_SERVICES config ####################
Expand Down
3 changes: 0 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ PASS_VERSION=1.12.0-SNAPSHOT
###################################################
PASS_CORE_PORT=8080

# PASS core configuration
spring_profiles_active=production

PASS_CORE_USE_SQS=true
PASS_CORE_EMBED_JMS_BROKER=false

Expand Down
2 changes: 2 additions & 0 deletions eclipse-pass.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
- 8080:8080
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./pass-core/saml2/:/saml2/

pass-ui:
env_file:
Expand Down
18 changes: 18 additions & 0 deletions pass-core/saml2/sp-cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-----BEGIN CERTIFICATE-----
MIIC6zCCAdOgAwIBAgIJAOy0nki3WAOVMA0GCSqGSIb3DQEBBQUAMBcxFTATBgNV
BAMTDDc5OTQzZmVlNzg2NTAeFw0xNTEyMTEwMzAwNDJaFw0yNTEyMDgwMzAwNDJa
MBcxFTATBgNVBAMTDDc5OTQzZmVlNzg2NTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBALPBzAz0DTn+j2YsQKfqWI+m08lP5UzwVsE9ZKzLqO3PRHZqiOBm
EaFmRrYCZCAOcJ0TXcxPGtNSo8HC4uw5/Y5lJGuI3jN7X7KB1VUQDpUSwfgOqtro
uDoVRKrsaYZTnlNV8KbZ0WQz5s4Uw6CxKRB9RZ5iQMP1fuxc8B6GSOb3x69MiY6c
1jlgVAc6rV4zGfpafacxOLM8qcYhY8u3TiSd0H+oiGEqi1mFLK8yp6FKzX8OUkQf
We49YHz6wBxFOe+/p+7ziym1rBs/lGfenEo8ziCIMmjnoo257fz00bcz9rFl1rTx
KLFfgy72xTlG72l6u+pB9VqK3YNJS52Ns5UCAwEAAaM6MDgwFwYDVR0RBBAwDoIM
Nzk5NDNmZWU3ODY1MB0GA1UdDgQWBBRiDMNPjiAMC50WWubI3PMjP45S/DANBgkq
hkiG9w0BAQUFAAOCAQEAYZM/iWgC93vAq0d98egEzvESKodxHffkDOagd4Kxt/S0
AAHsVQCmAK/9kmRhsWzR3f1KIw98q4EX7nH/K68BFrerUvaL5+fEGE9W6Ki6QdW8
bM17GQkLyRDKZzGPm/hsaG1Oxru2kDf7qSvv59aRZlZ8skrDEnx8+dZ8JKC02ZDU
ClC+xWl1UPfO2BL4tJei/siSymGpiRqznQ2JMoTFu5CUUpoxyCVz1bl9lCVceoJ9
FaL38knS0p5DnXcm+I8wqNEVGLDPbDalBQryhJT9fIMm1/B85gB3AWAvcu9PPfHK
lQQUhxyEXTBJx3luLlpIjoloFKIute9K7pE5qAENjg==
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions pass-core/saml2/sp-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCzwcwM9A05/o9m
LECn6liPptPJT+VM8FbBPWSsy6jtz0R2aojgZhGhZka2AmQgDnCdE13MTxrTUqPB
wuLsOf2OZSRriN4ze1+ygdVVEA6VEsH4Dqra6Lg6FUSq7GmGU55TVfCm2dFkM+bO
FMOgsSkQfUWeYkDD9X7sXPAehkjm98evTImOnNY5YFQHOq1eMxn6Wn2nMTizPKnG
IWPLt04kndB/qIhhKotZhSyvMqehSs1/DlJEH1nuPWB8+sAcRTnvv6fu84sptawb
P5Rn3pxKPM4giDJo56KNue389NG3M/axZda08SixX4Mu9sU5Ru9pervqQfVait2D
SUudjbOVAgMBAAECggEBAK0pysTLsZYlmMSHar2XbjrsLecnVTA58ojy+HHRO2nj
mgMs+7CYAvHlUcbyJLwQzQEz787qgWADowb8E5gXASBUZLJGxi738adH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