暗号化キーを削除または回転できません

ユーザーは暗号化を無効にしたり、キーをローテーションしたりできません。ユーザー名を入力しても、暗号化を無効にするボタンは無効のままです。キーのローテーションは、「申し訳ありませんが、エラーが発生しました。」というエラーで失敗します。

「いいね!」 1

安全にプラグインを削除(データベースからすべて削除して)最初からやり直すにはどうすればよいですか?

暗号化されたメッセージを一切読むことができず、いくつかのユーザーやデバイスを試しましたが、すべて正しく有効化されています。以前はPMを暗号化して使用していましたが、今はまったく機能しません。

PMを無効にしようとすると、「暗号化されたメッセージをすべて削除」することができず、CSSボタンが表示されて続行できません🚫。

この問題は、すべてのデバイスを削除して最初から有効化しようとしたことに関連しているようですが、確信はありません。

申し訳ありませんが、これは私の現在の構成に関連している可能性があります。その場合は、指示に従ってテストできます。同様の状況にある誰かの助けになれば幸いです。

ログ

Scoped order is ignored, it's forced to be batch order.


activerecord-7.0.4.3/lib/active_record/relation/batches.rb:292:in `act_on_ignored_order'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:215:in `in_batches'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:137:in `find_in_batches'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:70:in `find_each'  
/var/www/discourse/lib/post_destroyer.rb:170:in `perform_delete'  
/var/www/discourse/lib/post_destroyer.rb:77:in `destroy'  
/var/www/discourse/plugins/discourse-encrypt/app/jobs/scheduled/encrypted_post_timer_evaluator.rb:25:in `block (3 levels) in execute' 
/var/www/discourse/plugins/discourse-encrypt/app/jobs/scheduled/encrypted_post_timer_evaluator.rb:23:in `each' 
/var/www/discourse/plugins/discourse-encrypt/app/jobs/scheduled/encrypted_post_timer_evaluator.rb:23:in `block (2 levels) in execute' 
activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction' 
activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt' 
activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize' 
activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt' 
activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize' 
activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction' 
activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction' 
activerecord-7.0.4.3/lib/active_record/transactions.rb:209:in `transaction'  
/var/www/discourse/plugins/discourse-encrypt/app/jobs/scheduled/encrypted_post_timer_evaluator.rb:9:in `block in execute' 
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:71:in `each'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:71:in `block in find_each'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:138:in `block in find_in_batches'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:245:in `block in in_batches'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:229:in `loop'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:229:in `in_batches'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:137:in `find_in_batches'  
activerecord-7.0.4.3/lib/active_record/relation/batches.rb:70:in `find_each'  
/var/www/discourse/plugins/discourse-encrypt/app/jobs/scheduled/encrypted_post_timer_evaluator.rb:8:in `execute' 
/var/www/discourse/app/jobs/base.rb:292:in `block (2 levels) in perform'  
rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:82:in `with_connection'
/var/www/discourse/app/jobs/base.rb:279:in `block in perform'  
/var/www/discourse/app/jobs/base.rb:275:in `each'  
/var/www/discourse/app/jobs/base.rb:275:in `perform'  
/var/www/discourse/app/jobs/base.rb:346:in `perform'  
mini_scheduler-0.16.0/lib/mini_scheduler/manager.rb:122:in `process_queue'  
mini_scheduler-0.16.0/lib/mini_scheduler/manager.rb:70:in `worker_loop'  
mini_scheduler-0.16.0/lib/mini_scheduler/manager.rb:59:in `block (2 levels) in ensure_worker_threads'  

job	Jobs::EncryptedPostTimerEvaluator
「いいね!」 1

私もテストサイトを同様の状態にしてしまい、この件について回答を探しています。 :slight_smile:

「いいね!」 2

これを再現できます。

テストユーザーを使用して初めて暗号化を有効にするとスムーズに進みますが、その後無効にする方法がありません。

  • Preferences/Security からテストユーザーの暗号化メッセージを有効にする
  • レンチアイコンをクリックし、「暗号化メッセージを無効にする」を選択する
  • 無効にするボタンがグレー表示され、押せません

暗号化メッセージがあり、「確認して入力」する必要がある場合、これも押せないボタンになります。

有効化する際に、ブラウザコンソールに次のエラーが表示されます。

[PLUGIN discourse-encrypt] reopenWidget: Could not find widget quick-access-panel in registry widget.js:82
    reopenWidget widget.js:82
    reopenWidget plugin-api.js:654
    initialize decrypt-topics.js:104
    withPluginApi plugin-api.js:2159
    initialize decrypt-topics.js:101
    initialize app.js:173
    runInstanceInitializers Ember
    each dag-map.js:192
    walk dag-map.js:121
    each dag-map.js:66
    topsort dag-map.js:72
    Ember 4
    invoke queue.ts:201
    flush queue.ts:98
    flush deferred-action-queues.ts:75
    _end index.ts:616
    _boundAutorunEnd index.ts:257
    (Async: promise callback)
    n platform.ts:28
    flush Ember
    _scheduleAutorun index.ts:803
    _ensureInstance index.ts:791
    schedule index.ts:384
    Ember 6
    <anonymous> start-app.js:4
    <anonymous> discourse-boot.js:20
    <anonymous> discourse-boot.js:21

キーローテーションの文字列が見つからないことも発見しました。

「いいね!」 4

これらのコンソール警告はこのPRで解決されます。このトピックの問題とは関係ありません。

「いいね!」 4

アカウントから暗号化を削除できません(Encrypt plus Discourse の最新バージョンを使用しています)。

ボタンが無効のままなので、キーを紛失したため最初からやり直す必要があります(試していますが、暗号化されたメッセージを削除する問題はありません)。最初からやり直したいのです :slight_smile:

@cvx が discourse-encrypt のモーダルポップアップの改善に取り組んでいるため、現在はるかにうまく機能するはずです。アップデート後に問題が発生している場合は、お知らせください。

「いいね!」 4

このトピックは18時間後に自動的に閉じられました。返信はもう許可されていません。