From ff06b3d439c927cdf0f5a82b8f48ff1f75350fb0 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Wed, 18 Oct 2023 12:34:17 +1100 Subject: [PATCH] add additional transformers --- default_filter_transformers.yaml | 245 ++++++++++++++++++++++++++++++- 1 file changed, 240 insertions(+), 5 deletions(-) diff --git a/default_filter_transformers.yaml b/default_filter_transformers.yaml index 360add3..12d4f4f 100644 --- a/default_filter_transformers.yaml +++ b/default_filter_transformers.yaml @@ -1,5 +1,184 @@ --- transforms: + +## Operating System transformers + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: alpine + exactMatch: true + transformations: + - name: Name + value: Alpine Linux + - name: Category + value: OS + - name: Description + value: Base image Alpine Linux version + keyfact: true + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: amzn + exactMatch: true + transformations: + - name: Name + value: Amazon Linux + - name: Category + value: OS + - name: Description + value: Base image Amazon Linux version + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: debian + exactMatch: true + transformations: + - name: Name + value: Debian Linux + - name: Category + value: OS + - name: Description + value: Base image Debian Linux version + +# Lagoon Transformers + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: LAGOON_VERSION + exactMatch: true + transformations: + - name: Name + value: Image Version + - name: Category + value: Lagoon + - name: Description + value: The currently running Lagoon Image version + keyfact: true + +# Service Transformers + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: mariadb-common + exactMatch: true + transformations: + - name: Name + value: MariaDB + - name: Category + value: Service + - name: Description + value: The currently running MariaDB service + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: mongodb + exactMatch: true + transformations: + - name: Name + value: MongoDB + - name: Category + value: Service + - name: Description + value: The currently running MongoDB service + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: nginx + exactMatch: true + transformations: + - name: Name + value: NGINX + - name: Category + value: Service + - name: Description + value: The currently running NGINX service + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: opensearch-core + exactMatch: true + transformations: + - name: Name + value: OpenSearch + - name: Category + value: Service + - name: Description + value: The currently running OpenSearch service + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: PG_VERSION + exactMatch: true + transformations: + - name: Name + value: PostgreSQL + - name: Category + value: Service + - name: Description + value: The currently running PostgreSQL service + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: RABBITMQ_VERSION + exactMatch: true + transformations: + - name: Name + value: RabbitMQ + - name: Category + value: Service + - name: Description + value: The currently running RabbitMQ service + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: REDIS_VERSION + exactMatch: true + transformations: + - name: Name + value: Redis + - name: Category + value: Service + - name: Description + value: The currently running Redis service + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: solr-core + exactMatch: true + transformations: + - name: Name + value: Solr + - name: Category + value: Service + - name: Description + value: The currently running Solr service + - type: cyclonedx.Component + lookupvalue: + - name: Name + value: varnish + exactMatch: true + transformations: + - name: Name + value: Varnish + - name: Category + value: Service + - name: Description + value: The currently running Varnish service + +# Language Transformers + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: NODE_VERSION + exactMatch: true + transformations: + - name: Name + value: NodeJS + - name: Category + value: Language + - name: Description + value: The currently installed NodeJS version + keyfact: true - type: handler.EnvironmentVariable lookupvalue: - name: Key @@ -13,6 +192,34 @@ transforms: - name: Description value: The currently installed PHP version keyfact: true + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: PYTHON_VERSION + exactMatch: true + transformations: + - name: Name + value: Python + - name: Category + value: Language + - name: Description + value: The currently installed Python version + keyfact: true + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: RUBY_VERSION + exactMatch: true + transformations: + - name: Name + value: Ruby + - name: Category + value: Language + - name: Description + value: The currently installed Ruby version + keyfact: true + +# Application Transformers - type: cyclonedx.Component lookupvalue: - name: Name @@ -27,16 +234,18 @@ transforms: - type: cyclonedx.Component lookupvalue: - name: Name - value: alpine + value: johnpbloch/wordpress-core exactMatch: true transformations: - name: Name - value: Alpine Linux + value: Wordpress - name: Category - value: OS + value: Application - name: Description - value: Base image Alpine Linux version + value: The currently installed Wordpress version keyfact: true + +# Helper Transformers - type: cyclonedx.Component lookupvalue: - name: Name @@ -46,4 +255,30 @@ transforms: value: Drush - name: Category value: Helper - keyfact: true \ No newline at end of file + keyfact: true + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: PYTHON_PIP_VERSION + exactMatch: true + transformations: + - name: Name + value: pip + - name: Category + value: Helper + - name: Description + value: The currently installed pip (Python package installer) version + keyfact: true + - type: handler.EnvironmentVariable + lookupvalue: + - name: Key + value: YARN_VERSION + exactMatch: true + transformations: + - name: Name + value: Yarn + - name: Category + value: Helper + - name: Description + value: The currently installed Yarn package manager version + keyfact: true