Skip to content

Commit

Permalink
Merge pull request #2271 from posit-dev/dotnomad/secrets-schema
Browse files Browse the repository at this point in the history
Add secrets to config schema
  • Loading branch information
dotNomad authored Sep 16, 2024
2 parents 981725a + e034e72 commit 0a45001
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/schema/schemas/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ files = [
"*.qmd",
"requirements.txt",
]
secrets = ["API_KEY", "DATABASE_PASSWORD"]

[python]
version = "3.11.3"
Expand Down
8 changes: 8 additions & 0 deletions internal/schema/schemas/posit-publishing-schema-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@
}
]
},
"secrets": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of secrets required by the application. Injected as environment variables.",
"examples": ["API_KEY", "DATABASE_PASSWORD"]
},
"connect": {
"type": "object",
"additionalProperties": false,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/schemas/record.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ files = [
"*.qmd",
"requirements.txt",
]
secrets = ["API_KEY", "DATABASE_PASSWORD"]
title = "Regional Quarterly Sales Report"
description = "This is the quarterly sales report, broken down by region."

Expand Down

0 comments on commit 0a45001

Please sign in to comment.