I have a nodejs app / REST API deployed on heroku,
After I read about cloning heroku app repository, I started to wonder is it safe to deploy my app on heroku? It seemed anyone could clone it freely.
So I tried to clone my app and it succeed without heroku CLI asking me to input any credential info.
Cloning the repository is just as simple as running this line:
heroku git:clone -a appname
Because anyone can see my app name by looking at Request URL through browser dev tool, does it mean they can clone it too?
how can I prevent anyone cloning my app?
If you can easily clone the repo with just the name, then anyone else would be able to. I don't use heroku very much, but I would suggest doing one of a few things: