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
@@ -44,7 +44,7 @@ coreConfig.onUpdate((info) => authClient.setBaseUrl(info.authGuardUrl));
|
||||
|
||||
// in your own route for PUT /api/core-services/internal:
|
||||
app.put('/api/core-services/internal', (req, res) => {
|
||||
if (req.get('X-Internal-Auth') !== process.env.INTERNAL_SERVICE_SECRET) {
|
||||
if (req.get('X-Internal-Auth') !== process.env.SECRET) {
|
||||
return res.status(401).json({ error: 'internal service authentication required' });
|
||||
}
|
||||
const info = coreConfig.set(req.body);
|
||||
|
||||
Reference in new issue
Block a user