From 4a8754478eb537f91709c17688b0449d057ece0a Mon Sep 17 00:00:00 2001 From: thosakwe Date: Tue, 28 Feb 2017 17:23:15 -0500 Subject: [PATCH] alpha --- README.md | 2 +- lib/helmet.dart | 48 ------------------------------------------------ pubspec.yaml | 2 +- 3 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 lib/helmet.dart diff --git a/README.md b/README.md index 2f2eb419..2282d889 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # security -[![version 1.0.0](https://img.shields.io/badge/pub-v1.0.0-red.svg)](https://pub.dartlang.org/packages/angel_security) +[![version 1.0.0-alpha](https://img.shields.io/badge/pub-v1.0.0--alpha-red.svg)](https://pub.dartlang.org/packages/angel_security) [![build status](https://travis-ci.org/angel-dart/security.svg)](https://travis-ci.org/angel-dart/security) Angel middleware designed to enhance application security by patching common Web security diff --git a/lib/helmet.dart b/lib/helmet.dart deleted file mode 100644 index 8d46da69..00000000 --- a/lib/helmet.dart +++ /dev/null @@ -1,48 +0,0 @@ -library angel_security.helmet; - -import 'package:angel_framework/angel_framework.dart'; - -/// A collection of 11 middleware and handlers to help secure your application -/// using HTTP headers. -AngelConfigurer helmet() { - throw new Exception("Helmet isn't ready just yet! ;)"); - - return (Angel app) async { - app.before.add(waterfall([ - contentSecurityPolicy(), - dnsPrefetchControl(), - frameguard(), - hpkp(), - hsts(), - ieNoOpen(), - noCache(), - noSniff(), - referrerPolicy(), - xssFilter() - ])); - - app.responseFinalizers.addAll([hidePoweredBy]); - }; -} - -RequestMiddleware contentSecurityPolicy() {} - -RequestMiddleware dnsPrefetchControl() {} - -RequestMiddleware frameguard() {} - -RequestMiddleware hidePoweredBy() {} - -RequestMiddleware hpkp() {} - -RequestMiddleware hsts() {} - -RequestMiddleware ieNoOpen() {} - -RequestMiddleware noCache() {} - -RequestMiddleware noSniff() {} - -RequestMiddleware referrerPolicy() {} - -RequestMiddleware xssFilter() {} diff --git a/pubspec.yaml b/pubspec.yaml index ee914fc9..b28ea583 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_security -version: 1.0.0 +version: 1.0.0-alpha description: Angel middleware designed to enhance application security by patching common Web security holes. author: Tobe O environment: