fix(secrets): remove hardcoded vault token for gitguardian
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const conf = require('@simpleworkjs/conf');
|
const conf = require('@simpleworkjs/conf');
|
||||||
const VAULT_URL = 'http://openbao:8200';
|
const VAULT_URL = process.env.VAULT_ADDR || 'http://openbao:8200';
|
||||||
const VAULT_TOKEN = 'root';
|
const VAULT_TOKEN = process.env.VAULT_TOKEN || 'root';
|
||||||
|
|
||||||
async function getVaultConf() {
|
async function getVaultConf() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -78,7 +78,6 @@
|
|||||||
<script>
|
<script>
|
||||||
app.auth.forceLogin();
|
app.auth.forceLogin();
|
||||||
|
|
||||||
const VAULT_TOKEN = 'root'; // Dev mode root token
|
|
||||||
let currentSecretPath = null;
|
let currentSecretPath = null;
|
||||||
const secretModal = new bootstrap.Modal(document.getElementById('secretModal'));
|
const secretModal = new bootstrap.Modal(document.getElementById('secretModal'));
|
||||||
|
|
||||||
@@ -86,7 +85,6 @@
|
|||||||
const opts = {
|
const opts = {
|
||||||
method,
|
method,
|
||||||
headers: {
|
headers: {
|
||||||
'X-Vault-Token': VAULT_TOKEN,
|
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'auth-token': app.auth.getToken()
|
'auth-token': app.auth.getToken()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user