feat: migrate project secrets and user-scoped colors
This commit is contained in:
1 parent
f723afa369
commit
07e25a3cf3
13 files changed
+280
-15
No files matched your search
@@ -97,7 +97,7 @@ core_config.on_update(lambda info: auth_client.set_base_url(info.auth_guard_url)
|
||||
|
||||
# in your framework's route for PUT /api/core-services/internal:
|
||||
async def push_core_services(request):
|
||||
if request.headers.get("X-Internal-Auth") != INTERNAL_SERVICE_SECRET:
|
||||
if request.headers.get("X-Internal-Auth") != SECRET:
|
||||
raise HTTPException(status_code=401)
|
||||
body = await request.json()
|
||||
info = core_config.set(CoreConfigInfo.from_json(body))
|
||||
|
||||
Reference in new issue
Block a user