---
title: Charmhub | Deploy OpenCTI Charm using Charmhub - The Open Operator Collection
description: Deploy the latest version of OpenCTI Charm as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/opencti/libraries/opencti_connector
---

# OpenCTI Charm

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 65

```
juju deploy opencti
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

[Toggle side navigation](https://charmhub.io/opencti/libraries/opencti_connector#drawer)

## charms.opencti.v0.opencti\_connector

* [*Docstrings*Docstrings](https://charmhub.io/opencti/libraries/opencti_connector)
  [*Code*Source code](https://charmhub.io/opencti/libraries/opencti_connector/source-code)
* + Download

    Fetch library

    ```
    charmcraft fetch-lib charms.opencti.v0.opencti_connector
    ```

    [Download opencti\_connector.py](https://charmhub.io/opencti/libraries/opencti_connector/download)
  + *Last updated* 11 Sep 2025
  + *Revision* Library version 0.3

OpenCTI connector charm library.

---

Index

* [class NotReady](https://charmhub.io/opencti/libraries/opencti_connector#notready)
* [class Blocked](https://charmhub.io/opencti/libraries/opencti_connector#blocked)
* [class OpenctiConnectorCharm](https://charmhub.io/opencti/libraries/opencti_connector#opencticonnectorcharm)
* + [def connector\_type(
    self)](https://charmhub.io/opencti/libraries/opencti_connector#opencticonnectorcharm-connector_type)
* + [def charm\_dir(
    self)](https://charmhub.io/opencti/libraries/opencti_connector#opencticonnectorcharm-charm_dir)
* + [def \_\_init\_\_(
    self)](https://charmhub.io/opencti/libraries/opencti_connector#opencticonnectorcharm-__init__)
* + [def boolean\_style(
    self)](https://charmhub.io/opencti/libraries/opencti_connector#opencticonnectorcharm-boolean_style)
* + [def kebab\_to\_constant(
    self,
    name)](https://charmhub.io/opencti/libraries/opencti_connector#opencticonnectorcharm-kebab_to_constant)

#### class NotReady

Description

The OpenCTI connector is not ready. None

#### class Blocked

Description

The OpenCTI connector is blocked. None

#### class OpenctiConnectorCharm

Description

OpenCTI connector base charm. None

Methods

OpenctiConnectorCharm.
connector\_type(

*self*
)

The OpenCTI connector type.

Description

Can be either "EXTERNAL\_IMPORT", "INTERNAL\_ENRICHMENT", "INTERNAL\_IMPORT\_FILE",
"INTERNAL\_EXPORT\_FILE" or "STREAM".

Returns: the connector type.

OpenctiConnectorCharm.
charm\_dir(

*self*
)

Description

Return the charm directory (the one with charmcraft.yaml in it). None

OpenctiConnectorCharm.
\_\_init\_\_(

*self*
)

OpenctiConnectorCharm.
boolean\_style(

*self*
)

Dictate how boolean-typed configurations should translate to environment variable values.

Description

The style should be either "json" for true/false or "python" for True/False.

Returns: "json" or "python"

OpenctiConnectorCharm.
kebab\_to\_constant(

*self*

,
name: str
)

Convert kebab case to constant case

Arguments

name

Kebab case name.

Returns

Input in constant case.
