Skip to content

Commit

Permalink
Merge branch 'develop' into feature/README-rel-links
Browse files Browse the repository at this point in the history
  • Loading branch information
gugzkumar committed Jan 8, 2020
2 parents f7ae6cb + b3f25e7 commit 509d075
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .aws-infrastructure/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**This README was auto generated by AWS CDK. It is not official Documentation for the project, but it is helpful to read to understand the Infrastructure service and how to modify/improve it.**

# Welcome to your CDK TypeScript project!

This is a blank project for TypeScript development with CDK.
Expand Down
3 changes: 3 additions & 0 deletions .utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Utilities

This folder contains the utilities cli. In here are a collection of scripts to assist this project. You can install the cli with `npm install` and run it with `node main.js`.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# CHANGELOG.md

## (unreleased)

Bug Fixes:
- Prevent Sheet names from unsafe characters (based on safe characters of S3 keys)

## v1.0

Features:
- First Major Release
- Functional UI
- Functional Api
- Authentication
- Functional Personal and Team Workspaces
- Software to create Infrastructure Stack
- Software to create Code Stack
- Software to create Network Stack
- Local Development
- Continuous Deployment of Code Stack
- Continuous Deployment of UI
- Working Production Environment
- Utility scripts with:
- Create env files
- Encode env file as Base64
5 changes: 3 additions & 2 deletions api/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**This README was auto generated by AWS SAM. It is not official Documentation for the project, but it is helpful to read to understand the Api service and how to modify/improve it.**

# sam-app

This is a sample template for sam-app - Below is a brief explanation of what we have generated for you:
Expand Down Expand Up @@ -98,7 +100,7 @@ aws cloudformation describe-stacks \
--stack-name sam-app \
--query 'Stacks[].Outputs[?OutputKey==`HelloWorldApi`]' \
--output table
```
```

## Fetch, tail, and filter Lambda function logs

Expand Down Expand Up @@ -207,4 +209,3 @@ aws cloudformation describe-stacks \
# Tail Lambda function Logs using Logical name defined in SAM Template
sam logs -n HelloWorldFunction --stack-name sam-app --tail
```

2 changes: 0 additions & 2 deletions api/requirements.txt

This file was deleted.

9 changes: 6 additions & 3 deletions api/src/sheet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"""
API methods for /sheet
"""
import boto3
import json
import datetime
import boto3, json, datetime, re
from boto3 import client
s3_client = client('s3')
from __core__.settings import AVAILABLE_FILE_TYPES, SHEET_DATA_S3_BUCKET
Expand Down Expand Up @@ -41,6 +39,11 @@ def post(event, context):
# Error if sheet name exists
return get_error_response(f'Sheet with name {event["body"]["sheetName"]} already exists')

valid_name_pattern = re.compile("[a-zA-Z0-9!\-_*]+")
if valid_name_pattern.fullmatch(event['body']['sheetName']) is None:
# Error if sheet name has invalid characters
return get_error_response(f'Sheet name must be alphanumeric and may contain the following characters: -, !, _, *')

if 'defaultFileType' not in event['body'] or event['body']['sheetName'] is None:
# Error if Default File type was not provided
return get_error_response('No Default File Type was provided')
Expand Down
2 changes: 2 additions & 0 deletions client-ui/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**This README was auto generated by Angular. It is not official Documentation for the project, but it is helpful to read to understand the Client UI service and how to modify/improve it.**

# CheatSheet

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.0.
Expand Down

0 comments on commit 509d075

Please sign in to comment.