It’s a discussion that has gained more attention in light of Carrier Fisher’s death, who also appeared in CGI form in Rogue One. In Fisher’s case, she gave permission for the VFX team to recreate her younger self for a Princess Leia cameo while she was still alive. When news of her sudden and tragic death on December 27, 2016 (a fortnight after Rogue One was released) spread, it was naturally assumed by most that the same CGI skill would be used to complete her role in Star Wars: The Last Jedi and Star Wars 9. In fact, some outlets reported that representatives had spared no time in negotiating with her estate for the rights to do so.
Whether it is morally right or morally wrong, it is going to happen. More and more and more..