generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into task/env-file-handling
- Loading branch information
Showing
21 changed files
with
508 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Spike | ||
about: Research related task, when all that is needed is information gathering. | ||
title: '' | ||
labels: spike | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Spike Goal | ||
Goal for the Spike | ||
|
||
## Timebox | ||
Time allocated (2 FTE days) | ||
|
||
## Notes | ||
- *Optional: Any reference material or thoughts we may need for later reference* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 14. Keys | ||
|
||
Date: 2023-10-23 | ||
|
||
## Decision | ||
|
||
### Internal Keys | ||
|
||
These keys are used for the intermediary's internal use. These keys will follow the following naming paradigm... | ||
|
||
`trusted-intermediary-<key type>-key-<environment>`. | ||
|
||
For example, `trusted-intermediary-private-key-staging` or `trusted-intermediary-public-key-prod`. | ||
|
||
### Organization Keys | ||
|
||
These are keys for external orgs to authenticate with us. Currently, report stream is the only organization we have. The pattern for the name of these keys is | ||
|
||
`organization-<org name>-<key type>-key-<environment>`. | ||
|
||
For example, `organization-report-stream-public-key-staging` | ||
|
||
## Status | ||
|
||
Accepted. | ||
|
||
## Context | ||
|
||
This naming convention applies to all locations where our keys are stored. Previously, we didn't have a consistent naming convention across all our locations which caused confusion on which key was to be used in which context and environment. | ||
|
||
### Related Issues | ||
|
||
- #584 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# 15. Project Structure | ||
|
||
Date: 2023-10-23 | ||
|
||
## Decision | ||
|
||
The overall project will consist of 4+ subprojects. | ||
|
||
- `app` - The entry point, where our HTTP or calling library is used, and plugins are initialized. | ||
- `shared` - A shared project that is imported to every plugin and contains all the helper classes that may be used by | ||
a plugin. | ||
- `etor` - The ETOR plugin. In the future there may be more plugins that will be new sub-projects in of themselves (or | ||
completely different projects and repositories). | ||
- `e2e` - Our end-to-end tests. | ||
|
||
## Status | ||
|
||
Accepted. | ||
|
||
## Context | ||
|
||
### `app` Subproject | ||
|
||
The `app` subproject contains the entry point into the code. This may be the `main` method or a special method if we're | ||
plugging into a cloud service's function compute service. This means that it is directly connected to the HTTP library | ||
or whatever library we use that handles the incoming requests. For example, Javalin or the Azure SDK. | ||
|
||
Second, `app` bootstraps the plugins that are available and hooks them into the aforementioned HTTP/request library. | ||
|
||
Lastly, `app` converts any live request into the form that the plugins accept. | ||
|
||
### `shared` Subproject | ||
|
||
The `shared` subproject specifies the interface for a plugin. Any plugin written needs to import this subproject, so it | ||
can adhere to the plugin interface. | ||
|
||
Second, `shared` contains all the shared helper classes that may be used by a plugin. Perhaps most importantly is | ||
the `ApplicationContext`. Other examples include the logger, JSON handling, and an HTTP client. `shared` does _not_ | ||
contain anything specific to a plugin. | ||
|
||
### `etor` Subproject | ||
|
||
`etor` is a plugin subproject. As mentioned previously, `etor` depends on the `shared` subproject, so it can adhere to | ||
the plugin interface. This subproject contains everything specific to the ETOR usecase such as parsing orders, | ||
converting orders, sending orders, and handling results. | ||
|
||
### `e2e` Subproject | ||
|
||
The `e2e` subproject is all about end-to-end testing. It tests the external interface of the application instead of | ||
testing individual classes and methods. | ||
|
||
This subproject must not depend on any of the other subprojects. It is kept isolated on purpose so that the tests can't | ||
be "poisoned" by the implementation. | ||
|
||
### Related Issues | ||
|
||
_None_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.