k2hr3-api 1.0.42 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/config/k2hr3-init.sh.templ +4 -4
  2. package/dist/.gitkeep +0 -0
  3. package/dist/src/app.js +262 -0
  4. package/{bin → dist/src/bin}/run.sh +1 -1
  5. package/dist/src/bin/watcher.js +113 -0
  6. package/dist/src/bin/www.js +217 -0
  7. package/dist/src/lib/basicipcheck.js +392 -0
  8. package/dist/src/lib/cacerts.js +106 -0
  9. package/dist/src/lib/dbglogging.js +190 -0
  10. package/dist/src/lib/dummyuserapi.js +719 -0
  11. package/dist/src/lib/ipwatch.js +354 -0
  12. package/dist/src/lib/k2hr3acrutil.js +532 -0
  13. package/dist/src/lib/k2hr3apiutil.js +1444 -0
  14. package/dist/src/lib/k2hr3cliutil.js +183 -0
  15. package/dist/src/lib/k2hr3config.js +832 -0
  16. package/dist/src/lib/k2hr3cryptutil.js +258 -0
  17. package/dist/src/lib/k2hr3dkc.js +12121 -0
  18. package/dist/src/lib/k2hr3extdata.js +198 -0
  19. package/dist/src/lib/k2hr3keys.js +207 -0
  20. package/dist/src/lib/k2hr3resutil.js +111 -0
  21. package/dist/src/lib/k2hr3template.js +6546 -0
  22. package/dist/src/lib/k2hr3tokens.js +2643 -0
  23. package/dist/src/lib/k2hr3userdata.js +296 -0
  24. package/dist/src/lib/k8soidc.js +1000 -0
  25. package/dist/src/lib/openstackapiv2.js +695 -0
  26. package/dist/src/lib/openstackapiv3.js +932 -0
  27. package/dist/src/lib/openstackep.js +667 -0
  28. package/{tests/auto_common.js → dist/src/lib/types.js} +4 -38
  29. package/dist/src/routes/acr.js +704 -0
  30. package/dist/src/routes/debugVerify.js +294 -0
  31. package/dist/src/routes/extdata.js +219 -0
  32. package/dist/src/routes/list.js +264 -0
  33. package/dist/src/routes/policy.js +840 -0
  34. package/dist/src/routes/resource.js +1489 -0
  35. package/dist/src/routes/role.js +2627 -0
  36. package/dist/src/routes/service.js +908 -0
  37. package/dist/src/routes/tenant.js +1141 -0
  38. package/dist/src/routes/userTokens.js +482 -0
  39. package/dist/src/routes/userdata.js +212 -0
  40. package/dist/src/routes/version.js +103 -0
  41. package/package.json +152 -121
  42. package/ChangeLog +0 -378
  43. package/app.js +0 -292
  44. package/bin/watcher +0 -122
  45. package/bin/www +0 -180
  46. package/eslint.config.mjs +0 -68
  47. package/lib/basicipcheck.js +0 -376
  48. package/lib/cacerts.js +0 -71
  49. package/lib/dbglogging.js +0 -151
  50. package/lib/dummyuserapi.js +0 -766
  51. package/lib/ipwatch.js +0 -379
  52. package/lib/k2hr3acrutil.js +0 -516
  53. package/lib/k2hr3apiutil.js +0 -1494
  54. package/lib/k2hr3cliutil.js +0 -191
  55. package/lib/k2hr3config.js +0 -826
  56. package/lib/k2hr3cryptutil.js +0 -254
  57. package/lib/k2hr3dkc.js +0 -12632
  58. package/lib/k2hr3extdata.js +0 -198
  59. package/lib/k2hr3keys.js +0 -234
  60. package/lib/k2hr3resutil.js +0 -100
  61. package/lib/k2hr3template.js +0 -6925
  62. package/lib/k2hr3tokens.js +0 -2799
  63. package/lib/k2hr3userdata.js +0 -312
  64. package/lib/k8soidc.js +0 -1012
  65. package/lib/openstackapiv2.js +0 -764
  66. package/lib/openstackapiv3.js +0 -1032
  67. package/lib/openstackep.js +0 -553
  68. package/routes/acr.js +0 -738
  69. package/routes/debugVerify.js +0 -263
  70. package/routes/extdata.js +0 -232
  71. package/routes/list.js +0 -270
  72. package/routes/policy.js +0 -869
  73. package/routes/resource.js +0 -1441
  74. package/routes/role.js +0 -2664
  75. package/routes/service.js +0 -894
  76. package/routes/tenant.js +0 -1095
  77. package/routes/userTokens.js +0 -511
  78. package/routes/userdata.js +0 -218
  79. package/routes/version.js +0 -108
  80. package/templ/Dockerfile.templ +0 -71
  81. package/tests/auto_acr.js +0 -1101
  82. package/tests/auto_acr_spec.js +0 -79
  83. package/tests/auto_all_spec.js +0 -142
  84. package/tests/auto_control_subprocess.sh +0 -243
  85. package/tests/auto_extdata.js +0 -220
  86. package/tests/auto_extdata_spec.js +0 -79
  87. package/tests/auto_init_config_json.sh +0 -275
  88. package/tests/auto_k2hdkc_server.ini +0 -109
  89. package/tests/auto_k2hdkc_slave.ini +0 -83
  90. package/tests/auto_list.js +0 -439
  91. package/tests/auto_list_spec.js +0 -79
  92. package/tests/auto_policy.js +0 -1579
  93. package/tests/auto_policy_spec.js +0 -79
  94. package/tests/auto_resource.js +0 -10956
  95. package/tests/auto_resource_spec.js +0 -79
  96. package/tests/auto_role.js +0 -6150
  97. package/tests/auto_role_spec.js +0 -79
  98. package/tests/auto_service.js +0 -770
  99. package/tests/auto_service_spec.js +0 -79
  100. package/tests/auto_subprocesses.js +0 -114
  101. package/tests/auto_template.sh +0 -126
  102. package/tests/auto_tenant.js +0 -1100
  103. package/tests/auto_tenant_spec.js +0 -79
  104. package/tests/auto_token_util.js +0 -219
  105. package/tests/auto_userdata.js +0 -292
  106. package/tests/auto_userdata_spec.js +0 -79
  107. package/tests/auto_usertokens.js +0 -565
  108. package/tests/auto_usertokens_spec.js +0 -79
  109. package/tests/auto_version.js +0 -127
  110. package/tests/auto_version_spec.js +0 -79
  111. package/tests/auto_watcher.js +0 -157
  112. package/tests/auto_watcher_spec.js +0 -79
  113. package/tests/k2hdkc_test.data +0 -986
  114. package/tests/k2hdkc_test_load.sh +0 -255
  115. package/tests/k2hr3template_test.js +0 -187
  116. package/tests/k2hr3template_test.sh +0 -339
  117. package/tests/k2hr3template_test_async.js +0 -216
  118. package/tests/k2hr3template_test_template.result +0 -7117
  119. package/tests/k2hr3template_test_template.txt +0 -3608
  120. package/tests/k2hr3template_test_vars.js +0 -194
  121. package/tests/manual_acr_delete.js +0 -143
  122. package/tests/manual_acr_get.js +0 -297
  123. package/tests/manual_acr_postput.js +0 -215
  124. package/tests/manual_allusertenant_get.js +0 -113
  125. package/tests/manual_extdata_get.js +0 -191
  126. package/tests/manual_k2hr3keys_get.js +0 -84
  127. package/tests/manual_list_gethead.js +0 -230
  128. package/tests/manual_policy_delete.js +0 -132
  129. package/tests/manual_policy_gethead.js +0 -275
  130. package/tests/manual_policy_postput.js +0 -297
  131. package/tests/manual_resource_delete.js +0 -433
  132. package/tests/manual_resource_gethead.js +0 -423
  133. package/tests/manual_resource_postput.js +0 -487
  134. package/tests/manual_role_delete.js +0 -404
  135. package/tests/manual_role_gethead.js +0 -547
  136. package/tests/manual_role_postput.js +0 -544
  137. package/tests/manual_service_delete.js +0 -153
  138. package/tests/manual_service_gethead.js +0 -178
  139. package/tests/manual_service_postput.js +0 -348
  140. package/tests/manual_tenant_delete.js +0 -186
  141. package/tests/manual_tenant_gethead.js +0 -268
  142. package/tests/manual_tenant_postput.js +0 -293
  143. package/tests/manual_test.sh +0 -352
  144. package/tests/manual_userdata_get.js +0 -173
  145. package/tests/manual_usertoken_gethead.js +0 -136
  146. package/tests/manual_usertoken_postput.js +0 -310
  147. package/tests/manual_version_get.js +0 -127
  148. package/tests/run_local_test_k2hdkc.sh +0 -174
  149. package/tests/test.sh +0 -333
