CAS Authentication Reverse Proxy (CARP) for Sonatype Nexus.
- Go >= 1.12.x
- start Cloudogu EcoSystem
- install at least CAS-Dogu
- enable development mode and restart CAS in your Cloudogu EcoSystem
etcdctl set /config/_global/stage development
cesapp stop cas
cesapp start cas
- Checkout nexus-carp
git clone [email protected]:cloudogu/nexus-carp.git
cd nexus-carp
- start nexus on your host system
docker-compose up -d
- open Nexus at http://localhost:8081
- sign in with following credentials:
-
Username: admin
-
Password: read out from Docker container via
docker exec -it nexus-carp_nexus_1 cat /nexus-data/admin.password
-
- finish the initialization wizard (remember the password)
- enable "Rut Auth Realm" (settings at Security -> Realms)
- Add "Rut Auth" Capability with
X-CARP-Authentication
as Header (settings at System -> Capabilities -> Create Capability) - Add property that allows to add scripts to Nexus and restart container
docker exec -it nexus-carp_nexus_1 bash
echo "nexus.scripts.allowCreation=true" >> /nexus-data/etc/nexus.properties
exit
docker-compose restart
- Build
export GO111MODULE=on
make
- Set required environment variables (use the password you set in the wizard at the first start)
export NEXUS_URL="http://localhost:8081"
export NEXUS_USER="admin"
export NEXUS_PASSWORD="admin123"
export CES_ADMIN_GROUP="cesAdmins"
- Run
./target/nexus-carp
- Test Nexus with Browser and Maven at http://192.168.56.1:9090