Skip to content

Commit a851fe4

Browse files
committed
Initial commit
0 parents  commit a851fe4

File tree

79 files changed

+4049
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4049
-0
lines changed

.cfconfig.json

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
{
2+
"ACF11Password":"CE9938D7E4E1C617EB071941B1D154016B81A10C1B38DBA3C2828B055D07B40A",
3+
"ACF11RDSPassword":"ewAdjyWYEiLoCNKrmPJqPx7R+FpDnJoB2JiE0zyv5uoKtBbhQcRCW70FpruCGHUT7BtpSKfX/wx/C25mcZgzVc61YeN/0UilO7V6qXUcLlOZg7f/A9ljR9saWi6r9BmKVqExs1X+1r2l60gY7QuUeg==",
4+
"adminAllowConcurrentLogin":true,
5+
"adminAllowedIPList":"",
6+
"adminLoginRequired":true,
7+
"adminRDSEnabled":"false",
8+
"adminRDSLoginRequired":"true",
9+
"adminRDSUserIDRequired":true,
10+
"adminRootUserID":"admin",
11+
"adminSalt":"4A23BBE0-AB52-4869-9C3EEEE536DC2256",
12+
"adminUserIDRequired":false,
13+
"ajaxDebugWindowEnabled":false,
14+
"allowApplicationVarsInServletContext":false,
15+
"allowExtraAttributesInAttrColl":true,
16+
"applicationMangement":true,
17+
"applicationMaximumTimeout":"2,0,0,0",
18+
"applicationMode":"curr2root",
19+
"applicationTimeout":"1,0,0,0",
20+
"CFaaSGeneratedFilesExpiryTime":30,
21+
"CFFormScriptDirectory":"",
22+
"clientStorage":"Cookie",
23+
"clientStorageLocations":{
24+
"Cookie":{
25+
"description":"Client based text file.",
26+
"disableGlobals":false,
27+
"name":"Cookie",
28+
"purgeEnable":true,
29+
"purgeTimeout":10,
30+
"type":"COOKIE"
31+
},
32+
"Registry":{
33+
"description":"System registry.",
34+
"disableGlobals":false,
35+
"name":"Registry",
36+
"purgeEnable":true,
37+
"purgeTimeout":90,
38+
"type":"REGISTRY"
39+
}
40+
},
41+
"compileExtForCFInclude":"*",
42+
"componentCacheEnabled":true,
43+
"datasources":{
44+
"${DB_DATABASE}":{
45+
"allowAlter":true,
46+
"allowCreate":true,
47+
"allowDelete":true,
48+
"allowDrop":true,
49+
"allowGrant":true,
50+
"allowInsert":true,
51+
"allowRevoke":true,
52+
"allowSelect":true,
53+
"allowStoredProcs":true,
54+
"allowUpdate":true,
55+
"blob":false,
56+
"blobBuffer":64000,
57+
"bundleName": "${DB_BUNDLE_NAME}",
58+
"bundleVersion": "${DB_BUNDLE_VERSION}",
59+
"class":"${DB_CLASS}",
60+
"clientApplicationName":false,
61+
"clientApplicationNamePrefix":"",
62+
"clientHostname":false,
63+
"clientUsername":false,
64+
"clob":false,
65+
"clobBuffer":64000,
66+
"connectionLimit":-1,
67+
"connectionTimeout":1,
68+
"connectionTimeoutInterval":420,
69+
"custom":"useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=true",
70+
"database":"${DB_DATABASE}",
71+
"dbdriver":"MySQL",
72+
"description":"",
73+
"disableAutogeneratedKeyRetrieval":false,
74+
"disableConnections":false,
75+
"dsn":"jdbc:mysql://{host}:{port}/{database}?tinyInt1isBit=false&",
76+
"host":"${DB_HOST}",
77+
"linkedServers":"true",
78+
"logActivity":false,
79+
"logActivityFile":"",
80+
"loginTimeout":30,
81+
"maintainConnections":true,
82+
"maxPooledStatements":"100",
83+
"password":"${DB_PASSWORD}",
84+
"port":"${DB_PORT}",
85+
"queryTimeout":"0",
86+
"SID":"",
87+
"username":"${DB_USER}",
88+
"validate":false,
89+
"validationQuery":""
90+
}
91+
},
92+
"debuggingEnabled":false,
93+
"debuggingIPList":"127.0.0.1,0:0:0:0:0:0:0:1",
94+
"debuggingReportExecutionTimes":false,
95+
"debuggingReportExecutionTimesMinimum":250,
96+
"debuggingReportExecutionTimesTemplate":"summary",
97+
"debuggingShowDatabase":true,
98+
"debuggingShowException":true,
99+
"debuggingShowFlashFormCompileErrors":false,
100+
"debuggingShowGeneral":true,
101+
"debuggingShowTimer":false,
102+
"debuggingShowTrace":true,
103+
"debuggingShowVariableApplication":false,
104+
"debuggingShowVariableCGI":true,
105+
"debuggingShowVariableClient":true,
106+
"debuggingShowVariableCookie":true,
107+
"debuggingShowVariableForm":true,
108+
"debuggingShowVariableRequest":false,
109+
"debuggingShowVariables":true,
110+
"debuggingShowVariableServer":false,
111+
"debuggingShowVariableSession":true,
112+
"debuggingShowVariableURL":true,
113+
"debuggingTemplate":"/WEB-INF/debug/classic.cfm",
114+
"disableInternalCFJavaComponents":false,
115+
"disallowUnamedAppScope":false,
116+
"dotNetClientPort":"6086",
117+
"dotNetInstallDir":"C:\\Work\\CF\\depot\\ColdFusion\\cf_main\\cfusion\\jnbridge",
118+
"dotNetPort":"6085",
119+
"dotNetProtocol":"tcp",
120+
"dotNotationUpperCase":true,
121+
"errorStatusCode":true,
122+
"eventGatewayEnabled":false,
123+
"FlashRemotingEnable":true,
124+
"flexDataServicesEnable":false,
125+
"generalErrorTemplate":"",
126+
"googleMapKey":"",
127+
"inMemoryFileSystemAppLimit":20,
128+
"inMemoryFileSystemEnabled":true,
129+
"inMemoryFileSystemLimit":100,
130+
"inspectTemplate":"always",
131+
"lineDebuggerEnabled":false,
132+
"lineDebuggerMaxSessions":5,
133+
"lineDebuggerPort":5005,
134+
"mailConnectionTimeout":60,
135+
"mailDefaultEncoding":"UTF-8",
136+
"mailSpoolInterval":15,
137+
"maxCFCFunctionRequests":15,
138+
"maxCFThreads":10,
139+
"maxFlashRemotingRequests":5,
140+
"maxOutputBufferSize":1024,
141+
"maxReportRequests":8,
142+
"maxTemplateRequests":25,
143+
"maxWebServiceRequests":5,
144+
"missingErrorTemplate":"",
145+
"monitoringServiceHost":"0.0.0.0",
146+
"monitoringServicePort":"5500",
147+
"ORMSearchIndexDirectory":"",
148+
"perAppSettingsEnabled":true,
149+
"postParametersLimit":100,
150+
"postSizeLimit":20,
151+
"requestQueueTimeout":60,
152+
"requestQueueTimeoutPage":"",
153+
"requestTimeout":"0,0,0,50",
154+
"requestTimeoutEnabled":true,
155+
"RMISSLEnable":false,
156+
"RMISSLKeystore":"",
157+
"robustExceptionEnabled":true,
158+
"sandboxEnabled":false,
159+
"saveClassFiles":true,
160+
"schedulerClusterDatasource":"",
161+
"schedulerLogFileExtensions":"log,txt",
162+
"schedulerLoggingEnabled":false,
163+
"scriptProtect":"FORM,URL,COOKIE,CGI",
164+
"secureJSON":false,
165+
"secureJSONPrefix":"//",
166+
"secureProfileEnabled":false,
167+
"serverCFC":"Server",
168+
"serverCFCEenabled":false,
169+
"sessionCookieDisableUpdate":false,
170+
"sessionCookieHTTPOnly":true,
171+
"sessionCookieSecure":false,
172+
"sessionCookieTimeout":946080000,
173+
"sessionMangement":true,
174+
"sessionMaximumTimeout":"2,0,0,0",
175+
"sessionTimeout":"0,0,30,0",
176+
"sessionType":"cfml",
177+
"templateCacheSize":1024,
178+
"throttleThreshold":4,
179+
"totalThrottleMemory":200,
180+
"UDFTypeChecking":false,
181+
"useUUIDForCFToken":true,
182+
"watchConfigFilesForChangesEnabled":false,
183+
"watchConfigFilesForChangesExtensions":"xml,properties",
184+
"watchConfigFilesForChangesInterval":120,
185+
"websocketEnabled":true,
186+
"weinreRemoteInspectionEnabled":false
187+
}

