Foreman plugin does not store interfaces changes to database

Apparently, I was already very close, though I cannot be sure that this is the sole difference that fixed my issue:

# ForemanCnames::Engine
Foreman::Plugin.register :foreman_cnames do
    requires_foreman '>= 3.5.0'

    parameter_filter ::Nic::Interface do |context|
        context.permit :host_aliases_attributes => {}
    end
end

With that, changes in the GUI are propagated to the database!

Next challenge is to find out why these changes are not send to our DNS capsule to add/remove/update the CNAMEs to DNS… If I fail to understand that black magic, I’ll start a new thread.