Depends on where in the world you are and whether or not the govenment has declared the eclipse zone as official night.
Having flown over the centre of the channel during the UK eclipse a couple of years back the answer was yes you are legal - no night rating was required as it was not determined as offical night and to be honest it NEVER gets dark enough to warrant one - not even remotely - and I was in the centre of the eclipse path.
There again...having had a CPL/IR at the time I wasnt exactly worried....
Hope this helps,
FF