Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-hosted Grist Doesn't Work with Kubernetes Deployment (Custom Images) #1450

Open
1 of 2 tasks
ravi-cloudastra opened this issue Feb 15, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@ravi-cloudastra
Copy link

Describe the current behavior

Self-hosted Grist fails to work properly when deployed on Kubernetes with a custom-built image from the tag/v1.3.3 branch. However, it works fine when using the official Grist public images.

Actual Behavior

  • Requests to some API endpoints (e.g., /api/session/access/active) are being made over HTTP instead of HTTPS, leading to Mixed Content errors and blocked requests.

Additional Context

  • The official Grist public image works fine on HTTPS, but the custom-built image from tag/v1.3.3 fails due to mixed content errors.
  • This issue occurs without making any modifications to the Grist source code.

Possible Causes

  • The custom-built image might not be properly enforcing HTTPS.
  • WebSocket (ws://) and API calls might be defaulting to http:// instead of https://.
  • The Grist Dockerfile or environment variables might need updates for proper HTTPS enforcement in self-hosted environments.

I have tried with APP_HOME_URL and APP_DOC_URL also then its healthcheck is failing.

Steps to reproduce

1.Deploy Grist on Kubernetes using the official Grist public image → Works fine over HTTPS.
2.Build a custom Docker image from Grist GitHub repo (branch main, tag v1.3.3) using the Dockerfile.
3.Deploy this custom-built image on Kubernetes.
4.Access Grist via HTTPS → Observe Mixed Content errors in browser console.

Describe the expected behavior

Grist should work over HTTPS without mixed content errors when using a custom-built image, just like it does with the public image.

Where have you encountered this bug?

Instance information (when self-hosting only)

Error Message (Browser Console)

Mixed Content: The page at 'https://your-grist-url/' was loaded over HTTPS, but requested an insecure resource 'http://your-grist-url:8484/api/session/access/active'.
This request has been blocked; the content must be served over HTTPS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant