trust-dns: initial integration (#8711)

[Trust-DNS](https://github.com/bluejekyll/trust-dns) is a Rust based DNS
client, server, and Resolver, built to be safe and secure from the
ground up.
It has following crates/packages:
- Trust-DNS: Binaries for running a DNS authoritative server. 
- Proto: Raw DNS library, exposes an unstable API and only for use by
the other Trust-DNS libraries, not intended for end-user use.
  - It has 12 million+ downloads
  - Used by projects like:
     - [mongodb](https://crates.io/crates/mongodb)
     - [actix-connect](https://crates.io/crates/actix-connect)
- [trust-dns-resolver(Resolver
crate)](https://crates.io/crates/trust-dns-resolver)
- Client: Used for sending query, update, and notify messages directly
to a DNS server.
- Server: Use to host DNS records, this also has a named binary for
running in a daemon form.
- Resolver: Utilizes the client library to perform DNS resolution. Can
be used in place of the standard OS resolution facilities.
  - It has 11 million+ downloads.
  - Used by projects like:
    - [reqwest](https://github.com/seanmonstar/reqwest)
    - [awc](https://crates.io/crates/awc)
    - [mongodb](https://crates.io/crates/mongodb)
    - [libp2p-dns](https://crates.io/crates/libp2p-dns)
 
Note: trust-dns fuzzes **Proto** crate/package for now in
[trust-dns/fuzz/Cargo.toml](a88a7a575a/fuzz/Cargo.toml (L13)).

Co-authored-by: Navidem <navid.emamdoost@gmail.com>
This commit is contained in:
manunio 2022-10-10 23:45:30 +05:30 committed by GitHub
parent 5f5b6f4944
commit 0d8d591416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder-rust
RUN apt-get update && apt-get install -y make autoconf automake libtool
RUN git clone --depth 1 https://github.com/bluejekyll/trust-dns trust-dns
WORKDIR trust-dns
COPY build.sh $SRC/

19
projects/trust-dns/build.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash -eu
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
cargo fuzz build -O
cp fuzz/target/x86_64-unknown-linux-gnu/release/message $OUT/

View File

@ -0,0 +1,12 @@
homepage: "https://github.com/bluejekyll/trust-dns"
language: rust
main_repo: "https://github.com/bluejekyll/trust-dns"
primary_contact: "bluejekyll@gmail.com"
auto_ccs:
- djc.ochtman@gmail.com
sanitizers:
- address
fuzzing_engines:
- libfuzzer
vendor_ccs:
- maxnair.dev@gmail.com