[GRDM-62705] ENABLE_TIMESTAMP = False でタイムスタンプ局へのリクエストを完全に停止できるように修正 - #783
Open
yacchin1205 wants to merge 1 commit into
Open
[GRDM-62705] ENABLE_TIMESTAMP = False でタイムスタンプ局へのリクエストを完全に停止できるように修正#783yacchin1205 wants to merge 1 commit into
yacchin1205 wants to merge 1 commit into
Conversation
yacchin1205
marked this pull request as draft
September 2, 2026 00:10
yacchin1205
marked this pull request as ready for review
September 2, 2026 04:38
This was referenced Sep 4, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
ENABLE_TIMESTAMP = Falseを設定してもタイムスタンプ局(TSA)へのリクエストが止まらない問題を修正します。現状の
ENABLE_TIMESTAMPはファイルアップロード時のフック等5関数でのみ参照されており、Falseにしても以下の経路からはTSAへのリクエストが送信され続けます:celery_add_timestamp_token)トークン発行(=TSAへの通信)を行う
AddTimestamp/AddTimestampHashはadd_token()の内部からのみ呼ばれるため、add_token()の入口で遮断すれば全経路を網羅できます。また、uPKI構成では検証も外部コマンド(ネットワークアクセスの可能性あり)経由で行われるため、検証の共通入口であるcheck_file_timestamp()も停止対象に含めます。Changes
add_token()/check_file_timestamp()の冒頭にENABLE_TIMESTAMPによる早期 return を追加(同ファイル内の既存ガードと同じ形式)Noneを返すことを確認するテストを追加QA Notes
ENABLE_TIMESTAMP = True(デフォルト、変更なし)の環境では挙動は一切変わりませんENABLE_TIMESTAMP = Falseの環境でのE2Eテストとして、自動E2Eテストを実行しました。 https://github.com/RCOSDP/RDM-e2e-test-nb/actions/runs/33574939526 ... Migrationの失敗は [GRDM-62502] E2E Testにおける20250906からのアップグレード試験でmigrationが失敗する問題を修正 #780 , Metadataの失敗に関しては、arXiv APIによる補完処理の失敗(サービスの状況によりまれに失敗) で, Flowable Formsの失敗は E2Eテストでワークフロー開始フォームを開くと画面が二重に描画される不具合を修正 RDM-ember-osf-web#198 , Wikiの問題についてはmainでも発生中であるため、問題ないものと判断しました。Documentation
None (
ENABLE_TIMESTAMPは既存の設定項目です)Side Effects
ENABLE_TIMESTAMP = Falseの環境でのみ、以下の既知の影響があります(UI側の整理は別途対応予定):AttributeErrorがログに記録されます(ファイル単位のexceptで捕捉されタスクは継続します。TSAへの通信は発生しません。Nextcloud は更新検出カーソルが進まないため、同じファイルが次回以降も再検出されます)TIMESTAMP_ALL_VERIFIED/TIMESTAMP_ALL_ADDEDの NodeLog が記録されますTicket
GRDM-62705