[go: up one dir, main page]

Skip to content

Refactor resetting secret fields in integrations

Summary

Some integrations reset their "secret" fields (type: 'password') when certain "exposing" fields are changed (e.g. URLs), to avoid leaking secrets to unauthorized parties:

Improvements

  • Extract this behaviour into a shared concern.
  • Add this behaviour to other integrations with secret fields:
    • app/models/integrations/datadog.rb
    • app/models/integrations/zentao.rb

Related links

  • !66972 (019f5d16) was a draft to introduce a concern.
  • #336004 will need information about the "secret" and "exposing" fields to automatically update the UI.
Edited by Markus Koller