I've always heard complete darkness is optimal. If it comes down to you not having enough space in a cabinet or something, leave it on the counter and throw a dish towel or T-shirt over it, maybe?
I know a single anecdote might not be really useful, but just in case, I will point out I've been doing my ferment on top of the fridge in a good amount of light 18ish hours out of the day and as far as I can tell, it's fermenting fine.
YMMV, IMHO, etc....
- PtMD989 likes this