Is this legal?

It's California. Just declare your garage a sanctuary garage.