.cfformat.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"array.empty_padding": false,
3+
"array.padding": true,
4+
"array.multiline.min_length": 40,
5+
"array.multiline.element_count": 2,
6+
"array.multiline.leading_comma.padding": true,
7+
"array.multiline.leading_comma": false,
8+
"alignment.consecutive.assignments": false,
9+
"alignment.consecutive.properties": false,
10+
"alignment.consecutive.params": false,
11+
"brackets.padding": true,
12+
"comment.asterisks": "align",
13+
"binary_operators.padding": true,
14+
"for_loop_semicolons.padding": true,
15+
"function_call.empty_padding": false,
16+
"function_call.padding": true,
17+
"function_call.multiline.leading_comma.padding": true,
18+
"function_call.casing.builtin": "cfdocs",
19+
"function_call.casing.userdefined": "camel",
20+
"function_call.multiline.element_count": 3,
21+
"function_call.multiline.leading_comma": false,
22+
"function_call.multiline.min_length": 40,
23+
"function_declaration.padding": true,
24+
"function_declaration.empty_padding": false,
25+
"function_declaration.multiline.leading_comma": false,
26+
"function_declaration.multiline.leading_comma.padding": true,
27+
"function_declaration.multiline.element_count": 3,
28+
"function_declaration.multiline.min_length": 40,
29+
"function_declaration.group_to_block_spacing": "spaced",
30+
"function_anonymous.empty_padding": false,
31+
"function_anonymous.group_to_block_spacing": "spaced",
32+
"function_anonymous.multiline.element_count": 3,
33+
"function_anonymous.multiline.leading_comma": false,
34+
"function_anonymous.multiline.leading_comma.padding": true,
35+
"function_anonymous.multiline.min_length": 40,
36+
"function_anonymous.padding": true,
37+
"indent_size": 4,
38+
"keywords.block_to_keyword_spacing": "spaced",
39+
"keywords.group_to_block_spacing": "spaced",
40+
"keywords.padding_inside_group": true,
41+
"keywords.spacing_to_block": "spaced",
42+
"keywords.spacing_to_group": true,
43+
"keywords.empty_group_spacing": false,
44+
"max_columns": 120,
45+
"metadata.multiline.element_count": 3,
46+
"metadata.multiline.min_length": 40,
47+
"newline": "\n",
48+
"property.multiline.element_count": 3,
49+
"property.multiline.min_length": 40,
50+
"parentheses.padding": true,
51+
"strings.quote": "double",
52+
"strings.convertNestedQuotes": false,
53+
"strings.attributes.quote": "double",
54+
"struct.separator": " : ",
55+
"struct.padding": true,
56+
"struct.empty_padding": false,
57+
"struct.multiline.leading_comma": false,
58+
"struct.multiline.leading_comma.padding": true,
59+
"struct.multiline.element_count": 2,
60+
"struct.multiline.min_length": 40,
61+
"tab_indent": true
62+
}

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DB_HOST=127.0.0.1
2+
DB_PORT=3306
3+
DB_DATABASE=cbsecurity_passkeys
4+
DB_SCHEMA=cbsecurity_passkeys
5+
DB_USER=root
6+
DB_PASSWORD=
7+
DB_CLASS=com.mysql.cj.jdbc.Driver
8+
DB_BUNDLENAME=com.mysql.cj
9+
DB_BUNDLEVERSION=8.0.19

