Skip to content

Conversation

@Ninoxe
Copy link
Contributor

@Ninoxe Ninoxe commented Oct 30, 2025

Proposed changes

  • Typo in env.sample file instead of .env.sample.
  • Update README table.
  • entrypoint.py removed.
  • Redo the models folder following the example already implemented in the other connectors.
  • Remove config_loader_sparta.py file
  • Clean client_api.py.
  • Check if stix_bundle is empty before initiating the job.
  • Remove utils file.

To do after review:

  • update manifest to be verified and composer compatible
  • update README with the date of verification

Related issues

Checklist

  • I consider the submitted work as finished
  • I have signed my commits using GPG key.
  • I tested the code for its functionality using different use cases
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

@Ninoxe Ninoxe self-assigned this Oct 30, 2025
@Ninoxe Ninoxe added filigran team use to identify PR from the Filigran team filigran verify Use to identify PR of connector Verified connector: Aerospace Sparta labels Oct 30, 2025
@romain-filigran
Copy link
Member

If the connector is considered as "Verified" after this PR, the manifest has to be updated also to include it in the composer
cc: @helene-nguyen

@Ninoxe Ninoxe linked an issue Oct 30, 2025 that may be closed by this pull request
Copy link
Member

@mariot mariot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!
Just two small comments.
Thanks!

#send_to_directory_path: 'ChangeMe' # if CONNECTOR_SEND_TO_DIRECTORY is True, you must specify a path
#send_to_directory_retention: ChangeMe # Default: 7, in days
#name: 'Aerospace SPARTA'
#scope: '["attack-pattern", "course-of-action", "indicator", "identity"]'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#scope: '["attack-pattern", "course-of-action", "indicator", "identity"]'
scope: 'attack-pattern, course-of-action, indicator, identity'
Image

Comment on lines +38 to +48
class ConfigLoader(ConfigBaseSettings):
"""Interface for loading global configuration settings."""

opencti: _ConfigLoaderOCTI = Field(
default_factory=_ConfigLoaderOCTI,
description="OpenCTI configurations.",
)
connector: ConfigLoaderConnector = Field(
default_factory=ConfigLoaderConnector,
description="Connector configurations.",
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use the connectors-sdk?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please! 🙏

Comment on lines +66 to +89
if env_path.exists():
return (
DotEnvSettingsSource(
settings_cls,
env_file=env_path,
env_ignore_empty=True,
env_file_encoding="utf-8",
),
)
elif yaml_path.exists():
return (
YamlConfigSettingsSource(
settings_cls,
yaml_file=yaml_path,
yaml_file_encoding="utf-8",
),
)
else:
return (
EnvSettingsSource(
settings_cls,
env_ignore_empty=True,
),
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our default order is:

  1. Environment variables
  2. YAML file
  3. .env file
  4. Default values

But implementing this might cause a breaking change for the client. How should we proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connector: Aerospace Sparta filigran team use to identify PR from the Filigran team filigran verify Use to identify PR of connector Verified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Aerospace Sparta] Verification

5 participants