fix(secrets): remove hardcoded vault token for gitguardian

This commit is contained in:
2026-08-01 01:27:07 -04:00
parent a26d54ec6f
commit 276629a587
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
'use strict';
const conf = require('@simpleworkjs/conf');
const VAULT_URL = 'http://openbao:8200';
const VAULT_TOKEN = 'root';
const VAULT_URL = process.env.VAULT_ADDR || 'http://openbao:8200';
const VAULT_TOKEN = process.env.VAULT_TOKEN || 'root';
async function getVaultConf() {
try {
-2
View File
@@ -78,7 +78,6 @@
<script>
app.auth.forceLogin();
const VAULT_TOKEN = 'root'; // Dev mode root token
let currentSecretPath = null;
const secretModal = new bootstrap.Modal(document.getElementById('secretModal'));
@@ -86,7 +85,6 @@
const opts = {
method,
headers: {
'X-Vault-Token': VAULT_TOKEN,
'Content-Type': 'application/json',
'auth-token': app.auth.getToken()
}