probo icon indicating copy to clipboard operation
probo copied to clipboard

Not able to login after creating user, looks like due to cookies. I am using public IP

Open rusapkar-cci opened this issue 1 year ago • 7 comments

dev.yaml file

unit: metrics: addr: "localhost:8081" tracing: addr: "localhost:4317" max-batch-size: 512 batch-timeout: 5 export-timeout: 30 max-queue-size: 2048

probod: hostname: "0.0.0.0:8080" encryption-key: "thisisnotasecretAAAAAAAAAAAAAAAAAAAAAAAAAAA=" chrome-dp-addr: "localhost:9222"

api: addr: "0.0.0.0:8080" cors: allowed-origins: ["http://localhost:8080", "http://localhost:5173", "http://PUBLIC_IP:8080"] extra-header-fields: {}

pg: addr: "PUBLIC_IP:5432" username: "postgres" password: "postgres" database: "probod" pool-size: 100

auth: disable-signup: false invitation-confirmation-token-validity: 3600 cookie: name: "SSID" domain: "PUBLIC_IP" secret: "this-is-a-secure-secret-for-cookie-signing-at-least-32-bytes" duration: 24 password: pepper: "this-is-a-secure-pepper-for-password-hashing-at-least-32-bytes" iterations: 1000000

trust-auth: cookie-name: "TCT" cookie-domain: "PUBLIC_IP" cookie-duration: 24 token-duration: 168 report-url-duration: 15 token-secret: "this-is-a-secure-secret-for-trust-token-signing-at-least-32-bytes" scope: "trust_center_readonly" token-type: "trust_center_access"

Tried multiple config changes but not working. Works with localhost only.

rusapkar-cci avatar Sep 11 '25 06:09 rusapkar-cci

This application is not intended to be publicly exposed when run locally. The local environment is meant solely for development purposes. I strongly recommend that you do not expose it through your public IP. Instead, properly deploy it: this will allow you to use a proper domain, enable HTTPS, and take advantage of other essential security features.

You can use our Docker image (ghcr.io/getprobo/probo:latest). The only mandatory dependencies are S3 (or an equivalent) and PostgreSQL (PG). We will soon write documentation about proper deployment.

SachaProbo avatar Sep 11 '25 09:09 SachaProbo

I've set up Probo on an Ubuntu server (not a local dev machine), and I’d like to access it remotely for testing and internal use. I do plan to properly set up DNS and configure SSL (likely via a reverse proxy like Nginx with Let's Encrypt) so it’s not exposed as a bare IP.

rusapkar-cci avatar Sep 11 '25 09:09 rusapkar-cci

I just want confirmation if current setup works with IP or DNS.

rusapkar-cci avatar Sep 11 '25 09:09 rusapkar-cci

Did you try:

cookie:
  domain: "Domain=<LOCAL_IP>"

?

SachaProbo avatar Sep 11 '25 10:09 SachaProbo

Yes not working

rusapkar-cci avatar Sep 11 '25 10:09 rusapkar-cci

Can you please confirm is this setup works with IP?

rusapkar-cci avatar Sep 12 '25 10:09 rusapkar-cci

We never deployed it directly just using an IP without a domain, so we don't know what could be the issue with the cookie.

SachaProbo avatar Sep 16 '25 07:09 SachaProbo