.github/workflows/cron.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Cron
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * 1
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
name: Tests
11+
env:
12+
DB_HOST: 127.0.0.1
13+
DB_PORT: 3306
14+
DB_DATABASE: cbsecurity_passkeys
15+
DB_SCHEMA: cbsecurity_passkeys
16+
DB_USER: root
17+
DB_PASSWORD: root
18+
DB_CLASS: com.mysql.cj.jdbc.Driver
19+
DB_BUNDLENAME: com.mysql.cj
20+
DB_BUNDLEVERSION: 8.0.19
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
cfengine: ["lucee@5", "lucee@be", "adobe@2018", "adobe@be"]
25+
coldbox: ["coldbox@6", "coldbox@be"]
26+
javaVersion: ["openjdk8", "openjdk11"]
27+
steps:
28+
- name: Checkout Repository
29+
uses: actions/[email protected]
30+
31+
- name: Setup Java
32+
uses: actions/[email protected]
33+
with:
34+
distribution: "temurin"
35+
java-version: "11"
36+
37+
- name: Setup Database and Fixtures
38+
run: |
39+
sudo systemctl start mysql.service
40+
# Create Database
41+
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE ${{ env.DB_DATABASE }} CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
42+
43+
- name: Setup CommandBox CLI
44+
uses: Ortus-Solutions/setup-commandbox@main
45+
with:
46+
version: 5.7.0
47+
install: commandbox-cfconfig
48+
49+
- name: Install dependencies
50+
run: |
51+
box install
52+
box install ${{ matrix.coldbox }} --noSave
53+
54+
- name: Start server
55+
run: |
56+
box server start cfengine=${{ matrix.cfengine }} javaVersion=${{ matrix.javaVersion }} --noSaveSettings
57+
# Install Adobe 2021 cfpm modules
58+
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
59+
box run-script install:2021
60+
fi
61+
62+
- name: Run TestBox Tests
63+
# there is a strange MockBox bug for ACF that only exhibits itself sometimes. :-/
64+
run: box testbox run || box testbox run

0 commit comments

Comments
 (0)