Skip to content

Commit

Permalink
use non-redacted orgkey for attach script (razee-io#1322)
Browse files Browse the repository at this point in the history
* use non-redacted orgkey for attach script

* keep orgkeyfromquery
  • Loading branch information
carrolp authored May 22, 2023
1 parent 295f91e commit ac055e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/install/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ const { CLUSTER_REG_STATES } = require('../../apollo/models/const');
const { getRddJobUrl } = require('../../utils/rdd');

router.get('/razeedeploy-job', asyncHandler(async (req, res, next) => {
const orgKey = req.orgKey;
let args = req.query.args ? req.query.args : [];
let args_array = Array.isArray(args) ? args : [args];
let host = req.get('host');
if (process.env.EXTERNAL_HOST) {
host = process.env.EXTERNAL_HOST;
}
args_array.push(`--razeedash-url=${req.protocol}://${host}/api/v2`);
args_array.push(`--razeedash-org-key=${req.query.orgKey}`);
args_array.push(`--razeedash-org-key=${orgKey}`);
if(req.query.clusterId) {
args_array.push(`--razeedash-cluster-id=${req.query.clusterId}`);
try {
Expand Down

0 comments on commit ac055e5

Please sign in to comment.