Code Monkey home page Code Monkey logo

redacted_examples's Introduction

redacted_examples

This is a repository of JSON file containing examples of RDAP responses using the RFC 9537 redaction extension. It's purpose is to provide examples for testing.

These files may be used in integrated test suites or with the ICANN RDAP Server.

The following describes the files.

example-1.net (example-1_net.json)

This is basically Figure 12 from RFC 9537. It does the following redactions:

  1. handle of the domain by removal.
  2. name of the registrant by emptyValue
  3. organization of the registrant by removal
  4. street address of the registrant by emptyValue
  5. city of registrant by emptyValue
  6. postal code of registrant by emptyValue
  7. email of registrant by removal
  8. name of the technical contact by emptyValue
  9. email of the technical contact by removal
  10. phone of the technical contact by removal
  11. fax of the technical contact by removal
  12. the entire administrative contact by removal
  13. the entire billing contact by removal

example-2.net (example-2_net.json)

Same as example-1.net except all the dot notation is replaced with bracket notation.

example-3.net (example-3_net.json)

Same as example-1.net except all emptyValue redactions are change to partialValue redactions.

example-4.net (example-4_net.json)

For each top level entity (i.e. not the registrar abuse):

  1. name by emptyValue
  2. organization by removal
  3. street address by emptyValue
  4. city by emptyValue
  5. postal code by emptyValue
  6. email by removal

example-5.net (example-5_net.json)

For all entities recursively:

  1. name by emptyValue
  2. organization by removal
  3. street address by emptyValue
  4. city by emptyValue
  5. postal code by emptyValue
  6. email by removal

example-6.net (example-6_net.json)

Same structure as example-1.net. This file only has registrant redactions, which are all referenced using a negative index (-2).

  1. name of the registrant by emptyValue
  2. organization of the registrant by removal
  3. street address of the registrant by emptyValue
  4. city of registrant by emptyValue
  5. postal code of registrant by emptyValue
  6. email of registrant by removal

example-7.net (example-7_net.json)

In this file, the registrant, billing, and technical contacts have been merged into one entity and the "registrant" is the first element in the roles array. The file only has the following registrant redactions:

  1. name of the registrant by emptyValue
  2. organization of the registrant by removal
  3. street address of the registrant by emptyValue
  4. city of registrant by emptyValue
  5. postal code of registrant by emptyValue
  6. email of registrant by removal

example-8.net (example-8_net.json)

Same as example-7.net except "registrant" is the last role in the roles array.

example-9.net (example-8_net.json)

This example is a domain with only a registrar entity. It has the following redaction:

  1. email of the registrar by replacementValue

example-10.net (example-10_net.json)

Same as example-9.net, however the registrant doesn't have an email address but a contact-uri, and the redaction is a replacementValue of the registrant's email with the contact-uri (from Figure 9 in RFC 9537).

example-11.net (example-11_net.json)

This example is similar to example-9.net, except the email address is an empty string and there are two overlapping redactions:

  1. removal of the registrant's email (the entire JSON object).
  2. redaction of the registrant's email address by emptyValue (the specific JSON string).

example-12.net (example-12_net.json)

This is the same as example-1.net except all the redactions are illegal in that when they should have a postPath they have a prePath and vice-versa.

redacted_examples's People

Contributors

anewton1998 avatar monkeyisnull avatar

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.