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
Copy file name to clipboardExpand all lines: docs/URL-Shortener/Reference/Settings/Environment-Variables-Reference.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,7 @@ Below is a list of all environmental variable configurations that the server can
10
10
11
11
The title of the section is the name of the environmental variable.
12
12
13
-
For authentication configuration, please see here for more environmental variables that are supported by SHI URL Shortener via the Microsoft Authentication Library for Node.JS (@azure/identity):
For authentication configuration, please see here for more environmental variables that are supported by SUS via the Microsoft Authentication Library for Node.JS [@azure/identity](https://www.npmjs.com/package/@azure/identity#environment-variables){:target="_blank"}.
15
14
16
15
---
17
16
@@ -20,67 +19,77 @@ For authentication configuration, please see here for more environmental variabl
- Description: Tenant ID of the tenant that the app considers home/authenticates to. Defaults to NULL if not defined and should be overridden during authentication engine start.
24
24
25
25
## `SUS_DB_Host`
26
26
27
27
- Mandatory: `false`
28
28
- Expected string format: string
29
29
- Allowed values: string
30
+
- Default Value: `localhost`
30
31
- Description: Host name of the Azure SQL DB that should be used for storing simple data.
31
32
32
33
## `SUS_DB_Name`
33
34
34
35
- Mandatory: `false`
35
36
- Expected string format: string
36
37
- Allowed values: string
38
+
- Default Value: `UrlShortener`
37
39
- Description: Name of the DB to access and use for relational data storage. This is necessary for Azure SQL DBs as the DB has to be created ahead of time and shouldn't be created inline as a best practice.
38
40
39
41
## `SUS_Debug`
40
42
41
43
- Mandatory: `false`
42
44
- Expected string format: boolean
43
45
- Allowed values: true
46
+
- Default Value: `false`
44
47
- Description: Flag that indicates if the API service should be in debug mode.
45
48
46
49
## `SUS_Headless`
47
50
48
51
- Mandatory: `false`
49
52
- Expected string format: boolean
50
53
- Allowed values: true
54
+
- Default Value: `false`
51
55
- Description: Flag that indicates the system should run with no user interface render.
52
56
53
57
## `SUS_LocalDb`
54
58
55
59
- Mandatory: `false`
56
60
- Expected string format: boolean
57
61
- Allowed values: true
62
+
- Default Value: `false`
58
63
- Description: Flag that indicates the SQLite should be used for the ORM. All other functions are untouched.
59
64
60
65
## `SUS_Local`
61
66
62
67
- Mandatory: `false`
63
68
- Expected string format: boolean
64
69
- Allowed values: true
65
-
- Description: Flag that controls if the server should run with local resources only. This uses SQLite and Azurite as the storage engines and endpoints.
70
+
- Default Value: `false`
71
+
- Description: Flag that controls if the server should run with local resources only. This uses SQLite and prevents external resource calls allowing for a true local only execution experience.
66
72
67
73
## `SUS_DefaultTarget`
68
74
69
75
- Mandatory: `false`
70
76
- Expected string format: URL
71
77
- Allowed values: URL
78
+
- Default Value: `https://shi.com`
72
79
- Description: Location that the service will redirect to if a match is not found.
73
80
74
81
## `SUS_AuthAudience`
75
82
76
-
- Mandatory: `false`
83
+
- Mandatory: `true`
77
84
- Expected string format: GUID
78
85
- Allowed values: GUID
79
-
- Description: Ensure that a client ID is provided if not in debug mode for authentication
- Description: Application ID of the app registration to use as the audience value in the access token validation. Not mandatory if in debug mode as auth is not enforced in debug mode.
80
88
81
89
## `SUS_Test`
82
90
83
91
- Mandatory: `false`
84
92
- Expected string format: boolean
85
93
- Allowed values: true
94
+
- Default Value: `false`
86
95
- Description: Flag that indicates if the application should have special behavior based on if the system is running through automated QA.
Copy file name to clipboardExpand all lines: docs/URL-Shortener/index.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,21 @@
2
2
3
3
## Overview
4
4
5
-
The **SHI - URL Shortener (SUS)** is a security-focused privacy, respecting, compliance-ready URL redirection service. SUS provides controlled creation and management of short URLs, delegated administration through RBAC, strong input validation, and guardrails to prevent misuse (e.g., banned terms, domain scoping).
5
+
The **SHI - URL Shortener (SUS)** is a security-focused, privacy respecting, compliance-ready URL redirection service. SUS provides controlled creation and management of short URLs, delegated administration through RBAC, strong input validation, and guardrails to prevent misuse (e.g., banned terms, domain scoping).
6
6
7
7
## Audience
8
8
9
-
This documentation is primarily intended for technical users who are responsible for deploying, configuring, and maintaining the URL Shortener and Redirector service within customer environments. While the content is geared toward technical implementation, it is written to be accessible to non-technical stakeholders as well.
9
+
This documentation is primarily intended for technical users who are responsible for deploying, configuring, and maintaining the URL Shortener service within customer environments. While the content is geared toward technical implementation, it is written to be accessible to non-technical stakeholders as well.
10
10
11
11
## SUS in the Security Landscape
12
12
13
13
- Zero trust: Every request re‑validated (types, UUID formats, filter shapes).
14
14
- Strong runtime validation: Uses structural equality/type guards to reject malformed inputs early (400).
15
15
- Principle of least privilege: Distinct scopes required for privileged sets (e.g., domain & ban list modifications).
0 commit comments