Commit Graph

539 Commits (4f96a2a6679a7093ef36b8746431d32dcd5e2253)

Author SHA1 Message Date
neil 7362e8de4d fix format 4 months ago
Shirasawa 76719d1bf5
fix: fix ali_dcdn function naming typo 4 months ago
PMExtra 89342bcb75 add ali_dcdn deploy hook 4 months ago
PMExtra 2ea37e6a0d refactor(ali): check the result of prepare_ali_credentials 4 months ago
PMExtra ea2330b49f refactor(ali): move the loading script into ali_cdn_deploy 4 months ago
PMExtra 610bb2b85c refactor(ali): set API endpoint for each action 4 months ago
PMExtra fca6e9b932 refactor: Alibaba Cloud API 4 months ago
neil 2d282597ca fix format 5 months ago
neil beb31ab2fa
Merge pull request #5246 from 3VAbdAVE/dev
Updating unifi deploy hook - remove keytool requirement
5 months ago
neil e6461380c6
Merge pull request #5205 from PMExtra/feature/ali_cdn
feat(deploy_ali_cdn): support Alibaba Cloud CDN deployment
5 months ago
3VAbdAVE d8637b2c0f fixes #3359
Ubiquiti removed keytool (and java) from recent releases of Unifi OS. This moves from keytool to openssl's native pkcs12.

Tested on Unifi Dream Machine which runs Unifi OS and a built-in Unifi controller.

Also added backup of existing files prior to change in case anything goes wrong, and update system configuration with compatible ciphers.
6 months ago
neil bb8386ab85
Merge pull request #5245 from nathanejohnson/master
RouterOS - make deploy more resilient
6 months ago
Nathan Johnson e711d168df RouterOS - make deploy more resilient
In the case where importing the cert and key removes the files from disk
the existing deploy will fail when it tries to remove those files.  This
still attempts to remove the files but catches the error and moves on instead
of bombing like before.

Similarly, if the deploy had failed before, subsequent deploys would fail
because the script already existed, so it would not be able to create
the script.  This first attempts to remove the script if it exists, and then
creates the script.
6 months ago
neil 11aef82993
Merge pull request #5139 from scruel/scruel-patch-1
feat: guide user to run script as root to create temp admin user
7 months ago
Scruel Tao 60569fdd83
fix(deploy): respect api path with synology Auth API
fix #5184
7 months ago
PMExtra 945b7de76f feat(deploy_ali_cdn): improve upper-case 7 months ago
PMExtra 3c35eadbc4 feat(deploy_ali_cdn): support Alibaba Cloud CDN deployment 7 months ago
Marek Wester e0c63d58b2 improve compatibility with FreeBSD
it is related to this bug report: opnsense/plugins#3525

FreeBSD's sed doesn't have the -z option, so empty certificates are delivered to vault when running the script on FreeBSD.
8 months ago
Scruel Tao 1dbc58d4e0
chore: optimize more msgs 9 months ago
Scruel Tao 47ccb28482
chore: typo 9 months ago
Scruel Tao 744dea00ca
feat: guide user to run script as root to create temp admin user
Message text and comment optimized
9 months ago
Scruel Tao cd01104de9
fix(deploy_dsm): ensure grep get the error code
Added grep -o option to ensure the script won't get other digits as the error code result
9 months ago
Scruel Tao 9ff89b570f
fix(deploy_dsm): missing gerp -P option on busybox
Fixes:  #5105
9 months ago
neil 9863e7ea6e
Merge pull request #5023 from scruel/patch-dsm-deploy
Patch Synology DSM deploy: support DSM 6.x & user-friendly refactor.
10 months ago
neil c51104f956 fix format 10 months ago
neil cc5c722e29
Merge pull request #5072 from aSauerwein/master
feature: add template option for panos deploy hook
10 months ago
asauerwein 4fcddd1893 add template option 10 months ago
neil 2728d2aa6e fix format 11 months ago
neil 0588fc6b7c
Merge pull request #4581 from wlallemand/haproxy-hot-update
haproxy deploy hook updates existing certificate over stats socket
11 months ago
Scruel Tao 6af5293315 doc: adjust 11 months ago
Scruel Tao ff090d2f74 fix lint 11 months ago
Scruel Tao 68e3a12a91 feat: improve robustness of the usage of DSM tool `synogroup` 11 months ago
Scruel Tao 50eda6b678 fix: lint 11 months ago
Scruel Tao 192ec598a3 feat: add `SYNO_LOCAL_HOSTNAME` to prevent remote deploy via temp admin method 11 months ago
Scruel Tao 5b449999a5 refactor: unify variable naming convention again (revert some changes) 11 months ago
Scruel Tao afed62f6de fix: should save `SYNO_UseTempAdmin` only after login success. 11 months ago
Scruel Tao 59d1e16f9c feat: bypass enforce temp admin 2FA 11 months ago
Scruel Tao dbe0d477d6 feat: more user-friendly logic & error messages. 11 months ago
Scruel Tao 7248560169 feat: support DSM 6.x 11 months ago
Scruel Tao f840f7d75b refactor: unify variable naming convention 11 months ago
Scruel Tao cf3839ecec
doc(deploy): update usage doc 11 months ago
neil aa8cf76fb1
Merge pull request #4706 from scruel/syno-patch
Add SYNO_USE_TEMP_ADMIN variable & Fix broken logic
12 months ago
neil 2e58cf1168
Merge pull request #4940 from dario-pilori/fix-routeros-7
Fix RouterOS deploy hook for 7
1 year ago
Dario Pilori 3ca97d7258
Remove whitespace in script name in routeros.sh deploy hook 1 year ago
LordDarkneo 6992659ba9
Update synology_dsm.sh 1 year ago
LordDarkneo 05696d443a
Update synology_dsm.sh
#2727 issue when logging out on older version - using variables to unlog only for CERT user
1 year ago
LordDarkneo f59a925897
Update synology_dsm.sh
Issue for lougout
1 year ago
William Lallemand e09d45c844 haproxy; don't use '*' in the filename for wildcard domain
By default acme.sh uses the '*' character in the filename for wildcard.
That can be confusing within HAProxy since the * character in front of a
filename in the stat socket is used to specified an uncommitted
transaction.

This patch replace the '*' by a '_' in the filename.
This is only done when using the default filename, the name can still be
forced with an asterisk.
1 year ago
William Lallemand 36fc321096 haproxy: use the master CLI for hot update
DEPLOY_HAPROXY_MASTER_CLI allows to use the HAProxy master CLI instead
of a stats socket for DEPLOY_HAPROXY_HOT_UPDATE="yes"

The syntax of the master CLI is slightly different, a prefix with the
process number need to be added before any command.

This patch uses ${_cmdpfx} in front of every socat commands which is
filled when the master CLI is used.
1 year ago
William Lallemand 98a7a01dbb haproxy: deploy script can add a new certificate over the stats socket
DEPLOY_HAPROXY_HOT_UPDATE="yes" now allows to add a new certificate
within HAProxy instead of updating an existing one.

In order to work, the ${DEPLOY_HAPROXY_PEM_PATH} value must be used as a
parameter to the "crt" keyword in the haproxy configuration.

The patch uses the following commands over HAProxy stats socket:
- show ssl cert
- new ssl cert
- set ssl cert
- commit ssl cert
- add ssl crt-list
1 year ago