Published security

This commit is contained in:
thomashii 2021-06-26 19:02:51 +08:00
parent 87d6a6bb58
commit fa25803e50
12 changed files with 44 additions and 64 deletions

View file

@ -1,9 +1,14 @@
# 3.0.0
# Change Log
## 3.0.0
* Migrated to support Dart SDK 2.12.x NNBD
# 2.0.0-alpha.1
## 2.0.0-alpha.1
* Make `ServiceRateLimiter` more fail-proof.
# 2.0.0-alpha
## 2.0.0-alpha
* Angel 2 updates. Remove previous functionality.
* Add `CookieSigner`, `RateLimiter`/`InMemoryRateLimiter`/`ServiceRateLimiter`.

View file

@ -1,8 +1,12 @@
# security
[![Pub](https://img.shields.io/pub/v/angel_security.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)
# Angel3 Security
Angel middleware designed to enhance application security by patching common Web security
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_security)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/security/LICENSE)
Angel3 middleware designed to enhance application security by patching common Web security
holes.
**This package is currently going through a major overhaul, for version 2.**

View file

@ -1,10 +1,10 @@
import 'dart:io';
import 'dart:math';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart';
import 'package:angel_security/angel_security.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_framework/http.dart';
import 'package:angel3_security/angel3_security.dart';
import 'package:logging/logging.dart';
import 'package:pretty_logging/pretty_logging.dart';
import 'package:angel3_pretty_logging/angel3_pretty_logging.dart';
void main() async {
// Logging boilerplate.

View file

@ -1,8 +1,8 @@
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart';
import 'package:angel_security/angel_security.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_framework/http.dart';
import 'package:angel3_security/angel3_security.dart';
import 'package:logging/logging.dart';
import 'package:pretty_logging/pretty_logging.dart';
import 'package:angel3_pretty_logging/angel3_pretty_logging.dart';
void main() async {
// Logging boilerplate.

View file

@ -1,7 +1,7 @@
import 'package:angel_redis/angel_redis.dart';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_production/angel_production.dart';
import 'package:angel_security/angel_security.dart';
import 'package:angel3_redis/angel3_redis.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_production/angel3_production.dart';
import 'package:angel3_security/angel3_security.dart';
import 'package:resp_client/resp_client.dart';
import 'package:resp_client/resp_commands.dart';
import 'package:resp_client/resp_server.dart';

View file

@ -1,6 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:crypto/crypto.dart';
/// A utility that signs, and verifies, cookies using an [Hmac].

View file

@ -1,5 +1,5 @@
import 'dart:async';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'cookie_signer.dart';
class CsrfToken {

View file

@ -1,5 +1,5 @@
import 'dart:async';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'rate_limiter.dart';
import 'rate_limiting_window.dart';

View file

@ -1,6 +1,6 @@
import 'dart:async';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_security/angel_security.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_security/angel3_security.dart';
import 'rate_limiting_window.dart';
/// A base class that facilitates rate limiting API's or endpoints,

View file

@ -1,5 +1,5 @@
import 'dart:async';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'rate_limiter.dart';
import 'rate_limiting_window.dart';

View file

@ -1,47 +1,18 @@
name: angel_security
name: angel3_security
version: 3.0.0
description: Angel infrastructure for improving security, rate limiting, and more.
homepage: https://github.com/angel-dart/security
publish_to: none
description: Angel infrastructure for improving security, rate limiting, and more
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/security
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
angel_framework:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/framework
angel3_framework: ^4.0.0
crypto: ^3.0.1
dev_dependencies:
angel_auth:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/auth
angel_production:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/production
angel_redis:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/redis
angel_test:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/test
angel_validate:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/validate
pretty_logging:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/pretty_logging
angel3_auth: ^4.0.0
angel3_production: ^3.0.0
angel3_redis: ^2.0.0
angel3_test: ^4.0.0
angel3_validate: ^4.0.0
angel3_pretty_logging: ^3.0.0
pedantic: ^1.11.1
test: ^1.17.8