cvemap icon indicating copy to clipboard operation
cvemap copied to clipboard

Authentication on headless setups

Open jivarson opened this issue 1 year ago • 3 comments

Would be nice if API-token could be provided as argument to "cvemap -auth". Would simplify headless or unattended scenarios.

jivarson avatar Jan 24 '24 20:01 jivarson

Does use an environment variable like export PDCP_API_KEY=xxx satisfy your needs?

Co5mos avatar Jan 25 '24 04:01 Co5mos

I'm actually using the Windows binary. but can only run non-interactive scripts remotely. Can probably set a environment variable, but it would be way easier with cvemap -auth <token>

jivarson avatar Jan 25 '24 07:01 jivarson

Does use an environment variable like export PDCP_API_KEY=xxx satisfy your needs?

@Co5mos Yes, this also lets you use cvemap without 401 error.

RamanaReddy0M avatar Jan 25 '24 09:01 RamanaReddy0M

I was able to utilize psexec to get into the right securitycontext interactively, closing this, but the environment variable didnt seem to work for Windows anyhow

jivarson avatar Jan 28 '24 12:01 jivarson