Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

scheduling: profile refusals on appointment detail, busy-import and operational routes log nothing

オープン 初心者向け
#2,412 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

crates/registry-scheduling/src/auth.rs から始めます; 154行目の log_authentication_refusal! を参照し、132、182、189、214行目に一致する呼び出しを追加します。既存の reads-scope テストを反映して、プロフィールを持たない有効なトークンでルートごとに1つの値なし info log をアサートします。完了とは、4つのルートすべてが診断をログに記録し、テストが通ることを意味します。

索引モデルが issue の本文から書いたものです。

説明

area:scheduling criticality:p3 enhancement triage:needs-implementation

Found in review of #2357.

Observed

When a verified caller lacks the required profile, require_scope (crates/registry-scheduling/src/auth.rs:144) emits the rate-limited, value-free diagnostic log_authentication_refusal! (line 154) before returning AuthenticationError::Profile. The reads and explain routes go through it.

Three routes return the same Profile refusal without any log line:

  • Appointment detail: authenticate_appointment_detail returns Err(AuthenticationError::Profile) at auth.rs:132.
  • Busy-source preview and apply: authenticate_busy_source maps both identity and profile failures with .map_err(|_| AuthenticationError::Profile) at auth.rs:182 and auth.rs:189.
  • Operational read: authenticate_operational_read maps authorize_operational_read failures the same way at auth.rs:214.

The HTTP response is correct on all three (ProfileNotAuthorized, http.rs:905); nothing leaks. This is an observability gap only: an operator misconfiguring appointmentReadProfiles or busyImportProfiles sees no log line explaining the refusals.

Expected

Emit the same log_authentication_refusal! diagnostic (stage Scope, a fixed message, a remedy naming the profile configuration keys, no scope, profile or claim values) at each of the four sites above. Test: call each route with a valid token lacking the profile and assert a single value-free info record, mirroring the existing reads-scope coverage.

主要言語
Rust
スター
2
フォーク
0
平均マージ
8時間 29分
マージ済み PR(30日)
243

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

registrystack/registry-stack のほかの issue

registrystack/registry-stack の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。