-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a Persistent Job Scheduler
Closes: #1486
- Loading branch information
1 parent
5662408
commit a98d184
Showing
141 changed files
with
3,595 additions
and
830 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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
CREATE KEYSPACE blaze WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor' : 2}; | ||
CREATE TABLE blaze.resources (hash text PRIMARY KEY, content blob); | ||
CREATE TABLE blaze.clauses ("token" text PRIMARY KEY, content blob); | ||
|
||
CREATE KEYSPACE blaze-admin WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor' : 2}; | ||
CREATE TABLE blaze-admin.resources (hash text PRIMARY KEY, content blob); | ||
CREATE TABLE blaze-admin.clauses ("token" text PRIMARY KEY, content blob); |
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 @@ | ||
password |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
security.protocol=SSL | ||
ssl.truststore.location=/opt/bitnami/kafka/config/certs/kafka.truststore.jks | ||
ssl.truststore.location=/etc/kafka/secrets/kafka.truststore.jks | ||
ssl.truststore.password=password | ||
ssl.keystore.location=/opt/bitnami/kafka/config/certs/kafka-topic-creator.keystore.jks | ||
ssl.keystore.location=/etc/kafka/secrets/kafka-topic-creator.keystore.jks | ||
ssl.keystore.password=password | ||
ssl.key.password=password |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/../../util.sh" | ||
|
||
BASE="http://localhost:8080/fhir" |
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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
* [Database](database.md) | ||
* [FHIR Data Model](fhir-data-model.md) | ||
* [Frontend](frontend.md) |
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 @@ | ||
# Frontend Implementation | ||
|
||
## Authentication / Authorization | ||
|
||
The frontend uses the [Auth.js][1] [@auth/sveltekit][2] library for for authentication and authorization. | ||
|
||
* a single Keycloak provider is used | ||
* the env vars `AUTH_CLIENT_ID`, `AUTH_CLIENT_SECRET`, `AUTH_ISSUER` and `AUTH_SECRET` are used as config | ||
* the authorization code flow is used | ||
* at sign-in the access token and refresh token are stored in a secure, HTTP only, encrypted JWT session cookie | ||
* nobody can access the tokens in the session cookie, because it is encrypted and only the server-side of the frontend has the secret | ||
* the session cookie is transferred for every request (the frontend is stateless) | ||
* the access token will be refreshed via the refresh token if possible | ||
* the session will expire at the same time as the last successful refreshed access token will expire | ||
|
||
[1]: <https://authjs.dev> | ||
[2]: <https://www.npmjs.com/package/@auth/sveltekit> |
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,5 @@ | ||
/fsh-generated | ||
/input-cache | ||
/output | ||
/temp | ||
/template |
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,3 @@ | ||
[IG] | ||
ig = fsh-generated/resources/ImplementationGuide-fhir.example.json | ||
template = fhir.base.template#current |
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,27 @@ | ||
Alias: $JT = https://samply.github.io/blaze/fhir/CodeSystem/JobType | ||
Alias: $CJP = https://samply.github.io/blaze/fhir/CodeSystem/CompactJobParameter | ||
|
||
CodeSystem: CompactJobParameter | ||
Id: CompactJobParameter | ||
* #column-family-name "Column Family Name" | ||
|
||
Profile: CompactJob | ||
Parent: Task | ||
* code 1..1 | ||
* code = $JT#compact "Compact Database Column Families" | ||
* input ^slicing.discriminator.type = #pattern | ||
* input ^slicing.discriminator.path = "type" | ||
* input ^slicing.rules = #closed | ||
* input contains columnFamilyName 1..1 | ||
* input[columnFamilyName] ^short = "Column Family Name" | ||
* input[columnFamilyName] ^definition = "The name of the column family to compact." | ||
* input[columnFamilyName].type = $CJP#column-family-name | ||
* input[columnFamilyName].value[x] only string | ||
|
||
Instance: CompactJobExample | ||
InstanceOf: CompactJob | ||
* status = #ready | ||
* intent = #order | ||
* code = $JT#compact "Compact Database Column Families" | ||
* input[columnFamilyName].type = $CJP#column-family-name | ||
* input[columnFamilyName].valueString = "SearchParamValueIndex" |
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,5 @@ | ||
CodeSystem: JobType | ||
Id: JobType | ||
Title: "Job Type" | ||
* #re-index "(Re)Index a Search Parameter" | ||
* #compact "Compact Database Column Families" |
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,27 @@ | ||
Alias: $JT = https://samply.github.io/blaze/fhir/CodeSystem/JobType | ||
Alias: $RJP = https://samply.github.io/blaze/fhir/CodeSystem/ReIndexJobParameter | ||
|
||
CodeSystem: ReIndexJobParameter | ||
Id: ReIndexJobParameter | ||
* #search-param-url "Search Param URL" | ||
|
||
Profile: ReIndexJob | ||
Parent: Task | ||
* code 1..1 | ||
* code = $JT#re-index "(Re)Index a Search Parameter" | ||
* input ^slicing.discriminator.type = #pattern | ||
* input ^slicing.discriminator.path = "type" | ||
* input ^slicing.rules = #closed | ||
* input contains searchParamUrl 1..1 | ||
* input[searchParamUrl] ^short = "Search Param URL" | ||
* input[searchParamUrl] ^definition = "The URL of the Search Parameter to (re)index." | ||
* input[searchParamUrl].type = $RJP#search-param-url | ||
* input[searchParamUrl].value[x] only canonical | ||
|
||
Instance: ReIndexJobExample | ||
InstanceOf: ReIndexJob | ||
* status = #ready | ||
* intent = #order | ||
* code = $JT#re-index "(Re)Index a Search Parameter" | ||
* input[searchParamUrl].type = $RJP#search-param-url | ||
* input[searchParamUrl].valueCanonical = "http://hl7.org/fhir/SearchParameter/Resource-profile" |
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,5 @@ | ||
== Suppressed Messages == | ||
|
||
# Add warning and/or information messages here after you've confirmed that they aren't really a problem | ||
# (And include comments like this justifying why) | ||
# See https://github.com/FHIR/sample-ig/blob/master/input/ignoreWarnings.txt for examples |
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,3 @@ | ||
# job-ig | ||
|
||
Feel free to modify this index page with your own awesome content! |
Oops, something went wrong.