Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 2aa7055

Browse files
authored
update to v1.5.2 open-source release (#195)
1 parent 64554b1 commit 2aa7055

File tree

11 files changed

+72
-55
lines changed

11 files changed

+72
-55
lines changed

.viperlightignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,15 @@ deployment/simple-file-manager-for-amazon-efs.yaml:74
1212
deployment/simple-file-manager-for-amazon-efs.yaml:59
1313
deployment/simple-file-manager-for-amazon-efs.yaml:84
1414
deployment/simple-file-manager-for-amazon-efs.yaml:69
15-
test/
15+
test/
16+
17+
[node-npmoutdated]
18+
@aws-amplify/api=4.0.64
19+
@aws-amplify/core=4.7.15
20+
aws-amplify=4.3.46
21+
bootstrap=4.6.2
22+
vue=2.7.14
23+
vue-router=3.6.5
24+
eslint=7.32.0
25+
eslint-plugin-vue=7.20.0
26+
webpack-subresource-integrity=1.5.2

.viperlightrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.5.2] - 2023-05-19
8+
### Bug Fixes:
9+
- elasticfilesystem:TagResource permission added to Manager Lambda
10+
- Urllib3 downgraded to < v2
11+
712
## [1.5.1] - 2023-04-13
813
### Security:
914
- Enable versioning/encryption on logging bucket

NOTICE.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Selenium under the Apache License Version 2.0
1818
Boto3 under the Apache License Version 2.0
1919
Pyyaml under the MIT License (MIT)
2020
Requests_toolbelt under the Apache License Version 2.0
21+
Urllib3 under the the MIT License (MIT)
2122
Aws-amplify under the Apache License Version 2.0
2223
Aws-amplify-vue under the Apache License Version 2.0
2324
Bootstrap under the MIT License (MIT)

deployment/simple-file-manager-for-amazon-efs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ Resources:
179179
- "arn:aws:elasticfilesystem:*:*:file-system/*"
180180
- "arn:aws:elasticfilesystem:*:*:access-point/*"
181181
- "arn:aws:elasticfilesystem:*:*:*"
182+
- Effect: Allow
183+
Action:
184+
- "elasticfilesystem:TagResource"
185+
Resource:
186+
- "arn:aws:elasticfilesystem:*:*:access-point/*"
187+
- "arn:aws:elasticfilesystem:*:*:file-system/*"
188+
Condition:
189+
StringEquals:
190+
elasticfilesystem:CreateAction: CreateAccessPoint
182191
- Effect: Allow
183192
Action:
184193
- "iam:PassRole"

source/api/app.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
DEFAULT_ERROR_MESSAGE = 'Check API logs for more information'
3737

38+
DEFAULT_MISSING_PARAMS_ERROR_MESSAGE = 'Missing required query param: {e}'
39+
3840
# Cognito resources
3941
# From cloudformation stack
4042

@@ -500,8 +502,8 @@ def upload(filesystem_id):
500502
path = app.current_request.query_params['path']
501503
filename = app.current_request.query_params['filename']
502504
except KeyError as error:
503-
app.log.error('Missing required query param: {e}'.format(e=error))
504-
raise BadRequestError('Missing required query param: {e}'.format(e=error))
505+
app.log.error(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
506+
raise BadRequestError(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
505507

506508
request = app.current_request
507509
chunk_data = request.json_body
@@ -534,8 +536,8 @@ def download(filesystem_id):
534536
path = query_params['path']
535537
filename = query_params['filename']
536538
except KeyError as error:
537-
app.log.error('Missing required query param: {e}'.format(e=error))
538-
raise BadRequestError('Missing required query param: {e}'.format(e=error))
539+
app.log.error(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
540+
raise BadRequestError(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
539541

540542
try:
541543
chunk_index = query_params['dzchunkindex']
@@ -600,8 +602,8 @@ def delete_object(filesystem_id):
600602
name = app.current_request.query_params['name']
601603
path = app.current_request.query_params['path']
602604
except KeyError as error:
603-
app.log.error('Missing required query param: {e}'.format(e=error))
604-
raise BadRequestError('Missing required query param: {e}'.format(e=error))
605+
app.log.error(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
606+
raise BadRequestError(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
605607

606608
filemanager_event = {"operation": "delete", "path": path, "name": name}
607609
operation_result = proxy_operation_to_efs_lambda(filesystem_id, filemanager_event)
@@ -623,8 +625,8 @@ def list_objects(filesystem_id):
623625
try:
624626
path = app.current_request.query_params['path']
625627
except KeyError as error:
626-
app.log.error('Missing required query param: {e}'.format(e=error))
627-
raise BadRequestError('Missing required query param: {e}'.format(e=error))
628+
app.log.error(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
629+
raise BadRequestError(DEFAULT_MISSING_PARAMS_ERROR_MESSAGE.format(e=error))
628630

629631
filemanager_event = {"operation": "list", "path": path}
630632
operation_result = proxy_operation_to_efs_lambda(filesystem_id, filemanager_event)

source/api/chalicelib/efs_lambda.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def delete(event):
2424
path = event['path']
2525
name = event['name']
2626

27-
file = path + '/' + name
27+
file_path = path + '/' + name
2828

2929
try:
30-
os.remove(file)
30+
os.remove(file_path)
3131
except OSError:
3232
return {"message": "couldn't delete the file", "statusCode": 500}
3333
else:
@@ -151,7 +151,7 @@ def list(event):
151151
return {"path": path, "directiories": dir_items, "files": file_items, "statusCode": 200}
152152

153153

154-
def lambda_handler(event, context):
154+
def lambda_handler(event, _context):
155155
# get operation type
156156
try:
157157
operation_type = event['operation']

source/api/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pyyaml
2-
requests_toolbelt
2+
requests_toolbelt
3+
urllib3<2

source/web/package-lock.json

Lines changed: 15 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/web/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,11 @@
5050
"> 1%",
5151
"last 2 versions",
5252
"not dead"
53-
]
53+
],
54+
"overrides": {
55+
"fast-xml-parser": "4.2.4"
56+
},
57+
"resolutions": {
58+
"fast-xml-parser": "4.2.4"
59+
}
5460
}

0 commit comments

Comments
 (0)