structurizr / onpremises

Structurizr on-premises installation
https://docs.structurizr.com/onpremises
MIT License
117 stars 45 forks source link

Every Workspace is public regardless of what you configure #115

Closed Keyruu closed 2 months ago

Keyruu commented 2 months ago

Description

If you go to {structurizrUrl}/share/{workspaceId} then every diagram is just public regardless of what is present in the DSL. I hope this is not intended.

Steps to reproduce

  1. Spin up the container
  2. Create a workspace
  3. Upload a DSL with visibility private
  4. Go to localhost:8080/share/1 and see every diagram

Screenshot

No response

Code sample

workspace {

    model {
        user = person "User"
        softwareSystem = softwareSystem "Software System" {
            webapp = container "Web Application" {
                user -> this "Uses"
            }
            container "Database" {
                webapp -> this "Reads from and writes to"
            }
        }
    }

    views {
        systemContext softwareSystem {
            include *
            autolayout lr
        }

        container softwareSystem {
            include *
            autolayout lr
        }

        theme default
    }

    configuration {
        visibility private
    }

}

Configuration

Build 2024.03.03

Severity

Critical

Priority

I have no budget and there's no rush, please fix this for free

More information

No response

Keyruu commented 2 months ago

Okay I got it working. You have to specify users if you want to have it private. I think the doc should maybe include that information.