Repository navigation
cmd/tailscale/cli: Add CLI command to update certs on Synology devices. - #10994
Conversation
Fixes tailscale#4674 Signed-off-by: Will Morrison <[email protected]>
|
A note about testing: I do not have a Synology device that I can install a new version of tailscale on to test this. I have tested that the commands used by this code work on my Synology device, but since the only access I have to it is via tailscale, I don't want to risk losing that access by reinstalling the tailscale package. If there are Synology devices that could be used to test this new command on (with different DSM versions perhaps), please let me know how to go about doing that testing. |
|
@DentonGentry I don't have permissions to assign a reviewer in this repository, and nobody has picked up this PR in the last week. Could you tell me what I need to do to get this PR progressing? |
|
@sailorfrag Could you please let me know what is needed to get this PR reviewed and merged? |
|
I'm not able to test out Synology changes because I don't have any devices but I've asked internally for someone to take a look |
|
@sailorfrag This PR seems to have fallen through the cracks again. @sailorfrag can you let me know who was doing the testing so I can follow up with them directly? |
|
@bradfitz @danderson This PR has gotten no review for over 2 months now. Please let me know who is responsible for reviewing open source contributions to tailscale, (or better yet update the contributions section of the README), so that I don't have to ping the fine members of the Tailscale GitHub org at random hoping for a response. :) |
|
Thanks so much for merging this! I've waited a long time for this 🙏🏻 But just to things right: This is not included in 1.64.0, right? When will this be released? |
|
It's in 1.64.0. |
|
I'm on 1.64.0 (Synology DSM 7.2.1-69057 Update 4) and the subcommand does not exist. What am I doing wrong? |
|
It's a configure subcommand: |
|
@WillMorrison thank you for your persistence in getting this merged. :) Couple of quick questions. Is this analogous to a certbot renew, in that I should run it twice a day and it will only renew a cert when needed, or should I only run it every 90 days? Does the API call that uploads the cert trigger a restart / reload of services configured in DSM to use it? |
I believe that tailscale caches certificates and won't request a new one if the old one is still valid.
I know the DSM will restart the web server, but I have no idea if anything else will happen for services that are configured to use the cert. |
|
I came across this discussion while looking for ways to renew certificates that are used with Tailscale on synology NAS. I report on my experience hoping it might help others. I set up a task to run After renewal, the login page for the NAS immediately worked. Synology Drive (for syncing files between computer and NAS) also worked right away. However, Hyperbackup (that I use to back up one NAS to another) did not work until I restarted both units; before restarting I was getting an error that the target for the backup was offline and when trying to reconnect it said failed to reach destination. |
It worked for me for the For some reason the new command is nowhere documented (except for this PR), so I wrote my own guide here: https://sim642.eu/blog/2024/08/11/tailscale-https-certificate-on-synology-nas/. Hopefully, it also gets mentioned in the official Tailscale documentation at some point. |
Hi Simmo, unfortunately your guide didn't work for me... any further pointers? I have detailed my steps so far on reddit. |
|
The output sounds like you might need to update Tailscale on your Synology because it doesn't seem to have the |
|
There is currently also an issue with the certificate generated, please see: #12762 |
Fixes #4674