KC-1416: Add Tenable CNAPP integration support - #2327
Open
jpkeepersecurity wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change extends the CNAPP command set with Tenable support and the Encrypter settings needed to protect provider-specific identifiers before they are queued.
It also makes queue payload decryption provider-aware, allowing mixed Wiz and Tenable queue results to resolve the correct configuration automatically.
Changes
CNAPP_PROVIDER_TENABLEsupport to the generated CNAPP protobuf bindings--url-base-encrypterand--api-token-encrypterconfiguration optionsSecurity considerations
The Encrypter API token is sent to the router when configuring or testing the integration, but it is never emitted by
config read. JSON output exposes onlyapiTokenEncrypterSet: truewhen a token is configured.Automated tests
Usage and manual verification
Test Encrypter connectivity:
pam cnapp config test-encrypter \ --url "$ENCRYPTER_URL"Test Tenable configuration without saving:
Save Tenable configuration:
Read configuration as a table:
Read configuration as JSON:
The JSON output should contain
apiTokenEncrypterSet: true, never the token itself.List all queue items with automatic provider detection and decryption:
pam cnapp queue list \ --network-uid "$NETWORK_UID" \ --format tableList Tenable items using an explicit configuration lookup:
pam cnapp queue list \ --network-uid "$NETWORK_UID" \ --provider tenable \ --format tableList pending items as JSON:
pam cnapp queue list \ --network-uid "$NETWORK_UID" \ --status pending \ --format jsonList using an explicit Encrypter record:
List without attempting payload decryption:
pam cnapp queue list \ --network-uid "$NETWORK_UID" \ --no-decrypt \ --format tableFor the following commands, obtain the IDs from
queue list:Associate a vault record:
Dispatch credential rotation:
Update queue status:
Delete a queue item:
pam cnapp queue delete \ --queue-id "$QUEUE_ID"Delete the saved CNAPP configuration last:
pam cnapp config delete \ --network-uid "$NETWORK_UID"