You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
This adds the subcommand nhost cloud to develop against the cloud:
nhost up cloud --subdomain qlcazppbqealeryejopn --postgres-url $POSTGRES_URL
...
Applying migrations...
INFO nothing to apply on database: default
Applying metadata...
Downloading metadata...
INFO Help us improve Hasura! The cli collects anonymized usage stats which
allow us to keep improving Hasura at warp speed. To opt-out or read more,
visit https://hasura.io/docs/latest/graphql/core/guides/telemetry.html
Nhost development environment started.
URLs:
- Console: https://local.hasura.local.nhost.run
- Dashboard: https://local.dashboard.local.nhost.run
This will only start the console and the dashboard and will be connected against the specified project (defaulting to the linked project). Any changes done locally should be both reflected in the cloud project and also update the metadata/migrations locally allowing you to use a cloud project as development environment.
PR Type
Enhancement
Description
Add nhost cloud command for cloud project development
Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪
🧪 No relevant tests
🔒 Security concerns
Hardcoded JWT secret: The code contains a hardcoded JWT secret set to "FIXME" which is a placeholder value. This could lead to security vulnerabilities if deployed without proper configuration. Additionally, the admin secret and postgres URL are passed as command-line flags which could be visible in process lists, potentially exposing sensitive credentials.
The JWT secret is hardcoded as "FIXME" which is a security concern and indicates incomplete implementation. This should be properly generated or configured.
The upErr function is called with nolint:contextcheck but the context from the parent function should be passed through for proper cancellation handling.
The hardcoded jwtSecret value "FIXME" indicates incomplete implementation and could lead to security vulnerabilities in production. This should be replaced with a proper secret generation or configuration mechanism.
-const jwtSecret = "FIXME"+jwtSecret := generateSecureJWTSecret() // or pass as parameter
Suggestion importance[1-10]: 8
__
Why: The hardcoded jwtSecret value "FIXME" represents a significant security concern that could lead to vulnerabilities in production environments and should be addressed with proper secret management.
Medium
General
Remove command string whitespace
The multi-line string contains leading whitespace that will be included in the command execution, potentially causing shell parsing issues. Remove the indentation from the command string to ensure proper execution.
Why: The suggestion correctly identifies potential shell parsing issues with leading whitespace in the multi-line command string, but the impact is moderate as most shells handle this gracefully.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
This adds the subcommand
nhost cloudto develop against the cloud:This will only start the console and the dashboard and will be connected against the specified project (defaulting to the linked project). Any changes done locally should be both reflected in the cloud project and also update the metadata/migrations locally allowing you to use a cloud project as development environment.
PR Type
Enhancement
Description
Add
nhost cloudcommand for cloud project developmentCreate cloud-specific Docker Compose configuration
Update migration/metadata functions to accept custom endpoints
Fix URL scheme constants and authentication redirect URL
Changes walkthrough 📝
1 files
Fix authentication redirect URL subdomain5 files
Add cloud development command implementationUpdate migration functions to accept endpoint parameterCreate cloud-specific Docker Compose configurationAdd endpoint parameter to migration methodsRegister cloud command in CLI application2 files
Use scheme constants for URL protocolsReplace hardcoded protocols with scheme constants