A professional will attach your shade sail to your roof at the soffit under the lower structural edge where it is safe.
How to attach something to a roof.
With the third option crossbars with side rails you can secure an item to the side rails and run tie downs from front to back securing them to the crossbars.
If you plan to install a camera on your roof or install a dish on a shingled roof surface you may need to use nails which create holes in an otherwise waterproof surface exposing the entire structure to moisture problems.
If you have side rails and crossbars the straps can be looped around those.
How to tie a additions roof to existing roof roof designs to attach to existing home how to construct a roof from an exsisting shead how to attach a deck roof to existing roof how to add a roof over porch cost to tie into existing roof attache porch roof on house attach shed roof to house adding a roof to screened in porch adding a roof to existing.
You can also support your shade sail with freestanding poles that are not in direct contact with the house.
This video is about all surface roofing construction.
While this might work in some situations unless you keep the shingle flat against the roof and ensure the nails are at the correct depth there may not be enough support to hold the weight of your item.
Use a tie down that wraps around the item and the rails.
What types of tie downs work best.