fix(secrets): remove hardcoded vault token for gitguardian
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user