Coder Social home page Coder Social logo

pbd's People

Contributors

dsietz avatar dsietziapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pbd's Issues

Design the Micro Privacy Agreement Object that the Data Usage Agreement references.

The Micro Privacy Agreement is currently a written legal agreement (e.g.: PDF) that the software developer has to interoperate. By treating it as an object with child objects we can convert it into a programmatic configuration object.
Micro Privacy Agreement
-> UID
-> Version
-> Data Life Cycle
----> Collection
----> Use
----> Disclosure
----> Retention
----> Destruction
-> Symbol
----> icon (.png)
-> Legal Document
----> pdf
-> Data Classification
----> confidential, PII, NPPI, PCI, restricted
-> FAIR Risk Level
----> Frequency
----> Magnitude
-> Related Data Fields (array)
----> Field
--------> Field ID (e.g.: 100010)
--------> Field Name (First Name)

Cannot build middleware for DUA

PS C:\workspace\pbd> cargo test --verbose
Fresh cfg-if v0.1.10
Fresh autocfg v0.1.7
Fresh futures v0.1.29
Fresh iovec v0.1.4
Fresh unicode-xid v0.2.0
Fresh lazy_static v1.4.0
Fresh semver-parser v0.7.0
Fresh winapi-build v0.1.1
Fresh cc v1.0.47
Fresh fnv v1.0.6
Fresh slab v0.4.2
Fresh winapi v0.2.8
Fresh scopeguard v1.0.0
Fresh rand_core v0.4.2
Fresh unicode-xid v0.1.0
Fresh matches v0.1.8
Fresh smallvec v1.0.0
Fresh regex-syntax v0.6.12
Fresh ppv-lite86 v0.2.6
Fresh itoa v0.4.4
Fresh rustc-demangle v0.1.16
Fresh percent-encoding v1.0.1
Fresh copyless v0.1.4
Fresh linked-hash-map v0.5.2
Fresh quick-error v1.2.2
Fresh widestring v0.4.0
Fresh percent-encoding v2.1.0
Fresh either v1.5.3
Fresh dtoa v0.4.4
Fresh language-tags v0.2.2
Fresh sha1 v0.6.0
Fresh mime v0.3.14
Fresh json v0.11.15
Fresh actix-service v0.4.2
Fresh semver v0.9.0
Fresh crossbeam-utils v0.6.6
Fresh tokio-sync v0.1.7
Fresh thread_local v0.3.6
Fresh lock_api v0.3.2
Fresh rand_core v0.3.1
Fresh unicode-normalization v0.1.11
Fresh unicode-bidi v0.3.4
Fresh c2-chacha v0.2.3
Fresh lru-cache v0.1.2
Fresh winapi v0.3.8
Fresh libc v0.2.66
Fresh byteorder v1.3.2
Fresh proc-macro2 v1.0.6
Fresh log v0.4.8
Fresh rustc_version v0.2.3
Fresh maybe-uninit v2.0.0
Fresh tokio-executor v0.1.9
Fresh proc-macro2 v0.4.30
Fresh memchr v2.2.1
Fresh rand_isaac v0.1.1
Fresh rand_xorshift v0.1.1
Fresh rand_hc v0.1.0
Fresh getrandom v0.1.13
Fresh idna v0.1.5
Fresh idna v0.2.0
Fresh crc32fast v1.2.0
Fresh bytes v0.4.12
Fresh num_cpus v1.11.1
Fresh net2 v0.2.33
Fresh rand_jitter v0.1.4
Fresh rand_os v0.1.3
Fresh socket2 v0.3.11
Fresh winutil v0.1.1
Fresh winreg v0.6.2
Fresh ryu v1.0.2
Fresh time v0.1.42
Fresh base64 v0.10.1
Fresh httparse v1.3.4
Fresh encoding_rs v0.8.20
Fresh bitflags v1.2.1
Fresh quote v1.0.2
Fresh rand_pcg v0.1.2
Fresh rand_chacha v0.1.1
Fresh num-traits v0.2.10
Fresh indexmap v1.3.0
Fresh smallvec v0.6.13
Fresh ws2_32-sys v0.2.1
Fresh kernel32-sys v0.2.2
Fresh quote v0.6.13
Fresh aho-corasick v0.7.6
Fresh tokio-timer v0.2.12
Fresh tokio-current-thread v0.1.6
Fresh rand_core v0.5.1
Fresh backtrace-sys v0.1.32
Fresh url v1.7.2
Fresh brotli-sys v0.3.2
Fresh miniz-sys v0.1.12
Fresh tokio-io v0.1.12
Fresh threadpool v1.7.1
Fresh http v0.1.21
Fresh string v0.2.1
Fresh url v2.1.0
Fresh hostname v0.1.5
Fresh ipconfig v0.2.1
Fresh syn v1.0.11
Fresh rand v0.6.5
Fresh num-integer v0.1.41
Fresh miow v0.2.1
Fresh syn v0.15.44
Fresh regex v1.3.1
Fresh rand_chacha v0.2.1
Fresh backtrace v0.3.40
Fresh tokio-codec v0.1.1
Fresh brotli2 v0.3.2
Fresh flate2 v1.0.13
Fresh h2 v0.1.26
Fresh parking_lot_core v0.6.2
Fresh mio v0.6.21
Fresh synstructure v0.12.3
Fresh proc-macro-hack v0.5.11
Fresh serde_derive v1.0.103
Fresh resolv-conf v0.6.2
Fresh chrono v0.4.10
Fresh actix-web-codegen v0.1.3
Fresh derive_more v0.99.2
Fresh derive_more v0.15.0
Fresh rand v0.7.2
Fresh enum-as-inner v0.2.1
Fresh actix-codec v0.1.2
Fresh parking_lot v0.9.0
Fresh failure_derive v0.1.6
Fresh serde v1.0.103
Fresh tokio-reactor v0.1.11
Fresh actix-threadpool v0.1.2
Fresh failure v0.1.6
Fresh const-random-macro v0.1.6
Fresh actix-utils v0.4.7
Fresh serde_urlencoded v0.6.1
Fresh serde_json v1.0.42
Fresh actix-router v0.1.5
Fresh tokio-tcp v0.1.3
Fresh actix-rt v0.2.6
Fresh tokio-udp v0.1.5
Fresh const-random v0.1.6
Fresh tokio-signal v0.2.7
Fresh trust-dns-proto v0.7.4
Fresh actix-server-config v0.1.2
Fresh ahash v0.2.18
Fresh trust-dns-resolver v0.11.1
Fresh hashbrown v0.6.3
Fresh actix-server v0.6.1
Fresh actix-connect v0.2.5
Fresh actix-testing v0.1.0
Fresh actix-http v0.2.11
Fresh awc v0.2.8
Fresh actix-web v1.0.9
Compiling pbd v0.0.5 (C:\workspace\pbd)
Running rustc --edition=2018 --crate-name pbd src/lib.rs --color always --emit=dep-info,link -C debuginfo=2 --test --cfg "feature=\"actix-service\"" --cfg "feature=\"actix-web\"" --cfg "feature=\"default\"" --cfg "feature=\"dua\"" --cfg "feature=\"futures\"" -C metadata=0667f0ee1fa84130 -C extra-filename=-0667f0ee1fa84130 --out-dir C:\workspace\pbd\target\debug\deps -C incremental=C:\workspace\pbd\target\debug\incremental -L dependency=C:\workspace\pbd\target\debug\deps --extern actix_service=C:\workspace\pbd\target\debug\deps\libactix_service-1dcfc6ec16eb3f49.rlib --extern actix_web=C:\workspace\pbd\target\debug\deps\libactix_web-466a7ba96850b333.rlib --extern derive_more=C:\workspace\pbd\target\debug\deps\derive_more-5cb3f38138626b63.dll --extern futures=C:\workspace\pbd\target\debug\deps\libfutures-f1ccab95d45bb78a.rlib --extern json=C:\workspace\pbd\target\debug\deps\libjson-6278b4686ad762e5.rlib --extern log=C:\workspace\pbd\target\debug\deps\liblog-2582979dc0b6c114.rlib --extern serde=C:\workspace\pbd\target\debug\deps\libserde-9372dbb0aae3bab4.rlib --extern serde_derive=C:\workspace\pbd\target\debug\deps\serde_derive-41e331770bc6a48a.dll --extern serde_json=C:\workspace\pbd\target\debug\deps\libserde_json-8b1b54242e35e92c.rlib -L native=C:\workspace\pbd\target\debug\build\brotli-sys-5585bc576321d369\out -L native=C:\workspace\pbd\target\debug\build\miniz-sys-fc0859ff5c24974e\out
error[E0277]: the trait bound dua::middleware::actix::DUAEnforcer: dua::extractor::actix_service::IntoTransform<_, dua::extractor::actix_web::app_service::AppRouting> is not satisfied
--> src\dua\middleware\actix.rs:115:19
|
115 | .wrap(DUAEnforcer)
| ^^^^^^^^^^^ the trait dua::extractor::actix_service::IntoTransform<_, dua::extractor::actix_web::app_service::AppRouting> is not implemented for dua::middleware::actix::DUAEnforcer

