cleanup(office): drop OO_SERVER_URL + obsolete CSP + nu_service.nu #19
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_office!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_cleanup_drop_oo_server_url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Removes deadweight surfaced by post-merge architecture review.
OO_SERVER_URLis no longer read by any service after #17. The only remaining use was the CSP gate in the editor wrapper, which is itself obsolete: OnlyOffice now generates URLs fromX-Forwarded-Proto, so the scheme already matches the page's scheme —upgrade-insecure-requestsis a no-op.scripts/nu_service.nu(278 lines) duplicates thehero_office --start/--stopselfstart CLI added in #10.Related Issue
Closes #18
Changes
crates/hero_office_ui/src/config.rs— dropoo_server_urlfield + env loadcrates/hero_office_ui/src/handlers.rs— drop the entire CSP block from the editor wrapper renderercrates/hero_office/src/main.rs— dropOO_SERVER_URLfrom selfstart CLI's forwarded env listsscripts/nu_service.nu— deleted (278 lines)hero_office_examples/,hero_office_server/{config,main,onlyoffice}.rs) — drive-by fmt drift cleanupTest Results
cargo fmt --check✅cargo check --workspace✅cargo clippy -p hero_office_ui -p hero_office -- -D warnings✅cargo test -p hero_office_server -p hero_office✅npx playwright test office_editor_real4/4 ✅Manual verification
After deploying the new binary, hero_office_ui's action env no longer contains
OO_SERVER_URL; the editor wrapper page emits noContent-Security-Policymeta tag; the editor still loads + renders documents end-to-end via SSH tunnel from the mac.Net
-286 LoC (-305 deletions, +19 insertions).