Description
I am working as a freelance Java developer at DunoSoft on Tmoney's migration of its groupware to NHN Dooray SaaS. Using Java, Spring Boot, Thymeleaf, and Oracle, I design and build an SSO relay server that connects Dooray sign-in to the existing corporate SSO and groupware account database, and an electronic document management system (EDMS) that Dooray does not provide. I also deploy and operate both services myself from the command line on network-isolated Red Hat Enterprise Linux servers.
Role
- Full-stack Java and Spring Boot developer (freelancer with DunoSoft)
- Design, development, and testing of the SSO relay server and EDMS
- Command-line deployment and operation on RHEL servers, plus handover documentation
- Writing and revising requirements, feature, integration, and screen specifications, and coordinating with partner vendors
Technology
Key implementations and results
1. SSO relay server (2 companies, 5 connected systems)
- Worked around Dooray's limit of one SSO per tenant with a single entry URL and per-company routing, connecting the existing SSO of Tmoney and Tmoney Mobility to one Dooray sign-in.
- Verified existing SSO sessions through the vendor's Java SDK and policy server, mapped them to groupware accounts in Oracle, and returned short-lived signed JWTs to Dooray.
- Implemented the full authentication flow: PC and mobile sign-in, per-company sign-out, the Dooray side-app API, and auto-login tokens for five internal systems.
- Built company selection, guidance, and error screens as components with 34 Thymeleaf templates and vanilla JavaScript.
2. SSO stabilization and incident response
- Fixed valid sessions being rejected because of clock differences between servers by adding a configurable tolerance.
- Added retries, a health cache, and a concurrency cap for policy-server outages, and showed different guidance for invalid tokens and temporary outages.
- Removed UI freezes by moving remote calls out of the session lock, and added concurrency tests.
- Fixed production 401 errors in the side-app API, caused by the signing library's key-length rule, with a custom HMAC check using constant-time comparison.
- Designed step-by-step sign-in logs that never record IDs, cookies, or tokens, and verified this with tests.
3. New EDMS (electronic document management system)
- Rebuilt document management, which Dooray lacks, as a standalone Spring Boot app with 49 screens across 12 screen types, covering contracts, official letters, faxes, legal files, and PR materials.
- Designed screens to be assembled from a JSON spec extracted from the screen definitions, so spec changes could be applied quickly.
- Shared the existing groupware Oracle database without migration while reproducing the hierarchical menu (CONNECT BY) and per-board read, write, and manage permissions.
- Implemented TOAST UI Editor editing, server-side HTML sanitizing with jsoup, an org-chart user picker, attachment ZIP downloads and history, Excel export, and board and role management.
4. Dooray Drive integration and safeguards
- Designed dual storage that keeps original attachments on the server and optionally copies them to Dooray Drive, so document registration still succeeds when Drive fails.
- Prevented duplicate uploads with an upload journal and file locks, and separated confirmed failures from unknown outcomes, recovering the latter by reconciliation instead of re-uploading.
- Fixed the delete order so the Drive copy is moved to trash first and the database row is deleted only after that succeeds.
- Guarded against writes to the shared production database with per-profile safeguards: database identity checks, read-only connections, blocking all SQL except SELECT, and per-feature switches.
- Implemented SSO token checks (validity window, replay blocking, employment check), SSO re-entry on session expiry, and a re-login window that keeps unsaved input.
5. Testing, deliverables, and handover
- Maintained 540 automated tests for SSO and 350 Java plus 111 JavaScript tests for EDMS, running regression checks with every feature change.
- Revised the requirements, feature, integration, and screen specifications, and wrote the SSO API specification.
- Wrote operational handover documents, including deployment guides, command references, sign-in log flows with failure tables, QA records, and manual test scenarios.
Command-line deployment and operation on RHEL
1. Build and verify
- Ran the full test suite and build with Gradle to produce an executable JAR (bootJar) together with a SHA-256 checksum.
2. Transfer into the isolated network
- Moved the build artifacts to a system-network PC, then verified their integrity on the server with sha256sum.
3. Deploy and roll back
- The deploy script keeps backups of previous JARs and waits up to 60 seconds for the port to open; a rollback script restores the previous version if something goes wrong.
4. Service setup
- Ran each service as a single JAR with embedded Tomcat under a systemd template unit, behind an nginx reverse proxy in the DMZ.
5. Configuration and secrets
- Kept connection details and keys in permission-restricted config files and environment variables on the server, so no secrets live in the JAR or repository.
6. Checks
- Documented command-by-command checks of systemctl status, logs, and responses via localhost and the DMZ.