Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-soda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaLactea
vlkb-soda
Commits
6f1bcb1b
Commit
6f1bcb1b
authored
7 months ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
docker: adds IA2 security params (AUTH_GMS/RAP/CLIENT/SECRET)
parent
361fa434
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile.soda
+2
-0
2 additions, 0 deletions
docker/Dockerfile.soda
docker/start-soda.sh.soda
+32
-0
32 additions, 0 deletions
docker/start-soda.sh.soda
with
34 additions
and
0 deletions
docker/Dockerfile.soda
+
2
−
0
View file @
6f1bcb1b
...
...
@@ -57,6 +57,8 @@ RUN chmod -R a+rwX conf
# enable SKA IAM token filter update
RUN chmod a+rw ${WEBAPP_DIR}/WEB-INF/web.xml \
&& touch ${WEBAPP_DIR}/WEB-INF/classes/ia2token.properties \
&& touch ${WEBAPP_DIR}/WEB-INF/classes/iamtoken.properties \
&& chmod a+rw ${WEBAPP_DIR}/WEB-INF/classes/*.properties
env ACCESS_CONTEXT_ROOT=datasets
...
...
This diff is collapsed.
Click to expand it.
docker/start-soda.sh.soda
+
32
−
0
View file @
6f1bcb1b
...
...
@@ -9,11 +9,18 @@ env
# set optional
ACCESS_CONTEXT_ROOT
=
${
ACCESS_CONTEXT_ROOT
:-
datasets
}
SECURITY
=
${
SECURITY
:-}
KEYSTORE_ALIAS
=
${
KEYSTORE_ALIAS
:-}
SKAIAM_INTROSPECT
=
${
SKAIAM_INTROSPECT
:-}
SKAIAM_CLIENT
=
${
SKAIAM_CLIENT
:-}
SKAIAM_PASSWORD
=
${
SKAIAM_PASSWORD
:-}
AUTH_RAP_URL
=
${
AUTH_RAP_URL
:-}
AUTH_GMS_URL
=
${
AUTH_GMS_URL
:-}
AUTH_CLIENT
=
${
AUTH_CLIENT
:-}
AUTH_SECRET
=
${
AUTH_SECRET
:-}
# configure CONTEXT_ROOT
mkdir
-p
$CATALINA_BASE
/conf/Catalina/localhost
...
...
@@ -66,6 +73,31 @@ else
cp
$WEBAPP_DIR
/WEB-INF/web-cutout-iamtoken.xml
$WEBAPP_DIR
/WEB-INF/web.xml
fi
# configure IA2 security
if
[
-z
"
$AUTH_RAP_URL
"
]
||
[
-z
"
$AUTH_GMS_URL
"
]
||
[
-z
"
$AUTH_CLIENT
"
]
||
[
-z
"
$AUTH_SECRET
"
]
;
then
echo
"Some of AUTH_ is not set."
echo
"rap: "
$AUTH_RAP_URL
echo
"gms: "
$AUTH_GMS_URL
echo
"cli: "
$AUTH_CLIENT
echo
"pwd: "
$AUTH_SECRET
else
echo
"Config SKA IAM ..."
{
echo
"rap_uri=
$AUTH_RAP_URL
"
echo
"gms_uri=
$AUTH_GMS_URL
"
echo
"client_id=
$AUTH_CLIENT
"
echo
"client_secret=
$AUTH_SECRET
"
echo
"groups_autoload=true"
echo
"store_state_on_login_endpoint=true"
echo
"scope=openid email profile read:rap"
echo
"allow_anonymous_access=true"
}
>
$WEBAPP_DIR
/WEB-INF/classes/ia2token.properties
cp
$WEBAPP_DIR
/WEB-INF/web-cutout-ia2token.xml
$WEBAPP_DIR
/WEB-INF/web.xml
fi
# config debug
DBG_LEVEL
=
${
DEBUG_LEVEL
:-
CONFIG
}
sed
-i
"s/.*ServletCutout
\.
level.*=.*/ServletCutout.level =
$DBG_LEVEL
/g"
$CATALINA_BASE
/conf/soda.logging.properties
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment