Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
pleunwillemsen
Explorer
Jump to solution

Europe dome9 api endpoint not resolvable

shiftleft code-scan -s C:\repos\project1
INFO [20-02-2021 07:33:23.966] ShiftLeft Code-Scan Blade Scan Started!
ERROR [20-02-2021 07:34:27.200] failed initializing communication: request timeout after 6 retries got err: Post https://api.eu.dome9.com/v2/auth/assume-role/jwt: dial tcp: lookup api.eu.dome9.com: no such host

Below the environment variables

Environment variable namevalue
CHKP_CLOUDGUARD_ID'GUID'
CHKP_CLOUDGUARD_SECRET'secret'
SHIFTLEFT_REGION'EU'

Windows executables in both versions (x86 and x64)

shiftleft --version
0.0.29

Documentation: https://sc1.checkpoint.com/documents/CloudGuard_Dome9/Documentation/Shift-Left/Installing-shiftleft.... -> 'Installing ShiftLeft on Windows'

see also: https://github.com/dome9/shiftleft/issues/2

0 Kudos
1 Solution

Accepted Solutions
StuartGreen
Employee
Employee

I think that's addressed the first issue because it's using the right host - but looks like your key is invalid. Did you generate the key from an EU tenant (ones from the US default tenant aren't valid in EU).

View solution in original post

0 Kudos
4 Replies
StuartGreen
Employee
Employee

Can you try setting the value of SHIFTLEFT_REGION to 'EU1' ?

0 Kudos
pleunwillemsen
Explorer

No luck

#switch to EU1

Set-Item Env:\SHIFTLEFT_REGION -Value 'EU1'
shiftleft code-scan -s C:\repos\project1
INFO [22-02-2021 17:30:47.793] ShiftLeft Code-Scan Blade Scan Started!
ERROR [22-02-2021 17:30:48.048] failed initializing communication: cannot login to Check Point authentication service (respone 401), please verify your key

#Switch back to EU

Set-Item Env:\SHIFTLEFT_REGION -Value 'EU'
shiftleft code-scan -s C:\repos\project1
INFO [22-02-2021 17:31:01.268] ShiftLeft Code-Scan Blade Scan Started!

INFO [22-02-2021 17:31:11.729] failed initializing communication: request timeout after 6 retries got err: Post https://api.eu.dome9.com/v2/auth/assume-role/jwt: dial tcp: lookup api.eu.dome9.com: no such host

0 Kudos
StuartGreen
Employee
Employee

I think that's addressed the first issue because it's using the right host - but looks like your key is invalid. Did you generate the key from an EU tenant (ones from the US default tenant aren't valid in EU).

0 Kudos
pleunwillemsen
Explorer

Hmm, very strange i'm regenerating a new token; updating my environment variables with the new ID and Secret and the region on EU1.

It runs successfully. 🙄

Anyhow thanks for your time.

0 Kudos
Upcoming Events

    CheckMates Events