You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parse_auth_type missing "none" clause causes config import to fail for Elasticsearch sinks #2123
sequin config export produces auth_type: none for Elasticsearch sinks that have no authentication configured. However, sequin config apply (and CONFIG_FILE_PATH boot-time loading) fails because Sequin.Transforms.parse_auth_type/1 does not handle the "none" value.
Steps to Reproduce
Create an Elasticsearch sink with no authentication (auth_type: none)
Export config: sequin config export > config.yaml
Apply to a fresh instance: sequin config apply config.yaml
Error
(FunctionClauseError) no function clause matching in Sequin.Transforms.parse_auth_type/1
Sequin.Transforms.parse_auth_type("none")
lib/sequin/transforms/transforms.ex:1319: Sequin.Transforms.parse_sink/2
If auth_type is removed from the YAML entirely, it defaults to :api_key via parse_auth_type(nil), which then requires auth_value — so there's no way to import an Elasticsearch sink without authentication.
Root Cause
In lib/sequin/transforms/transforms.ex (lines 1622-1625):
Activity
Fix parse_auth_type missing "none" clause for Elasticsearch sinks