-
Will start on this first thing tomorrow - troubleshooting issue SZ-20 took me on scenic route.
-
Please note that I am completing he functionality with REST as the UI and hence you should be as of now testing functionality using cURL or httpie (I am publishing the swagger dashboard to document the REST APIs).
Once milestone 1 is done, I will add a Angular/Typescript based UI.
-
Work Log for SZ-21: Shift Sztab Port and Update AuthN
Branch:
bugfix/sz21-shift-sztabport-authn
Summary:- Changed Sztab backend port from
8080→8181to avoid collision with other local services. - Moved
DataBootstrapperfromcom.sztab.configtocom.sztab.datafor clarity. - Updated
application.ymlto match new port and cleaned up bootstrapping logic. - Removed obsolete
data-postgresql.sql(superseded by@PostConstructbootstrapping). - Updated
docker-compose.ymland addeddocker-compose.override.yml:- Tagged image as
sztab-local:1.3 - Mapped new port 8181
- Tagged image as
- Regenerated admin password hash using bcrypt:
docker run --rm python:3-alpine sh -c "pip install bcrypt > /dev/null && python -c 'import bcrypt; print(bcrypt.hashpw(b\"admin\", bcrypt.gensalt()).decode())'" - Manually updated Postgres
usertable with new hash:UPDATE "user" SET password = '<new bcrypt hash>' WHERE username = 'admin'; - Restarted backend container and verified Basic Auth works:
curl -u admin@sztab.local:admin http://localhost:8181/api/users - Verified Actuator is up:
curl http://localhost:8181/actuator/health - Verified bootstrapped admin user has all 3 roles:
- ADMIN
- DEVELOPER
- QA_ENGINEER
Resolution:
- Committed all changes to
bugfix/sz21-shift-sztabport-authn - Merged into
wolnosc - Tagged image as
sztab-local:1.3 - Confirmed all integration steps completed successfully
- Changed Sztab backend port from
-
% git tag v1.3 % git push origin v1.3 Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 To https://tigase.dev/sztab.git * [new tag] v1.3 -> v1.3 % % git checkout wolnosc % git pull origin wolnosc % git merge --no-ff bugfix/sz21-shift-sztabport-authn -m "Merge bugfix/sz21-shift-sztabport-authn: Refactor DataBootstrapper, update ports, image to 1.3" % git push origin wolnosc % git branch -d bugfix/sz21-shift-sztabport-authn\n % git push origin --delete bugfix/sz21-shift-sztabport-authn % -
In Progress
| Type |
New Feature
|
| Priority |
Normal
|
| Assignee | |
| Version |
none
|
| Sprints |
n/a
|
| Customer |
n/a
|
Issue Votes (0)
I am trying to run Sztab locally with Docker Compose as described in README.md file.
I am getting browser authentication window like in the screenshot. But there are no details in documentation about what auth credentials to use.
By the way, the port 8080 used as default in docker file and docker compose is usually already used by something else. Maybe we could use some other port not commonly taken?