You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support protected files and some input cleanup (#39)
* protected files support and input cleanup in deploy-config.sh
This change also adds support for the protected files
feature supported by NGINXaaS. Users can give a new optional
input called protected-files that contains a comma
separated list of all the files that need to be marked
as protected. For more information, visit:
https://docs.nginx.com/nginxaas/azure/getting-started/nginx-configuration/nginx-configuration-portal/#add-an-nginx-configuration
* Input cleanup in deploy-certificate.sh
This brings deploy-certificate.sh up to
parity with the input validation changes
made in deploy-config.sh. Adds some more
input validation for certificate parameters.
* restore previous action name
* update README.md to reflect new version of the action
Copy file name to clipboardExpand all lines: action.yml
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
name: "NGINXaaS for Azure Deployment Sync"
1
+
name: "NGINXaaS Configuration Sync"
2
2
description: "Sync NGINX configuration from a git repo and/or certificates from an Azure Key Vault to an NGINXaaS for Azure deployment"
3
3
inputs:
4
4
subscription-id:
@@ -20,14 +20,19 @@ inputs:
20
20
default: "nginx.conf"
21
21
transformed-nginx-config-directory-path:
22
22
description: >
23
-
'The transformed absolute path of the NGINX configuration directory in NGINXaaS for Azure deployment, example: "/etc/nginx/".
24
-
If the "include" directive in the NGINX configuration files uses absolute paths, the path transformation
25
-
can be used to overwrite the file paths when the action synchronizes the files to the NGINXaaS for Azure deployment.'
23
+
'The absolute directory path in the NGINXaaS for Azure deployment where your configuration files will be placed.
24
+
All files found in the nginx-config-directory-path will be copied to this location in the deployment.
25
+
For example, use "/etc/nginx/" to match the standard NGINX directory structure on your NGINXaaS deployment.
26
+
If your NGINX configuration files use absolute paths in "include" directives, this setting ensures those paths are correctly mapped in the deployment by prepending the specified directory.'
26
27
required: false
27
28
default: ""
28
29
nginx-certificates:
29
-
description: 'An array of JSON objects each with keys nginx_cert_name, keyvault_secret, certificate_virtual_path and key_virtual_path. Example: [{"certificateName": "server1", "keyvaultSecret": "https://...", "certificateVirtualPath": "/etc/ssl/certs/server1.crt", "keyVirtualPath": "/etc/ssl/certs/server1.key" }, {"name": "server2", "keyvaultSecret": "https://...", "certificateVirtualPath": "/etc/ssl/certs/server2.crt", "keyVirtualPath": "/etc/ssl/certs/server2.key" }] '
30
+
description: 'An array of JSON objects each with keys nginx_cert_name, keyvault_secret, certificate_virtual_path and key_virtual_path. Example: [{"certificateName": "server1", "keyvaultSecret": "https://...", "certificateVirtualPath": "/etc/nginx/certs/server1.crt", "keyVirtualPath": "/etc/nginx/certs/server1.key" }, {"name": "server2", "keyvaultSecret": "https://...", "certificateVirtualPath": "/etc/nginx/certs/server2.crt", "keyVirtualPath": "/etc/nginx/certs/server2.key" }] '
30
31
required: false
32
+
protected-files:
33
+
description: "Comma-separated list of file paths relative to nginx-config-directory-path that should be marked as protected. Example: 'ssl/private.key,conf.d/secrets.conf'"
34
+
required: false
35
+
default: ""
31
36
debug:
32
37
description: "Enable/Disable debug output."
33
38
required: false
@@ -36,10 +41,10 @@ runs:
36
41
using: "composite"
37
42
steps:
38
43
- name: "Synchronize NGINX certificate(s) from the Git repository to an NGINXaaS for Azure deployment"
0 commit comments