Skip to content
Snippets Groups Projects
Commit 53209c9b authored by Robert Butora's avatar Robert Butora
Browse files

docker: consolidates docker build/configure and makes security conf the same...

docker: consolidates docker build/configure and makes security conf the same as in vlkb-soda + example-security added now
parent aff777fc
No related branches found
No related tags found
No related merge requests found
Showing
with 114 additions and 0 deletions
# notes on security:
# set volume mapping in compose.yaml: security/ -> /etc/pki/tls/
# configure port/SSL connector: (path is relative to the dir where compose.yaml is
# * server-connector.xml : set tomcat connector with certificates
# -- ia2 needs SECTIGO
# -- iam needs self-signed keystore.jks
# * keep right jjwt*.jar libs (ia2 authlib needs v0.11, iam needs v0.12)
# FIXME implement *.properties and server-connector.xml by paramters
#### Security
# SSL-certificates are site-dependent and must be regularly updated:
# vlkb-cutout expects them in /etc/pki/tls
#
# map volume: ./security:/etc/pki/tls:z,ro
#
# ia2token:
# auth.propeties
# authpolicy.properties
# server-connector.xml
# SECTIGO/*
#
# iamtoken:
# iamtoken.properties
# server-connector.xml
# keystore.jks
#
File added
# certificates endpoint
jwks_url=
# account created for the service
resource_id=
# username for non-authenticated requests
non_authn_username=anonymous
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyAlias="tomcat"
certificateKeystoreFile="/etc/pki/tls/keystore.jks"
certificateKeystorePassword="tomcatskassl"
type="RSA" />
</SSLHostConfig>
</Connector>
rap_uri=https://sso.ia2.inaf.it/rap-ia2
gms_uri=https://sso.ia2.inaf.it/gms
client_id=vospace_ui_demo
client_secret=VOSpaceDemo123
groups_autoload=true
store_state_on_login_endpoint=true
scope=openid email profile read:rap
allow_anonymous_access=true
# database for table with permissions
db_uri=
db_schema=
db_user_name=
db_password=
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeyFile="/etc/pki/tls/SECTIGO/vlkb_ia2_inaf_it.key"
certificateFile="/etc/pki/tls/SECTIGO/vlkb_ia2_inaf_it.crt"
certificateChainFile="/etc/pki/tls/SECTIGO/CA.crt"
type="RSA" />
</SSLHostConfig>
</Connector>
# certificates endpoint
#jwks_url=
introspect=
client_name=
client_password=
# account created for the service
resource_id=
# username for non-authenticated requests
non_authn_username=anonymous
File added
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyAlias="tomcat"
certificateKeystoreFile="/etc/pki/tls/keystore.jks"
certificateKeystorePassword="tomcatskassl"
type="RSA" />
</SSLHostConfig>
</Connector>
keystore.jks:
keytool -genkey -keyalg RSA -noprompt -alias tomcat -dname "CN=localhost, OU=NA, O=NA, L=NA, S=NA, C=NA" -keystore keystore.jks -validity 9999 -storepass tomcatskassl -keypass tomcatskassl
showxml:
xmlstarlet c14n server.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment