-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad1470d
commit 8bacfe4
Showing
5 changed files
with
30 additions
and
22 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
4 changes: 4 additions & 0 deletions
4
data-model/fdo-type/shared-model/0.3.0/examples/environmental-variable-example.json
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,4 @@ | ||
{ | ||
"schema:name": "server.port", | ||
"schema:value": 8080 | ||
} |
4 changes: 4 additions & 0 deletions
4
data-model/fdo-type/shared-model/0.3.0/examples/secret-variable.json
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,4 @@ | ||
{ | ||
"schema:name": "database.password", | ||
"ods:secretKeyRef": "db-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
18 changes: 9 additions & 9 deletions
18
...ma/machine-annotation-service-secret.json → ...d-model/0.3.0/schema/secret-variable.json
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,30 +1,30 @@ | ||
{ | ||
"$id": "https://schemas.dissco.tech/schemas/fdo-type/machine-annotation-service/0.3.0/machine-annotation-service-secret.json", | ||
"$id": "https://schemas.dissco.tech/schemas/fdo-type/shared/0.3.0/secret-variable.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$comment": "Machine Annotation Service Environment Version 0.3.0", | ||
"title": "MachineAnnotationServiceSecret", | ||
"$comment": "Secret Variable Version 0.3.0", | ||
"title": "SecretVariable", | ||
"type": "object", | ||
"description": "Remote secrets to supply to the MAS", | ||
"description": "Secret Variable that need to be supplied to an Digital Object", | ||
"properties": { | ||
"secretName": { | ||
"schema:name": { | ||
"type": "string", | ||
"description": "The name of an environmental variable stored remotely", | ||
"examples": [ | ||
"database.password", | ||
"keycloak.secret" | ||
] | ||
}, | ||
"secretKeyRef": { | ||
"ods:secretKeyRef": { | ||
"type": "string", | ||
"description": "The name of the key stored in the secret store. NOT the secret's value.", | ||
"example": [ | ||
"examples": [ | ||
"db-password" | ||
] | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"name", | ||
"secretKeyRef" | ||
"schema:name", | ||
"ods:secretKeyRef" | ||
] | ||
} |