feat(dkim): make key size configurable and allow keys to be rotated

This commit is contained in:
Adam Cooke
2026-10-01 12:32:46 +01:00
committed by GitHub
parent ced77a3860
commit d96eddbade
16 changed files with 845 additions and 93 deletions
@@ -0,0 +1,10 @@
# frozen_string_literal: true
class AddPendingDKIMFieldsToDomains < ActiveRecord::Migration[7.0]
def change
add_column :domains, :pending_dkim_private_key, :text
add_column :domains, :pending_dkim_identifier_string, :string
end
end
+3 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2024_03_11_205229) do
ActiveRecord::Schema[7.1].define(version: 2026_09_03_100000) do
create_table "additional_route_endpoints", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.integer "route_id"
t.string "endpoint_type"
@@ -99,6 +99,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_11_205229) do
t.integer "owner_id"
t.string "dkim_identifier_string"
t.boolean "use_for_any"
t.text "pending_dkim_private_key"
t.string "pending_dkim_identifier_string"
t.index ["server_id"], name: "index_domains_on_server_id"
t.index ["uuid"], name: "index_domains_on_uuid", length: 8
end