Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Checkpoint_UC_V
Explorer

Creating and linking CPMI profile to OPSEC object using WEB API (is a frustrating experience)

Hi all

I'm trying to automate a process to onboard devices to Tufin SecureTrack. That requires creating an OPSEC object with CPMI and LEA. 

For the love of everything, there is no safe way of creating a usable CPMI profile using WEB API. What I tried:

Create generic object (yes, I know, it's unsupported but it's the only real way to at least get something done)
'create': 'com.checkpoint.objects.classes.dummy.CpmiAdministratorProfile',
'name': 'cpmi_read_only',
'permissions': 'READ_ONLY_ALL',
'type': 'administrator_profile',

I even tried adding more fields according to how the object looks like when displayed with show generic object. The problem is they get reset to read only after the profile creation and they don't look the same as when the profile is created via GUI.

Anyway, the profile gets created, after that I do publish and install database on both management station and logging station (all done via API).

Then I try to create the OPSEC object with the CPMI enabled and the newly created profile linked. The API returns an error:
One of the objects that you selected could not be linked.

When I try to do the same thing in SmartConsole, it works just fine.

When I remove the CPMI part from the API call, it also works just fine (it only creates the OPSEC with LEA and doesn't return any error) so the error is certainly linked to the CPMI profile.

So, if there is no (even undocumented way) to get this working, am I really left with only one option and that is no possibility of fully automated process? Do I really need to make users go to SmartConsole to configure the CPMI part manually and publish? It literally takes like 10x longer than the whole automated part.

I've been at this for a whole week and honestly, it feels like an absolute oversight.

Oh, an the behavior is the same for R81 and R82 so pretty much version independent.

/Milan from DXC

0 Kudos
5 Replies
PhoneBoy
Admin
Admin

What is missing from this API, which has been supported since R80.10?
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-opsec-application~v2.1%20 

0 Kudos
Checkpoint_UC_V
Explorer

My problem is not OPSEC object creation but CPMI profile creation. Or rather, I am able to create the CPMI profile using the add generic object call but when I try to attach it to OPSEC object I get the above error.
When I try to attach the same profile to the same OPSEC object via SmartConsole, it works.

0 Kudos
PhoneBoy
Admin
Admin

I think this translates to Permissions Profiles, which doesn't have a formal API endpoint. 
@Omer_Kleinstern any ideas here?

0 Kudos
Amir_Senn
MVP Silver CHKP MVP Silver CHKP
MVP Silver CHKP

Maybe it's something that log exporter can replace?

Kind regards, Amir Senn
0 Kudos
Checkpoint_UC_V
Explorer

Hi
Not really. Tufin loads and anaylizes the rulebase, not just the logs. That's why it needs CPMI.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events