-
Notifications
You must be signed in to change notification settings - Fork 29
[INFRA-422] - chore(plane-enterprise): placeholder defaults for signing secrets (PI/LIVE/HMAC) #254
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
Open
akshat5302
wants to merge
1
commit into
master
Choose a base branch
from
fix/placeholder-signing-secret-defaults
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -453,7 +453,7 @@ securityContext: | |
| | env.live_sentry_dsn | | | (optional) Live service deployment comes with some of the preconfigured integration. Sentry is one among those. Here user can set the Sentry provided DSN for this integration. | | ||
| | env.live_sentry_environment | | | (optional) Live service deployment comes with some of the preconfigured integration. Sentry is one among those. Here user can set the Sentry environment name (as configured in Sentry) for this integration. | | ||
| | env.live_sentry_traces_sample_rate | | | (optional) Live service deployment comes with some of the preconfigured integration. Sentry is one among those. Here user can set the Sentry trace sample rate (as configured in Sentry) for this integration. | | ||
| | env.live_server_secret_key | htbqvBJAgpm9bzvf3r4urJer0ENReatceh | | Live Server Secret Key | | ||
| | env.live_server_secret_key | change-to-top-secret | | Live Server Secret Key | | ||
| | env.external_iframely_url | "" | | External Iframely service URL. If provided, the local Iframely deployment will be skipped and the live service will use this external URL | | ||
| | services.live.assign_cluster_ip | false | | Set it to `true` if you want to assign `ClusterIP` to the service | | ||
| | services.live.nodeSelector | {} | | This key allows you to set the node selector for the deployment of `live`. This is useful when you want to run the deployment on specific nodes in your Kubernetes cluster. | | ||
|
|
@@ -565,7 +565,7 @@ securityContext: | |
| | services.pi.annotations | {} | | Custom annotations to add to the Plane AI (PI) API deployment. | | ||
| | env.pg_pi_db_name | plane_pi | | PostgreSQL database name used by Plane AI (PI) when `postgres.local_setup=true`. | | ||
| | env.pg_pi_db_remote_url | "" | | PostgreSQL connection URL for Plane AI (PI) when using a remote database. Required when `postgres.local_setup=false` and Plane AI (PI) is enabled. | | ||
| | env.pi_envs.internal_secret | tyfvfqvBJAgpm9bzvf3r4urJer0Ehfdubk | | Internal secret used by Plane AI (PI) for OAuth and internal APIs. | | ||
| | env.pi_envs.internal_secret | change-to-top-secret | | Internal secret used by Plane AI (PI) for OAuth and internal APIs. | | ||
| | env.pi_envs.plane_api_host | "" | | Override for the Plane API host URL used by Plane AI (PI). Defaults to the license domain. | | ||
| | env.pi_envs.cors_allowed_origins | "" | | CORS allowed origins for Plane AI (PI) API. Defaults to the license domain. | | ||
| | env.pi_envs.log_level | DEBUG | | Log level for Plane AI (PI) API (e.g. DEBUG, INFO, WARNING, ERROR). | | ||
|
|
@@ -835,7 +835,7 @@ To configure the external secrets for your application, you need to define speci | |
| | pi_api_env_existingSecret | `PLANE_PI_DATABASE_URL` | Yes (if `services.pi.enabled=true`) | PostgreSQL connection URL for Plane AI (PI) database | **k8s service example**: `postgresql://plane:[email protected]/plane_pi` <br> <br>**external**: `postgresql://username:password@your-db-host:5432/plane_pi` | | ||
| | | `AMQP_URL` | Yes (if `services.pi.enabled=true`) | RabbitMQ connection URL | **k8s service example**: `amqp://plane:[email protected]:5672/` <br> <br> **external**: `amqp://username:password@your-rabbitmq-host:5672/` | | ||
| | | `AES_SECRET_KEY` | Yes (if `services.pi.enabled=true`) | AES secret key for Plane AI (PI) | `dsOdt7YrvxsTIFJ37pOaEVvLxN8KGBCr` (or your own value) | | ||
| | | `PI_INTERNAL_SECRET` | Yes (if `services.pi.enabled=true`) | Internal secret used by Plane AI (PI) for OAuth and internal APIs | `tyfvfqvBJAgpm9bzvf3r4urJer0Ehfdubk` (or your own value) | | ||
| | | `PI_INTERNAL_SECRET` | Yes (if `services.pi.enabled=true`) | Internal secret used by Plane AI (PI) for OAuth and internal APIs | `change-to-top-secret` (or your own value) | | ||
| | | `OPENAI_API_KEY` | required if `services.pi.ai_providers.openai.enabled` is `true` | OpenAI API key | `your_openai_api_key` | | ||
| | | `CLAUDE_API_KEY` | required if `services.pi.ai_providers.claude.enabled` is `true` | Claude API key | `your_claude_api_key` | | ||
| | | `GROQ_API_KEY` | required if `services.pi.ai_providers.groq.enabled` is `true` | Groq API key | `your_groq_api_key` | | ||
|
|
||
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Block installs that still use placeholder signing secrets.
Line 14 and Line 15 still allow rendering a known shared secret (
change-to-top-secret) when operators forget to override values. That keeps token/signature secrets predictable at deploy time.Suggested fail-fast guard
Apply the same guard pattern to
charts/plane-enterprise/templates/config-secrets/live-env.yaml(Line 9),charts/plane-enterprise/templates/config-secrets/pi-api-env.yaml(Line 66), andcharts/plane-enterprise/templates/config-secrets/silo.yaml(Line 10) for consistency.📝 Committable suggestion
🤖 Prompt for AI Agents