-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the initial version of the OpenCTI charm #2
Changes from 34 commits
07170cf
11dbfc8
4f210cf
1dbcebf
a948dcb
e990cd3
3632067
22077d2
676b9a0
dc9ce01
d1c0c05
38db050
8a1264b
0caebdc
020665a
336b84c
702add8
1f2b5c5
403aa75
4dbc03a
e494868
875e116
9387460
61e7daa
ab0eb50
88ae9c1
a781a43
758231a
06bce03
f99ae13
f5e2459
5a6e508
3de4d69
5eb4d6c
b4ab9cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,14 @@ jobs: | |
uses: canonical/operator-workflows/.github/workflows/test.yaml@main | ||
secrets: inherit | ||
with: | ||
self-hosted-runner: true | ||
self-hosted-runner-label: "edge" | ||
self-hosted-runner: false | ||
integration-tests: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It saves one workflow file and makes it easier to check CI failures since unit tests and integration tests are in the same job tab. |
||
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main | ||
secrets: inherit | ||
with: | ||
channel: 1.29-strict/stable | ||
charmcraft-channel: latest/edge | ||
juju-channel: 3.6/stable | ||
microk8s-addons: "dns ingress rbac storage" | ||
pre-run-script: tests/integration/prepare.sh | ||
self-hosted-runner: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See the self-hosted runner comment above. |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A lot of linting of "not present anymore, can be safely removed.". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think most of them are false alarms. Maybe we should upgrade the workflow. Thanks!
jdkandersson marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# cross-spawn (package.json) | ||
CVE-2024-21538 | ||
# esbuild | ||
CVE-2024-24790 | ||
CVE-2023-45288 | ||
CVE-2024-34156 | ||
# pebble | ||
CVE-2024-45338 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignore_files: | ||
- lib/charms/redis_k8s/v0/redis.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,98 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
# This file configures Charmcraft. | ||
# See https://juju.is/docs/sdk/charmcraft-config for guidance. | ||
|
||
name: opencti | ||
title: OpenCTI Charm | ||
summary: OpenCTI charm. | ||
links: | ||
documentation: https://github.com/canonical/opencti-operator/blob/main/README.md | ||
issues: https://github.com/canonical/opencti-operator/issues | ||
source: https://github.com/canonical/opencti-operator | ||
contact: https://launchpad.net/~canonical-is-devops | ||
|
||
description: | | ||
A [Juju](https://juju.is/) [charm](https://juju.is/docs/olm/charmed-operators) | ||
for deploying and managing the [OpenCTI](https://filigran.io/solutions/open-cti/) | ||
open-source threat intelligence platform in your systems. | ||
|
||
This charm simplifies the configuration and maintenance of OpenCTI across a | ||
range of environments, organize your cyber threat intelligence to enhance | ||
and disseminate actionable insights. | ||
|
||
config: | ||
yhaliaw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
options: | ||
admin-user: | ||
type: string | ||
jdkandersson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
description: | | ||
OpenCTI admin user email and password. | ||
The content of this configuration should be a Juju user secret ID. | ||
The Juju user secret should contain two fields, `email` and `password`, | ||
where `email` is the admin user email, and `password` is the admin user password. | ||
Use the following commands to create a Juju user secret for this configuration: | ||
`juju add-secret opencti-admin-user [email protected] password#file=/path/to/password.txt` | ||
`juju grant-secret opencti-admin-user opencti` | ||
|
||
requires: | ||
opensearch-client: | ||
interface: opensearch_client | ||
optional: false | ||
limit: 1 | ||
redis: | ||
interface: redis | ||
optional: false | ||
limit: 1 | ||
amqp: | ||
interface: rabbitmq | ||
optional: false | ||
limit: 1 | ||
s3: | ||
interface: s3 | ||
optional: false | ||
limit: 1 | ||
ingress: | ||
interface: ingress | ||
optional: false | ||
limit: 1 | ||
logging: | ||
interface: loki_push_api | ||
optional: true | ||
|
||
provides: | ||
metrics-endpoint: | ||
interface: prometheus_scrape | ||
optional: true | ||
grafana-dashboard: | ||
interface: grafana_dashboard | ||
optional: true | ||
|
||
peers: | ||
opencti-peer: | ||
interface: opencti_peer | ||
|
||
type: charm | ||
bases: | ||
- build-on: | ||
- name: ubuntu | ||
channel: "22.04" | ||
run-on: | ||
- name: ubuntu | ||
channel: "22.04" | ||
base: [email protected] | ||
build-base: [email protected] | ||
platforms: | ||
amd64: | ||
parts: | ||
charm: | ||
build-snaps: | ||
- rustup | ||
override-build: | | ||
rustup default stable | ||
craftctl default | ||
build-packages: | ||
- libffi-dev | ||
- libssl-dev | ||
- pkg-config | ||
|
||
containers: | ||
opencti: | ||
resource: opencti-image | ||
resources: | ||
opencti-image: | ||
type: oci-image | ||
description: OCI image for the OpenCTI platform/worker. | ||
|
||
assumes: | ||
- juju >= 3.4 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For our team, I think we should generally use self-hosted runners on "edge".
On the other hand, I think "edge" does have more wait time than GitHub runner under Canonical org.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the wait time for self-hosted runners is too long. I am currently rapidly developing the charm and will switch to the self-hosted runner once the charm is more stable. Thanks!