Portland Design Works tail lights such as the Radbot 1000 clip securely into a bracket that will bolt to your rack. As I recall it's the same bracket interface the Planet Bike uses, so those would work too. PDW also makes the FenderBot which is designed to be attached even more permanently to a fender.