@@ -1,218 +0,0 @@
1
- /*
2
- * K2HR3 REST API
3
- *
4
- * Copyright 2018 Yahoo Japan Corporation.
5
- *
6
- * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
- * common management information for the cloud.
8
- * K2HR3 can dynamically manage information as "who", "what", "operate".
9
- * These are stored as roles, resources, policies in K2hdkc, and the
10
- * client system can dynamically read and modify these information.
11
- *
12
- * For the full copyright and license information, please view
13
- * the license file that was distributed with this source code.
14
- *
15
- * AUTHOR: Takeshi Nakatani
16
- * CREATE: Tue Oct 2 2018
17
- * REVISION:
18
- *
19
- */
20
-
21
- 'use strict';
22
-
23
- var express = require('express');
24
- var router = express.Router();
25
-
26
- var apiutil = require('../lib/k2hr3apiutil');
27
- var resutil = require('../lib/k2hr3resutil');
28
- var r3userdata = require('../lib/k2hr3userdata');
29
-
30
- // Debug logging objects
31
- var r3logger = require('../lib/dbglogging');
32
-
33
- //---------------------------------------------------------
34
- // Router GET
35
- //---------------------------------------------------------
36
- //
37
- // Mountpath : '/v1/userdata/*'
38
- //
39
- // GET '/v1/userdata/<encrypted data>' : get userdata for openstack on version 1
40
- // response : compressed(gzip) userdata(binary) for openstack
41
- //
42
- // This mount point is for getting compressed userdata of openstack which is
43
- // used at creating instance.
44
- // The response data is compressed by gzip, and it included multipart userdata.
45
- // The userdata probably has "cloud-config" and "script" for registering ip
46
- // address to k2hr3 role as its member.
47
- // The url last path part is url encoded string which is base64 and encrypted
48
- // role-token and role name. This userdata script will register ip address.
49
- //
50
- router.get('/', function(req, res, next)
51
- {
52
- r3logger.dlog('CALL:', req.method, req.url);
53
-
54
- if('GET' !== req.method){
55
- // HEAD request comes here, so it should be routed to head(not defined) function.
56
- next();
57
- return;
58
- }
59
-
60
- var result;
61
- if( !apiutil.isSafeEntity(req) ||
62
- !apiutil.isSafeEntity(req.baseUrl) ||
63
- !apiutil.isSafeEntity(req.headers) ) // Must User-Agent in header
64
- {
65
- result = {
66
- result: false,
67
- message: 'GET request or url is wrong'
68
- };
69
-
70
- r3logger.elog(result.message);
71
- res.type('application/json; charset=utf-8');
72
- resutil.errResponse(req, res, 400, result); // 400: Bad Request
73
- return;
74
- }
75
-
76
- //------------------------------
77
- // Check headers
78
- //------------------------------
79
- var isGzip = false;
80
- if(!apiutil.isSafeEntity(req.headers['user-agent'])){
81
- // 'User-Agent' Must have 'Cloud-Init'
82
- r3logger.elog('GET request does not have User-Agent header');
83
-
84
- result = {
85
- result: false,
86
- message: 'GET request does not have User-Agent header'
87
- };
88
-
89
- r3logger.elog(result.message);
90
- res.type('application/json; charset=utf-8');
91
- resutil.errResponse(req, res, 400, result); // 400: Bad Request
92
- return;
93
- }else{
94
- var strtmp = req.headers['user-agent'].toLowerCase();
95
- if(-1 == strtmp.indexOf('cloud-init')){
96
- // 'User-Agent' Must have 'Cloud-Init'
97
- r3logger.elog('GET request User-Agent does not have Cloud-Init');
98
-
99
- result = {
100
- result: false,
101
- message: 'GET request is not allowed from your client'
102
- };
103
-
104
- r3logger.elog(result.message);
105
- res.type('application/json; charset=utf-8');
106
- resutil.errResponse(req, res, 400, result); // 400: Bad Request
107
- return;
108
- }
109
-
110
- // Check version
111
- var ciptn = new RegExp('cloud-init/([0-9]+).([0-9]+).([0-9]+)'); // regex = /Cloud-Init\/([0-9]+)\.([0-9]+)\.([0-9]+)/
112
- var cimatchs= decodeURI(strtmp).match(ciptn);
113
- if( !apiutil.isEmptyArray(cimatchs) &&
114
- 3 < cimatchs.length &&
115
- ( 0 < Number(cimatchs[1]) ||
116
- 7 < Number(cimatchs[2]) ||
117
- 9 <= Number(cimatchs[3]) )
118
- ){
119
- // [FORCE]
120
- // Cloud-Init is 0.7.9 or after it, this version supports gzip compressed
121
- // userdata. Thus we return gzip compressed userdata.
122
- r3logger.dlog('Cloud-Init version is over 0.7.9, thus we force return gzip compressed userdata');
123
- isGzip = true;
124
- }
125
- }
126
-
127
- if(apiutil.isSafeEntity(req.headers['content-type'])){
128
- if(!apiutil.hasPartString(req.headers['content-type'], ';', 'application/octet-stream', true)){
129
- // should be 'application/octet-stream', but all type is allowed
130
- r3logger.dlog('GET request Content-Type is not application/octet-stream, but continue...');
131
- }
132
- }else{
133
- //r3logger.dlog('GET request doe not have Content-Type, but continue...');
134
- }
135
-
136
- if(apiutil.isSafeEntity(req.headers['accept-encoding'])){
137
- if(apiutil.hasPartString(req.headers['accept-encoding'], ',', ['gzip', 'deflate'], true)){
138
- isGzip = true;
139
- }else if(!isGzip){
140
- // Accept-Encoding should have 'gzip' or 'deflate', but all type is allowed
141
- r3logger.dlog('Get request Accept-Encoding does not have gzip nor deflate, but continue...');
142
- }
143
- }else{
144
- //r3logger.dlog('GET request doe not have Accept-Encoding, but continue...');
145
- }
146
-
147
- //------------------------------
148
- // get url last path and decode it
149
- //------------------------------
150
- // check path matching
151
- var requestptn = new RegExp('^/v1/userdata/(.*)'); // regex = /^\/v1\/userdata\/(.*)/
152
- var reqmatchs = decodeURI(req.baseUrl).match(requestptn);
153
- if(apiutil.isEmptyArray(reqmatchs) || reqmatchs.length < 2 || '' === apiutil.getSafeString(reqmatchs[1])){
154
- result = {
155
- result: false,
156
- message: 'GET request url does not have userdata path parameter'
157
- };
158
-
159
- r3logger.elog(result.message);
160
- res.type('application/json; charset=utf-8');
161
- resutil.errResponse(req, res, 400, result); // 400: Bad Request
162
- return;
163
- }
164
-
165
- // decode and check userdata parameter
166
- var udproc = new r3userdata.userdataProcess;
167
- var roleinfo = udproc.decryptRoleInfo(reqmatchs[1]);
168
- var errorMsg = null;
169
- if(!apiutil.isSafeEntity(roleinfo)){
170
- // [NOTE]
171
- // continue for returning error script
172
- //
173
- errorMsg = 'Get userdata path is invalid.';
174
- r3logger.elog(errorMsg);
175
- }
176
-
177
- //------------------------------
178
- // Make response
179
- //------------------------------
180
- var responsebody = null;
181
- if(isGzip){
182
- // Gzip
183
- responsebody = udproc.getGzipMultipartUserdata(roleinfo, errorMsg);
184
-
185
- res.type('application/zip');
186
- res.setHeader('Content-Encoding', 'gzip');
187
- res.setHeader('Content-Transfer-Encoding', 'binary');
188
- res.setHeader('Content-Disposition', 'attachment; filename=k2hr3-userdata.gz');
189
- res.setHeader('Content-Length', responsebody.length);
190
-
191
- r3logger.dlog('succeed : (response body is gzip compressed)');
192
- res.status(200); // 200: OK
193
- res.send(responsebody.data);
194
- }else{
195
- // Text
196
- var multiobj = udproc.getMultipartUserdata(roleinfo, errorMsg);
197
- responsebody = multiobj.body;
198
-
199
- res.type(multiobj.type);
200
- res.setHeader(multiobj.mimeverkey, multiobj.mimeverval);
201
- res.setHeader(multiobj.partcntkey, multiobj.partcntval);
202
-
203
- r3logger.dlog('succeed : (response body is not gzip compressed)');
204
- res.status(200); // 200: OK
205
- res.send(responsebody);
206
- }
207
- });
208
-
209
- module.exports = router;
210
-
211
- /*
212
- * Local variables:
213
- * tab-width: 4
214
- * c-basic-offset: 4
215
- * End:
216
- * vim600: noexpandtab sw=4 ts=4 fdm=marker
217
- * vim<600: noexpandtab sw=4 ts=4
218
- */
package/routes/version.js DELETED
@@ -1,108 +0,0 @@
1
- /*
2
- * K2HR3 REST API
3
- *
4
- * Copyright 2017 Yahoo Japan Corporation.
5
- *
6
- * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
- * common management information for the cloud.
8
- * K2HR3 can dynamically manage information as "who", "what", "operate".
9
- * These are stored as roles, resources, policies in K2hdkc, and the
10
- * client system can dynamically read and modify these information.
11
- *
12
- * For the full copyright and license information, please view
13
- * the license file that was distributed with this source code.
14
- *
15
- * AUTHOR: Takeshi Nakatani
16
- * CREATE: Wed Jun 8 2017
17
- * REVISION:
18
- *
19
- */
20
-
21
- 'use strict';
22
-
23
- var express = require('express');
24
- var router = express.Router();
25
-
26
- // Debug logging objects
27
- var r3logger = require('../lib/dbglogging');
28
-
29
- //
30
- // GET '/' : get all API version
31
- // output : {'version': 'v1'}
32
- //
33
- router.get('/', function(req, res, next) // eslint-disable-line no-unused-vars
34
- {
35
- r3logger.dlog('CALL:', req.method, req.url);
36
-
37
- var result = {'version': [ 'v1' ]};
38
-
39
- res.type('application/json; charset=utf-8');
40
- res.send(result);
41
- });
42
-
43
- //
44
- // GET '/v1': get all API for version 1
45
- // output : {'type': {'uri': ['method', ...], ...}, ...}
46
- //
47
- router.get('/v1', function(req, res, next) // eslint-disable-line no-unused-vars
48
- {
49
- r3logger.dlog('CALL:', req.method, req.url);
50
-
51
- res.type('application/json; charset=utf-8');
52
-
53
- var result = {
54
- 'version': {
55
- '/': ['GET'],
56
- '/v1': ['GET']
57
- },
58
- 'user token': {
59
- '/v1/user/tokens': ['HEAD', 'GET', 'POST']
60
- },
61
- 'host': {
62
- '/v1/host': ['GET', 'PUT', 'POST', 'DELETE'],
63
- '/v1/host/{port}': ['PUT', 'POST', 'DELETE'],
64
- '/v1/host/FQDN': ['DELETE'],
65
- '/v1/host/FQDN:{port}': ['DELETE'],
66
- '/v1/host/IP': ['DELETE'],
67
- '/v1/host/IP:{port}': ['DELETE']
68
- },
69
- 'service': {
70
- '/v1/service': ['PUT', 'POST'],
71
- '/v1/service/{service}': ['GET', 'HEAD', 'PUT', 'POST', 'DELETE']
72
- },
73
- 'role': {
74
- '/v1/role': ['PUT', 'POST'],
75
- '/v1/role/{role}': ['HEAD', 'GET', 'PUT', 'POST', 'DELETE'],
76
- '/v1/role/token/{role}': ['GET']
77
- },
78
- 'resource': {
79
- '/v1/resource': ['PUT', 'POST'],
80
- '/v1/resource/{resource}': ['HEAD', 'GET', 'DELETE']
81
- },
82
- 'policy': {
83
- '/v1/policy': ['PUT', 'POST'],
84
- '/v1/policy/{policy}': ['HEAD', 'GET', 'DELETE']
85
- },
86
- 'list': {
87
- '/v1/list': ['HEAD', 'GET'],
88
- '/v1/list/{role, resource, policy}/{path}': ['HEAD', 'GET']
89
- },
90
- 'acr': {
91
- '/v1/acr/{service}': ['GET', 'PUT', 'POST', 'DELETE']
92
- }
93
- };
94
-
95
- res.status(200); // 200: OK
96
- res.send(JSON.stringify(result));
97
- });
98
-
99
- module.exports = router;
100
-
101
- /*
102
- * Local variables:
103
- * tab-width: 4
104
- * c-basic-offset: 4
105
- * End:
106
- * vim600: noexpandtab sw=4 ts=4 fdm=marker
107
- * vim<600: noexpandtab sw=4 ts=4
108
- */
@@ -1,71 +0,0 @@
1
- # syntax=docker/dockerfile:1
2
- #
3
- # K2HR3 REST API
4
- #
5
- # Copyright 2017 Yahoo Japan Corporation.
6
- #
7
- # K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
8
- # common management information for the cloud.
9
- # K2HR3 can dynamically manage information as "who", "what", "operate".
10
- # These are stored as roles, resources, policies in K2hdkc, and the
11
- # client system can dynamically read and modify these information.
12
- #
13
- # For the full copyright and license information, please view
14
- # the license file that was distributed with this source code.
15
- #
16
- # AUTHOR: Takeshi Nakatani
17
- # CREATE: Thu, Aug 26 2021
18
- # REVISION:
19
- #
20
-
21
- # [NOTE]
22
- # This file expects the following variables to be expanded by autoconf.
23
- # PACKAGE_NAME
24
- #
25
- # Also, replace the following variables.
26
- # DOCKER_IMAGE_BASE (ex. "alpine:latest")
27
- # PRE_PROCESS (ex. ":")
28
- # POST_PROCESS (ex. ":")
29
- # IMAGE_CMD_BASE (ex. "['/bin/sh', '-c', 'tail -f /dev/null']" as default)
30
- # PKG_UPDATE (ex. "apk update -q --no-progress")
31
- # PKG_INSTALL_CURL (ex. "apk add -q --no-progress --no-cache git build-base openssl libtool automake autoconf procps")
32
- # PKG_INSTALL_BASE (ex. "apk add -q --no-progress --no-cache antpickax-package...")
33
- # SETUP_PC_REPO (ex. "curl -s https://packagecloud.io/install/repositories/yahoojapan/stable/script.alpine.sh | sh")
34
- # SETUP_ENV (ex. "ENV DEBIAN_FRONTEND=noninteractive")
35
- # UPDATE_LIBPATH (ex. "ldconfig", if want no-operation, specify ":")
36
- # PKG_UNINSTALL_BASE (ex. "apk del package...")
37
- # PKG_REPO_SETUP_NODEJS (ex. "curl -sL https://deb.nodesource.com/setup_18.x | bash" for ubuntu)
38
- # NPM_INSTALL_BASE (ex. "npm install -g k2hr3-api")
39
-
40
- #
41
- # Image for main
42
- #
43
- FROM %%DOCKER_IMAGE_BASE%% AS %%PACKAGE_NAME%%
44
-
45
- MAINTAINER antpickax
46
- WORKDIR /
47
-
48
- %%SETUP_ENV%%
49
-
50
- RUN set -x && \
51
- %%PRE_PROCESS%% && \
52
- %%PKG_UPDATE%% && \
53
- %%PKG_INSTALL_CURL%% && \
54
- %%SETUP_PC_REPO%% && \
55
- %%PKG_REPO_SETUP_NODEJS%% && \
56
- %%PKG_INSTALL_BASE%% && \
57
- %%NPM_INSTALL_BASE%% && \
58
- %%UPDATE_LIBPATH%% && \
59
- %%PKG_UNINSTALL_BASE%% && \
60
- %%POST_PROCESS%%
61
-
62
- CMD %%IMAGE_CMD_BASE%%
63
-
64
- #
65
- # Local variables:
66
- # tab-width: 4
67
- # c-basic-offset: 4
68
- # End:
69
- # vim600: noexpandtab sw=4 ts=4 fdm=marker
70
- # vim<600: noexpandtab sw=4 ts=4
71
- #