appsettings.Production.yml ships hosted-service values that self-hosted instances inherit
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
調査の方向性
src/Exceptionless.Web/appsettings.Production.yml と src/Exceptionless.Job/appsettings.Production.yml の本番設定を読み、次に k8s/ex-prod-values.yaml と Staging の設定を確認してください。ホステッド環境の値をホステッドデプロイメント設定に移し、セルフホストのデフォルト値には含めないでください。セルフホストの起動時に BaseURL が必須となり、ホステッド環境の連携機能と URL がホステッドデプロイメントからのみ提供される状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
appsettings.Production.yml in both the web and job projects contains values specific to the hosted service at exceptionless.io. Production is the default app mode when EX_AppMode is unset, so every self-hosted instance (Docker images included) loads them unless each one is overridden.
Where
src/Exceptionless.Web/appsettings.Production.ymlL10-L20src/Exceptionless.Job/appsettings.Production.ymlL10-L20- Default environment: web
Program.cs, jobProgram.cs.
Hosted values in those files:
| Setting | Value | Effect on a self-hosted instance |
|---|---|---|
BaseURL |
https://be.exceptionless.io |
If EX_BaseURL is forgotten, startup succeeds instead of failing with "BaseURL is a required configuration setting", and links in emails (verification, password reset, notifications), webhook payloads, the Slack redirect URI and the OAuth issuer all point at the hosted site. |
ConnectionStrings:OAuth |
hosted GitHubId, GoogleId, SlackId |
The server treats GitHub, Google and Slack as configured; the startup log reports "Google OAuth, GitHub OAuth, Slack" as enabled integrations even though no secrets are set and none of them work. |
ExceptionlessServerUrl |
https://collector.exceptionless.io |
If an operator sets EX_ExceptionlessApiKey to log the server's own errors but not the server URL, those errors are sent to the hosted collector. It is also added to the UI's Content-Security-Policy connect-src, as is BaseURL. |
InternalProjectId |
hosted project id | Harmless, but meaningless outside the hosted service. |
Steps to reproduce
- Run the
exceptionless/exceptionlessimage with Elasticsearch configured but withoutEX_BaseURLorEX_ConnectionStrings__OAuth. - The startup log lists
Startup optional integrations/auth providers: Google OAuth, GitHub OAuth, Slack. - Sign up and request a password reset. The email link points to
https://be.exceptionless.io/....
Expected
Self-hosted instances start with no third-party client IDs or hosted URLs. A missing BaseURL fails fast at startup.
Suggested fix
Remove BaseURL, ConnectionStrings:OAuth, ExceptionlessServerUrl and InternalProjectId from the appsettings.Production.yml files (leave them as comments if useful as examples) and supply the hosted values through the hosted deployment's own configuration (k8s/ex-prod-values.yaml / environment). Check the Staging files for the same pattern.
- 主要言語
- C#
- スター
- 2.5k
- フォーク
- 508
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 40
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
exceptionless/Exceptionless のほかの issue
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
exceptionless/Exceptionless#2707 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
exceptionless/Exceptionless#2706 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
exceptionless/Exceptionless#2705 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
exceptionless/Exceptionless#2704 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
exceptionless/Exceptionless#2703 ·
メンテナーはふだん 1 日以内に返信
exceptionless/Exceptionless の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
possible bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Include host.wslc.internal in the HTTPS development certificate対応中かも @afscrome が今日担当しました。 オープンarea-commandlinetools
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dotnet/aspnetcore#70122 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
:1st_place_medal: good first issue :cowboy_hat_face: refactor :roller_coaster: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ApplETS/Backend-Hello#78 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信