zalando-zmon/zmon-aws-agent

Entity ID might contain invalid characters

Closed this issue · 1 comments

The generated entity IDs are not sanitized, i.e. invalid characters in application_id or application_version might break the entity IDs of type "instance".

This is a serious bug as the agent essentially stops working (e.g. throws error on every entity DELETE).

The entity ID needs to comply with the regex ^[a-z][a-z0-9@._:\[\]-]+$ (see https://github.com/zalando-zmon/zmon-controller/blob/master/database/zmon/10_data/04_tables/10_entity.sql#L7).