error: aborting due to previous error

For more information about this error, try rustc --explain E0277.
error: could not compile pbd.

Caused by:
process didn't exit successfully: rustc --edition=2018 --crate-name pbd src/lib.rs --color always --emit=dep-info,link -C debuginfo=2 --test --cfg "feature=\"actix-service\"" --cfg "feature=\"actix-web\"" --cfg "feature=\"default\"" --cfg "feature=\"dua\"" --cfg "feature=\"futures\"" -C metadata=0667f0ee1fa84130 -C extra-filename=-0667f0ee1fa84130 --out-dir C:\workspace\pbd\target\debug\deps -C incremental=C:\workspace\pbd\target\debug\incremental -L dependency=C:\workspace\pbd\target\debug\deps --extern actix_service=C:\workspace\pbd\target\debug\deps\libactix_service-1dcfc6ec16eb3f49.rlib --extern actix_web=C:\workspace\pbd\target\debug\deps\libactix_web-466a7ba96850b333.rlib --extern derive_more=C:\workspace\pbd\target\debug\deps\derive_more-5cb3f38138626b63.dll --extern futures=C:\workspace\pbd\target\debug\deps\libfutures-f1ccab95d45bb78a.rlib --extern json=C:\workspace\pbd\target\debug\deps\libjson-6278b4686ad762e5.rlib --extern log=C:\workspace\pbd\target\debug\deps\liblog-2582979dc0b6c114.rlib --extern serde=C:\workspace\pbd\target\debug\deps\libserde-9372dbb0aae3bab4.rlib --extern serde_derive=C:\workspace\pbd\target\debug\deps\serde_derive-41e331770bc6a48a.dll --extern serde_json=C:\workspace\pbd\target\debug\deps\libserde_json-8b1b54242e35e92c.rlib -L native=C:\workspace\pbd\target\debug\build\brotli-sys-5585bc576321d369\out -L native=C:\workspace\pbd\target\debug\build\miniz-sys-fc0859ff5c24974e\out (exit code: 1)

Resolve Deprecated warnings in the Error traits

Resolve the Deprecated warnings in the following traits:

  1. pbd::dpi::error::Error
  2. pbd::dsg::error::Error
  3. pbd::dtc::error::Error
  4. pbd::dua::error::Error

The impacted methods are the following:

  • description(&self) -> &str
    Deprecated since 1.42.0: use the Display impl or to_string()
  • cause(&self) -> Option<&dyn Error>
    Deprecated since 1.33.0: replaced by Error::source, which can support downcasting

PBD modules are not compatible with actix-web 3

Get the following error message when trying to implement a pbd module middleware in a web service using the latest version of actix-web.

example

.wrap(DUAEnforcer::default())
expected struct `actix_web::service::ServiceRequest`, found struct `actix_web::dev::ServiceRequest`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.