Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d648516
Added appconfig endpoints
GrootZ7 Nov 2, 2021
133b3b3
Cleaned up appconfig endpoints
GrootZ7 Nov 3, 2021
c43706b
Fixed create appconfig api
GrootZ7 Nov 4, 2021
fc41178
Added version_numbers field
GrootZ7 Nov 4, 2021
0b52e03
Fixed appConfig response object
GrootZ7 Nov 4, 2021
f51e521
Merge develop into current branch
GrootZ7 Nov 5, 2021
465f5e9
Fixed getAppConfigs endpoint
GrootZ7 Nov 5, 2021
f760c02
Added appconfig endpoints to system subrouter
GrootZ7 Nov 5, 2021
4af8cdc
Updated changelog
GrootZ7 Nov 5, 2021
c928be5
Progress on resolving PR comments
GrootZ7 Nov 10, 2021
5c1ddae
Added version_number filter for get appconfigs
GrootZ7 Nov 10, 2021
8ef2ba6
Added app configs cache
GrootZ7 Nov 12, 2021
197dafe
Updated mockery
GrootZ7 Nov 12, 2021
1894ae3
Updated appConfigs cache functions
GrootZ7 Nov 15, 2021
547423e
Fixed get appConfigs endpoint
GrootZ7 Nov 15, 2021
298ff03
Update gen files
GrootZ7 Nov 15, 2021
b3afd84
Clean up
GrootZ7 Nov 15, 2021
1890f47
Finished resolving PR comments
GrootZ7 Nov 16, 2021
b9a2c30
Improved appconfig endpoint descriptions
GrootZ7 Nov 17, 2021
91624ce
Merge branch 'develop' into issues/ID-261
shurwit Nov 18, 2021
787f5f6
update app config apis and docs
shurwit Nov 18, 2021
cd0a486
add app config db listener
shurwit Nov 18, 2021
429de0d
change app_id to app_type_identifier on service config endpoint
shurwit Nov 18, 2021
48f8778
fix lint issues
shurwit Nov 18, 2021
bca2b78
Merge develop into current branch
GrootZ7 Nov 30, 2021
54d72e9
Updated appConfig struct
GrootZ7 Dec 15, 2021
920097b
Merge develop into current branch
GrootZ7 Dec 15, 2021
1814036
Fixed appConfig apis
GrootZ7 Dec 15, 2021
5c515fa
Fixed create and update appconfig endpoints
GrootZ7 Dec 16, 2021
3f0547b
Merged dev into current Branch. Added github webhook post API
GrootZ7 May 12, 2022
3ed4b4d
Added updateWebhookConfigs functions
GrootZ7 May 12, 2022
53edea3
Cleaned up webhook functions
GrootZ7 May 13, 2022
3238a6e
Cleaned up webhook functions
GrootZ7 May 16, 2022
38081cd
Updated changelog
GrootZ7 May 16, 2022
d52196f
Reorganized github adapters
GrootZ7 Jun 2, 2022
9ca2805
Added github webhook request secrect validation
GrootZ7 Jun 2, 2022
1aa5728
Merge develop into current branch
GrootZ7 Jul 14, 2022
cf7eaa7
Resolved PR comments
GrootZ7 Aug 2, 2022
5d615a8
Updated secret lines
GrootZ7 Aug 2, 2022
5e68cfc
Clean up
GrootZ7 Aug 2, 2022
37d9371
Merge remote-tracking branch 'origin/develop' into issues/ID-358
shurwit Aug 12, 2022
388cb03
update go mod
shurwit Aug 12, 2022
a34f303
fix webhook branch and signature check, create config for missing ver…
shurwit Aug 15, 2022
1cfb77c
fix tests and formatting
shurwit Aug 15, 2022
eaa65a4
Added webhookConfig file storage listener
GrootZ7 Aug 25, 2022
18d9592
Added vcs_managed flag to appConfig type
GrootZ7 Aug 25, 2022
94e91d5
Merge branch 'develop' into issues/ID-358
GrootZ7 Aug 25, 2022
768d766
Fixed style
GrootZ7 Aug 26, 2022
1f4b51a
Updated secret baseline
GrootZ7 Aug 26, 2022
f8d155a
Merge branch 'develop' into issues/ID-358
GrootZ7 Aug 26, 2022
25fcbf5
Fix listener
GrootZ7 Aug 26, 2022
d2f2ee8
Re-enable appConfig collection index
GrootZ7 Aug 29, 2022
cfd0ce6
abstract github webhook implementation (untested)
shurwit Aug 30, 2022
10684b7
move webhook signature validation to github package
shurwit Aug 31, 2022
1a4f03f
fix naming
shurwit Sep 1, 2022
3a27d4a
fix missing github configs check
shurwit Sep 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build/
*.pem
env.list
*.exe
*.env
*.DS_Store
.idea/
*mockery
86 changes: 63 additions & 23 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
"filename": "README.md",
"hashed_secret": "112bb791304791ddcf692e29fd5cf149b35fea37",
"is_verified": false,
"line_number": 38
"line_number": 38,
"is_secret": false
}
],
"core/apis.go": [
Expand All @@ -115,7 +116,8 @@
"filename": "core/apis.go",
"hashed_secret": "f776bc8b6836b3498c27139f23f5d64e4041af0f",
"is_verified": false,
"line_number": 169
"line_number": 174,
"is_secret": false
}
],
"core/auth/apis.go": [
Expand All @@ -124,7 +126,8 @@
"filename": "core/auth/apis.go",
"hashed_secret": "4d55af37dbbb6a42088d917caa1ca25428ec42c9",
"is_verified": false,
"line_number": 1938
"line_number": 1938,
"is_secret": false
}
],
"core/auth/auth.go": [
Expand All @@ -133,7 +136,8 @@
"filename": "core/auth/auth.go",
"hashed_secret": "4d55af37dbbb6a42088d917caa1ca25428ec42c9",
"is_verified": false,
"line_number": 2388
"line_number": 2388,
"is_secret": false
}
],
"core/auth/auth_type_email.go": [
Expand All @@ -142,49 +146,56 @@
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "f3f2fb17a3bf9f307cb6e79b61b9d4baf07dd681",
"is_verified": false,
"line_number": 75
"line_number": 75,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "fe70d8c51780596c0b3399573122bba943a461da",
"is_verified": false,
"line_number": 76
"line_number": 76,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "04e110541a2e8b44bc10939bfaf5d82adfe45158",
"is_verified": false,
"line_number": 109
"line_number": 109,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "7cbe6dcf7274355d223e3174e4d8a7ffb55a9227",
"is_verified": false,
"line_number": 156
"line_number": 156,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "f32ddb18dd630c4bb16a5ab053c62d99c94df67f",
"is_verified": false,
"line_number": 258
"line_number": 258,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "cba104f0870345d3ec99d55c06441bdce9fcf584",
"is_verified": false,
"line_number": 390
"line_number": 390,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "core/auth/auth_type_email.go",
"hashed_secret": "c74f3640d83fd19d941a4f44b28fbd9e57f59eef",
"is_verified": false,
"line_number": 391
"line_number": 391,
"is_secret": false
}
],
"core/auth/auth_type_oidc.go": [
Expand All @@ -193,7 +204,8 @@
"filename": "core/auth/auth_type_oidc.go",
"hashed_secret": "0ade4f3edccc8888bef404fe6b3c92c13cdfad6b",
"is_verified": false,
"line_number": 377
"line_number": 377,
"is_secret": false
}
],
"driven/emailer/adapter.go": [
Expand All @@ -202,7 +214,18 @@
"filename": "driven/emailer/adapter.go",
"hashed_secret": "1282d4ec63996a2c4dcb73835bad1c27ea1f901c",
"is_verified": false,
"line_number": 70
"line_number": 70,
"is_secret": false
}
],
"driven/github/adapter.go": [
{
"type": "Secret Keyword",
"filename": "driven/github/adapter.go",
"hashed_secret": "87891d2e24abb351b7c4c38c34a5b85bd793d481",
"is_verified": false,
"line_number": 252,
"is_secret": false
}
],
"driven/profilebb/adapter.go": [
Expand All @@ -211,7 +234,8 @@
"filename": "driven/profilebb/adapter.go",
"hashed_secret": "36c48d6ac9d10902792fa78b9c2d7d535971c2cc",
"is_verified": false,
"line_number": 224
"line_number": 224,
"is_secret": false
}
],
"driver/web/docs/gen/def.yaml": [
Expand All @@ -220,7 +244,8 @@
"filename": "driver/web/docs/gen/def.yaml",
"hashed_secret": "dd29ecf524b030a65261e3059c48ab9e1ecb2585",
"is_verified": false,
"line_number": 1376
"line_number": 1376,
"is_secret": false
}
],
"driver/web/docs/resources/services/application/configs.yaml": [
Expand All @@ -229,7 +254,8 @@
"filename": "driver/web/docs/resources/services/application/configs.yaml",
"hashed_secret": "dd29ecf524b030a65261e3059c48ab9e1ecb2585",
"is_verified": false,
"line_number": 19
"line_number": 19,
"is_secret": false
}
],
"driver/web/ui/reset-credential.html": [
Expand All @@ -238,46 +264,60 @@
"filename": "driver/web/ui/reset-credential.html",
"hashed_secret": "ad88769c02358be4b1d42944359820977c4eec28",
"is_verified": false,
"line_number": 195
"line_number": 195,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "driver/web/ui/reset-credential.html",
"hashed_secret": "063afcf87eabb84dc0dc528d1b30266217aa71c3",
"is_verified": false,
"line_number": 196
"line_number": 196,
"is_secret": false
}
],
"main.go": [
{
"type": "Secret Keyword",
"filename": "main.go",
"hashed_secret": "2ff1afc1be76559b91d99e36ad5c8a20f5c041cd",
"is_verified": false,
"line_number": 85,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "main.go",
"hashed_secret": "7ee294e78b33e56f1f32f05e03847461cb0008df",
"is_verified": false,
"line_number": 89
"line_number": 105,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "main.go",
"hashed_secret": "d22d26f750c4f64214b43ec38aaf6e3456407f0a",
"is_verified": false,
"line_number": 141
"line_number": 157,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "main.go",
"hashed_secret": "4f2da4710cdfd5c9f655ceb78bcb5ed03c73ddfd",
"is_verified": false,
"line_number": 153
"line_number": 169,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "main.go",
"hashed_secret": "24fe4e436894f6911a8234dbf81ad77417eac012",
"is_verified": false,
"line_number": 155
"line_number": 171,
"is_secret": false
}
]
},
"generated_at": "2022-08-09T22:15:53Z"
"generated_at": "2022-09-01T14:44:37Z"
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.24.2] - 2022-08-08
### Added
- App config version control integration [#358](https://github.com/rokwire/core-building-block/issues/358)
- Allow passing nil context to WithContext storage functions [#494](https://github.com/rokwire/core-building-block/issues/494)
- Account system configs [#558](https://github.com/rokwire/core-building-block/issues/558)

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ ROKWIRE_CORE_SYSTEM_APP_TYPE_NAME | < string > | yes | Name for system admin app
ROKWIRE_CORE_SYSTEM_API_KEY | < string > | yes | API key for system admin application. Only required for first run.
ROKWIRE_CORE_SYSTEM_ACCOUNT_EMAIL | < string > | yes | Email address for initial system admin account. Only required for first run.
ROKWIRE_CORE_SYSTEM_ACCOUNT_PASSWORD | < string > | yes | Password for initial system admin account. Only required for first run.

ROKWIRE_CORE_GITHUB_APP_CONFIG_WEBHOOK_SECRET | < string > | no | Secret to to validate GitHub webhook signatures for app configs.
ROKWIRE_CORE_GITHUB_TOKEN | < string > | no | Access token that authenticates with GitHub.
ROKWIRE_CORE_GITHUB_APP_CONFIG_ORG_NAME | < string > | no | Organization name of the app config GitHub repository.
ROKWIRE_CORE_GITHUB_APP_CONFIG_REPO_NAME | < string > | no | App config GitHub repository name.
ROKWIRE_CORE_GITHUB_APP_CONFIG_WEBHOOK_CONFIG_PATH | < string > | no | File path of webhook-config.json in the app config GitHub repository.
ROKWIRE_CORE_GITHUB_APP_CONFIG_BRANCH | < string > | no | Branch name to process webhooks for app config GitHub repository.
### Run Application

#### Run locally without Docker
Expand Down Expand Up @@ -173,4 +178,4 @@ This repository is configured with a [pre-commit](https://pre-commit.com/) hook
$ git pull # Pull in pre-commit configuration & baseline
$ pip install pre-commit
$ pre-commit install
```
```
Loading