From 6ff8904332491d337aff7acc39d0f2f762216bbc Mon Sep 17 00:00:00 2001 From: vjerci <27707350+vjerci@users.noreply.github.com> Date: Wed, 15 Feb 2023 16:22:52 +0100 Subject: [PATCH] chore: remove dataflow tests --- integration/rules/javascript_test.go | 79 ----- integration/rules/ruby_test.go | 170 ----------- ...cript_express_insecure_cookie_http_only.js | 19 -- ...express_insecure_cookie_insecure_cookie.js | 19 -- ...avascript_lang_exception_promise_reject.js | 29 -- ...taflow_javascript_lang_exception_reject.js | 58 ---- ...t_lang_exception_throw_custom_exception.js | 29 -- ..._javascript_lang_exception_throw_string.js | 29 -- ...pt_lang_file_generation_file_generation.js | 98 ------ ...cript_lang_http_insecure_axios_insecure.js | 22 -- ...ascript_lang_http_insecure_axios_secure.js | 12 - ...cript_lang_http_insecure_fetch_insecure.js | 15 - ...ascript_lang_http_insecure_fetch_secure.js | 5 - ...ipt_lang_http_insecure_request_insecure.js | 15 - ...cript_lang_http_insecure_request_secure.js | 5 - ...low-dataflow_javascript_lang_jwt_secure.js | 5 - ...w-dataflow_javascript_lang_jwt_unsecure.js | 19 -- ...w-dataflow_javascript_lang_logger_child.js | 28 -- ...flow_javascript_lang_logger_child_level.js | 49 --- ...dataflow_javascript_lang_logger_console.js | 29 -- ...ow_javascript_lang_logger_datatype_leak.js | 29 -- ...low-dataflow_javascript_lang_logger_log.js | 29 -- ..._javascript_lang_logger_ok_no_datatypes.js | 5 - ...avascript_lang_session_not_session_leak.js | 5 - ...ow_javascript_lang_session_session_leak.js | 15 - ...low_javascript_lang_weak_encryption_md5.js | 58 ---- ..._javascript_lang_weak_encryption_secure.js | 20 -- ...ow_javascript_lang_weak_encryption_sha1.js | 58 ---- ...low_javascript_lang_weak_encryption_md5.js | 58 ---- ..._javascript_lang_weak_encryption_secure.js | 20 -- ...ow_javascript_lang_weak_encryption_sha1.js | 58 ---- ...ascript_react_google_analytics_insecure.js | 52 ---- ...avascript_react_google_analytics_secure.js | 15 - ...third_parties_algolia_datatype_in_index.js | 54 ---- ...parties_algolia_datatype_in_save_object.js | 109 ------- ...javascript_third_parties_datadog_secure.js | 20 -- ...vascript_third_parties_datadog_unsecure.js | 63 ---- ...pt_third_parties_datadog_browser_secure.js | 5 - ..._third_parties_datadog_browser_unsecure.js | 17 -- ...pt_third_parties_elasticsearch_unsecure.js | 49 --- ...t_third_parties_google_analytics_secure.js | 5 - ...third_parties_google_analytics_unsecure.js | 24 -- ...third_parties_google_tag_manager_secure.js | 5 - ...ird_parties_google_tag_manager_unsecure.js | 47 --- ...arties_sentry_javascript_add_breadcrumb.js | 33 -- ...parties_sentry_javascript_capture_event.js | 35 --- ...ies_sentry_javascript_capture_exception.js | 32 -- ...rties_sentry_javascript_capture_message.js | 29 -- ...ry_javascript_configure_scope_set_extra.js | 38 --- ...ntry_javascript_configure_scope_set_tag.js | 38 --- ...try_javascript_configure_scope_set_user.js | 38 --- ...lang_cookies_datatype_in_signed_cookies.rb | 49 --- ..._lang_cookies_datatype_object_in_cookie.rb | 49 --- ..._ruby_lang_cookies_ok_encrypted_cookies.rb | 24 -- ...aflow_ruby_lang_cookies_ok_no_datatypes.rb | 14 - ...aflow_ruby_lang_exception_datatype_leak.rb | 42 --- ...low_ruby_lang_exception_ok_no_datatypes.rb | 5 - ...ile_generation_datatype_in_csv_generate.rb | 93 ------ ...ng_file_generation_datatype_in_csv_open.rb | 93 ------ ...g_file_generation_datatype_in_file_open.rb | 107 ------- ...ng_file_generation_datatype_in_ftp_open.rb | 47 --- ..._file_generation_datatype_in_io_sysopen.rb | 38 --- ..._http_get_params_datatype_in_param_hash.rb | 29 -- ...lang_http_get_params_datatype_in_params.rb | 49 --- ...tp_get_params_ok_no_datatypes_in_params.rb | 5 - ...ow_ruby_lang_http_insecure_insecure_get.rb | 22 -- ...w_ruby_lang_http_insecure_insecure_post.rb | 15 - ...y_lang_http_insecure_insecure_post_form.rb | 15 - ...w_ruby_lang_http_insecure_ok_secure_url.rb | 12 - ...ruby_lang_http_insecure_uri_encode_form.rb | 15 - ...h_data_insecure_post_form_with_datatype.rb | 29 -- ...e_with_data_insecure_post_with_datatype.rb | 29 -- ...p_post_insecure_with_data_ok_secure_url.rb | 20 -- ...dataflow_ruby_lang_insecure_ftp_ftp_new.rb | 43 --- ...ataflow_ruby_lang_insecure_ftp_ftp_open.rb | 21 -- ...ang_insecure_ftp_ftp_open_with_datatype.rb | 60 ---- ...ow_ruby_lang_insecure_ftp_ok_secure_ftp.rb | 5 - ...-dataflow_ruby_lang_jwt_datatype_in_jwt.rb | 29 -- ...ow_ruby_lang_jwt_datatype_object_in_jwt.rb | 29 -- ...y_lang_jwt_datatypes_with_encrypted_jwt.rb | 62 ---- ...-dataflow_ruby_lang_jwt_ok_no_datatypes.rb | 5 - ...dataflow_ruby_lang_logger_datatype_leak.rb | 29 -- ...taflow_ruby_lang_logger_ok_no_datatypes.rb | 5 - ...sl_verification_ok_verification_enabled.rb | 5 - ..._ssl_verification_verification_disabled.rb | 25 -- ...flow_ruby_lang_weak_encryption_blowfish.rb | 29 -- ...ow_ruby_lang_weak_encryption_digest_md5.rb | 15 - ...w_ruby_lang_weak_encryption_digest_sha1.rb | 15 - ...w_ruby_lang_weak_encryption_openssl_dsa.rb | 38 --- ...w_ruby_lang_weak_encryption_openssl_rsa.rb | 52 ---- ...w_ruby_lang_weak_encryption_rc4_encrypt.rb | 38 --- ...weak_encryption_with_data_blowfish_data.rb | 91 ------ ...ng_weak_encryption_with_data_digest_md5.rb | 29 -- ...g_weak_encryption_with_data_digest_sha1.rb | 29 -- ...k_encryption_with_data_openssl_dsa_data.rb | 67 ---- ...k_encryption_with_data_openssl_rsa_data.rb | 85 ------ ...lang_weak_encryption_with_data_rc4_data.rb | 58 ---- ...ption_application_level_encryption_missing | 161 ---------- ...ils_insecure_communication_no_datatypes.rb | 17 -- ...unication_ok_ssl_disabled_commented_out.rb | 33 -- ...s_insecure_communication_ok_ssl_enabled.rb | 5 - ...ils_insecure_communication_ssl_disabled.rb | 45 --- ...s_insecure_smtp_ok_ssl_verify_peer_mode.rb | 33 -- ...ow_ruby_rails_insecure_smtp_verify_none.rb | 47 --- ...rails_insecure_smtp_verify_none_ssl_var.rb | 19 -- ...ataflow_ruby_rails_logger_datatype_leak.rb | 29 -- ...aflow_ruby_rails_logger_ok_no_datatypes.rb | 5 - ...ails_password_length_ok_password_length.rb | 15 - ...ails_password_length_password_too_short.rb | 27 -- ..._ruby_rails_session_datatype_in_session.rb | 48 --- ...flow_ruby_rails_session_ok_no_datatypes.rb | 14 - ...rties_airbrake_datatype_in_build_notice.rb | 15 - ...ties_airbrake_datatype_in_custom_notice.rb | 32 -- ...ake_datatype_in_extended_notify_methods.rb | 289 ------------------ ...ties_airbrake_datatype_in_merge_context.rb | 29 -- ...ird_parties_airbrake_datatype_in_notify.rb | 68 ----- ...rties_airbrake_datatype_in_rescue_block.rb | 29 -- ...d_parties_airbrake_ok_ignored_datatypes.rb | 5 - ..._third_parties_airbrake_ok_no_datatypes.rb | 5 - ...parties_algolia_datatype_in_save_object.rb | 60 ---- ...ird_parties_algolia_ok_datatype_ignored.rb | 60 ---- ...by_third_parties_algolia_ok_no_datatype.rb | 24 -- ...ird_parties_bigquery_datatype_in_insert.rb | 50 --- ...rties_bigquery_datatype_in_insert_async.rb | 59 ---- ...rties_bigquery_datatype_in_table_insert.rb | 56 ---- ...bigquery_datatype_in_table_insert_async.rb | 68 ----- ...rd_parties_bigquery_ok_datatype_ignored.rb | 59 ---- ...y_third_parties_bigquery_ok_no_datatype.rb | 36 --- ...snag_before_bugsnag_notify_add_metadata.rb | 24 -- ..._bugsnag_before_bugsnag_notify_set_user.rb | 5 - ...w_ruby_third_parties_bugsnag_breadcrumb.rb | 45 --- ...by_third_parties_bugsnag_bugsnag_notify.rb | 65 ---- ...ties_clickhouse_datatype_in_insert_rows.rb | 70 ----- ..._parties_clickhouse_ok_ignored_datatype.rb | 15 - ...third_parties_clickhouse_ok_no_datatype.rb | 15 - ..._third_parties_datadog_datatype_in_tags.rb | 134 -------- ...ird_parties_datadog_ok_datatype_ignored.rb | 48 --- ...by_third_parties_datadog_ok_no_datatype.rb | 15 - ..._parties_elasticsearch_datatype_in_bulk.rb | 38 --- ...parties_elasticsearch_datatype_in_index.rb | 38 --- ...arties_elasticsearch_datatype_in_update.rb | 43 --- ...rties_elasticsearch_ok_datatype_ignored.rb | 38 --- ...rd_parties_elasticsearch_ok_no_datatype.rb | 15 - ...ies_google_analytics_datatype_in_cohort.rb | 29 -- ..._analytics_datatype_in_custom_dimension.rb | 32 -- ...google_analytics_datatype_in_event_data.rb | 32 -- ..._analytics_datatype_in_transaction_data.rb | 29 -- ...ogle_analytics_datatype_in_user_classes.rb | 52 ---- ...es_google_analytics_ok_ignored_datatype.rb | 5 - ...parties_google_analytics_ok_no_datatype.rb | 5 - ...ties_google_dataflow_datatype_in_config.rb | 79 ----- ...google_dataflow_datatype_in_job_message.rb | 47 --- ...es_google_dataflow_datatype_in_metadata.rb | 73 ----- ...oogle_dataflow_datatype_in_params_entry.rb | 38 --- ...taflow_datatype_in_snapshot_job_request.rb | 38 --- ...le_dataflow_datatype_in_snapshot_setter.rb | 70 ----- ...dataflow_datatype_in_structured_message.rb | 38 --- ...ow_datatype_in_structured_message_param.rb | 38 --- ...aflow_datatype_in_template_job_creation.rb | 61 ---- ...le_dataflow_fail_with_different_version.rb | 61 ---- ...ogle_dataflow_ok_ignored_datatypes_only.rb | 15 - ...parties_google_dataflow_ok_no_datatypes.rb | 47 --- ...ruby_third_parties_google_dataflow_temp.rb | 117 ------- ...ties_honeybadger_honeybadger_breadcrumb.rb | 29 -- ...parties_honeybadger_honeybadger_context.rb | 78 ----- ...parties_honeybadger_honeybadger_methods.rb | 32 -- ..._parties_honeybadger_honeybadger_notify.rb | 172 ----------- ...relic_datatype_in_add_custom_attributes.rb | 37 --- ...relic_datatype_in_add_custom_parameters.rb | 40 --- ...ties_new_relic_datatype_in_notice_error.rb | 39 --- ...d_parties_new_relic_ok_datatype_ignored.rb | 29 -- ..._third_parties_new_relic_ok_no_datatype.rb | 5 - ..._telemetry_datatype_in_record_exception.rb | 65 ---- ...n_telemetry_datatype_in_span_attributes.rb | 69 ----- ...s_open_telemetry_datatype_in_span_event.rb | 54 ---- ..._telemetry_datatypes_in_span_init_block.rb | 97 ------ ...ird_parties_rollbar_datatype_in_context.rb | 19 -- ...y_third_parties_rollbar_datatype_in_log.rb | 57 ---- ..._parties_rollbar_datatype_in_log_helper.rb | 122 -------- ...third_parties_rollbar_datatype_in_scope.rb | 62 ---- ...hird_parties_rollbar_datatype_in_scoped.rb | 22 -- ...ird_parties_rollbar_ok_datatype_ignored.rb | 19 -- ...by_third_parties_rollbar_ok_no_datatype.rb | 5 - ...third_parties_scout_apm_datatype_in_add.rb | 29 -- ..._parties_scout_apm_datatype_in_add_user.rb | 29 -- ...d_parties_scout_apm_ok_datatype_ignored.rb | 29 -- ..._third_parties_scout_apm_ok_no_datatype.rb | 5 - ...ird_parties_segment_datatype_as_user_id.rb | 38 --- ...es_segment_datatype_in_nested_attribute.rb | 38 --- ...y_third_parties_segment_ok_no_datatypes.rb | 15 - ...rties_segment_ok_only_ignored_datatypes.rb | 15 - 191 files changed, 7668 deletions(-) delete mode 100644 pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_http_only.js delete mode 100644 pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_insecure_cookie.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_promise_reject.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_reject.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_custom_exception.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_string.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/file_generation/.snapshots/TestJavascriptLangFileGenerationDataflow-dataflow_javascript_lang_file_generation_file_generation.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_insecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_insecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_insecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_unsecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child_level.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_console.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_datatype_leak.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_log.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_ok_no_datatypes.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_not_session_leak.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_session_leak.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_md5.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_sha1.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_md5.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_sha1.js delete mode 100644 pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_insecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_index.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_save_object.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_unsecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_unsecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/.snapshots/TestJavascriptElasticSearchDataflow-dataflow_javascript_third_parties_elasticsearch_unsecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_unsecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_secure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_unsecure.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_add_breadcrumb.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_event.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_exception.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_message.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_extra.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_tag.js delete mode 100644 pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_user.js delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_in_signed_cookies.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_object_in_cookie.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_encrypted_cookies.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_datatype_leak.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_generate.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_open.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_file_open.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_ftp_open.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_io_sysopen.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_param_hash.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_params.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_ok_no_datatypes_in_params.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_get.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post_form.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_ok_secure_url.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_uri_encode_form.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_form_with_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_with_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_ok_secure_url.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_new.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open_with_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ok_secure_ftp.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_in_jwt.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_object_in_jwt.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatypes_with_encrypted_jwt.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_datatype_leak.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_ok_verification_enabled.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_verification_disabled.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_blowfish.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_md5.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_sha1.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_dsa.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_rsa.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_rc4_encrypt.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_blowfish_data.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_md5.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_sha1.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_dsa_data.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_rsa_data.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_rc4_data.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/default_encryption/.snapshots/TestRubyRailsDefaultEncryptionDataflow-dataflow_ruby_rails_default_encryption_application_level_encryption_missing delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_disabled_commented_out.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_enabled.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ssl_disabled.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_ok_ssl_verify_peer_mode.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none_ssl_var.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_datatype_leak.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_ok_password_length.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_password_too_short.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_datatype_in_session.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_build_notice.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_custom_notice.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_extended_notify_methods.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_merge_context.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_notify.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_rescue_block.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_ignored_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_datatype_in_save_object.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert_async.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert_async.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_add_metadata.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_set_user.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_breadcrumb.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_bugsnag_notify.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_datatype_in_insert_rows.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_ignored_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_datatype_in_tags.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_bulk.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_index.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_update.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_cohort.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_custom_dimension.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_event_data.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_transaction_data.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_user_classes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_ignored_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_config.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_job_message.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_metadata.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_params_entry.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_job_request.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_setter.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message_param.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_template_job_creation.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_fail_with_different_version.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_ignored_datatypes_only.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_temp.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_breadcrumb.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_context.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_methods.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_notify.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_attributes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_parameters.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_notice_error.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_record_exception.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_attributes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_event.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatypes_in_span_init_block.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_context.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log_helper.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scope.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scoped.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add_user.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_datatype_ignored.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_no_datatype.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_as_user_id.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_in_nested_attribute.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_no_datatypes.rb delete mode 100644 pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_only_ignored_datatypes.rb diff --git a/integration/rules/javascript_test.go b/integration/rules/javascript_test.go index 1cb47ff9a..48514c3bb 100644 --- a/integration/rules/javascript_test.go +++ b/integration/rules/javascript_test.go @@ -7,56 +7,26 @@ func TestJavascriptLangLoggerSummary(t *testing.T) { runRulesTest("javascript/lang/logger", "summary", "javascript_lang_logger", t) } -func TestJavascriptLangLoggerDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/logger", "dataflow", "javascript_lang_logger", t) -} - func TestJavascriptLangSessionSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/lang/session", "summary", "javascript_session", t) } -func TestJavascriptLangSessionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/session", "dataflow", "javascript_session", t) -} - -func TestJavascriptWeakEncryptionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/weak_encryption", "dataflow", "javascript_weak_encryption", t) -} - func TestJavascriptWeakEncryptionSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/lang/weak_encryption", "summary", "javascript_weak_encryption", t) } -func TestExpressSecureCookieDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/express/insecure_cookie", "dataflow", "express_insecure_cookie", t) -} - func TestExpressSecureCookieSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/express/insecure_cookie", "summary", "express_insecure_cookie", t) } -func TestJavascriptJWTDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/jwt", "dataflow", "javascript_jwt", t) -} - func TestJavascriptJWTSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/lang/jwt", "summary", "javascript_jwt", t) } -func TestJavascriptHTTPInsecureDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/http_insecure", "dataflow", "javascript_http_insecure", t) -} - func TestJavascriptHTTPInsecureSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/lang/http_insecure", "summary", "javascript_http_insecure", t) @@ -67,94 +37,45 @@ func TestJavascriptThirdPartySentrySummary(t *testing.T) { runRulesTest("javascript/third_parties/sentry", "summary", "javascript_third_parties_sentry", t) } -func TestJavascriptThirdPartySentryDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/sentry", "dataflow", "javascript_third_parties_sentry", t) -} - func TestJavascriptLangExceptionSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/lang/exception", "summary", "javascript_lang_exception", t) } -func TestJavascriptLangExceptionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/exception", "dataflow", "javascript_lang_exception", t) -} - func TestJavascriptLangFileGenerationSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/lang/file_generation", "summary", "javascript_lang_file_generation", t) } -func TestJavascriptLangFileGenerationDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/lang/file_generation", "dataflow", "javascript_lang_file_generation", t) -} - -func TestJavascriptGTMDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/google_tag_manager", "dataflow", "javascript_google_tag_manager", t) -} - func TestJavascriptGTMSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/third_parties/google_tag_manager", "summary", "javascript_google_tag_manager", t) } -func TestJavascriptGoogleAnalyticsDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/google_analytics", "dataflow", "javascript_google_analytics", t) -} - func TestJavascriptGoogleAnalyticsSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/third_parties/google_analytics", "summary", "javascript_google_analytics", t) } -func TestJavascriptReactGoogleAnalyticsDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/react/google_analytics", "dataflow", "javascript_react_google_analytics", t) -} - func TestJavascriptReactGoogleAnalyticsSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/react/google_analytics", "summary", "javascript_react_google_analytics", t) } -func TestJavascriptAlgoliaDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/algolia", "dataflow", "javascript_third_parties_algolia", t) -} - func TestJavascriptAlgoliaSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/third_parties/algolia", "summary", "javascript_third_parties_algolia", t) } -func TestJavascriptDataDogDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/datadog", "dataflow", "javascript_third_parties_datadog", t) -} - func TestJavascriptDataDogSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/third_parties/datadog", "summary", "javascript_third_parties_datadog", t) } -func TestJavascriptDataDogBrowserDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/datadog_browser", "dataflow", "javascript_third_parties_datadog_browser", t) -} - func TestJavascriptDataDogBrowserSummary(t *testing.T) { t.Parallel() runRulesTest("javascript/third_parties/datadog_browser", "summary", "javascript_third_parties_datadog_browser", t) } -func TestJavascriptElasticSearchDataflow(t *testing.T) { - t.Parallel() - runRulesTest("javascript/third_parties/elasticsearch", "dataflow", "javascript_elasticsearch", t) -} func TestJavascriptElasticSearchSummary(t *testing.T) { t.Parallel() diff --git a/integration/rules/ruby_test.go b/integration/rules/ruby_test.go index ddd09f547..554af6fad 100644 --- a/integration/rules/ruby_test.go +++ b/integration/rules/ruby_test.go @@ -9,337 +9,167 @@ func TestRubyLangCookiesSummary(t *testing.T) { runRulesTest("ruby/lang/cookies", "summary", "ruby_lang_cookies", t) } -func TestRubyLangCookiesDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/cookies", "dataflow", "ruby_lang_cookies", t) -} - func TestRubyLangFileGenerationSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/file_generation", "summary", "ruby_lang_file_generation", t) } -func TestRubyLangFileGenerationDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/file_generation", "dataflow", "ruby_lang_file_generation", t) -} - func TestRubyLangHttpGetParamsSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/http_get_params", "summary", "ruby_lang_http_get_params", t) } -func TestRubyLangHttpGetParamsDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/http_get_params", "dataflow", "ruby_lang_http_get_params", t) -} - func TestRubyLangHttpInsecureSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/http_insecure", "summary", "ruby_lang_http_insecure", t) } -func TestRubyLangHttpInsecureDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/http_insecure", "dataflow", "ruby_lang_http_insecure", t) -} - func TestRubyLangHttpPostInsecureWithDataSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/http_post_insecure_with_data", "summary", "ruby_lang_http_post_insecure_with_data", t) } -func TestRubyLangHttpPostInsecureWithDataDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/http_post_insecure_with_data", "dataflow", "ruby_lang_http_post_insecure_with_data", t) -} - func TestRubyLangInsecureFtpSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/insecure_ftp", "summary", "ruby_lang_insecure_ftp", t) } -func TestRubyLangInsecureFtpDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/insecure_ftp", "dataflow", "ruby_lang_insecure_ftp", t) -} - func TestRubyLangJwtSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/jwt", "summary", "ruby_lang_jwt", t) } -func TestRubyLangJwtDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/jwt", "dataflow", "ruby_lang_jwt", t) -} - func TestRubyLangLoggerSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/logger", "summary", "ruby_lang_logger", t) } -func TestRubyLangLoggerDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/logger", "dataflow", "ruby_lang_logger", t) -} - func TestRubyLangExceptionSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/exception", "summary", "ruby_lang_exception", t) } -func TestRubyLangExceptionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/exception", "dataflow", "ruby_lang_exception", t) -} - func TestRubyLangSslVerificationSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/ssl_verification", "summary", "ruby_lang_ssl_verification", t) } -func TestRubyLangSslVerificationDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/ssl_verification", "dataflow", "ruby_lang_ssl_verification", t) -} - func TestRubyLangWeakEncryptionSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/weak_encryption", "summary", "ruby_lang_weak_encryption", t) } -func TestRubyLangWeakEncryptionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/weak_encryption", "dataflow", "ruby_lang_weak_encryption", t) -} - func TestRubyLangWeakEncryptionWithDataSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/lang/weak_encryption_with_data", "summary", "ruby_lang_weak_encryption_with_data", t) } -func TestRubyLangWeakEncryptionWithDataDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/lang/weak_encryption_with_data", "dataflow", "ruby_lang_weak_encryption_with_data", t) -} - func TestRubyRailsDefaultEncryptionSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/rails/default_encryption", "summary", "ruby_rails_default_encryption", t) } -func TestRubyRailsDefaultEncryptionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/rails/default_encryption", "dataflow", "ruby_rails_default_encryption", t) -} - func TestRubyRailsInsecureCommunicationSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/rails/insecure_communication", "summary", "ruby_rails_insecure_communication", t) } -func TestRubyRailsInsecureCommunicationDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/rails/insecure_communication", "dataflow", "ruby_rails_insecure_communication", t) -} - func TestRubyRailsInsecureSmtpSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/rails/insecure_smtp", "summary", "ruby_rails_insecure_smtp", t) } -func TestRubyRailsInsecureSmtpDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/rails/insecure_smtp", "dataflow", "ruby_rails_insecure_smtp", t) -} - func TestRubyRailsLoggerSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/rails/logger", "summary", "ruby_rails_logger", t) } -func TestRubyRailsLoggerDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/rails/logger", "dataflow", "ruby_rails_logger", t) -} - func TestRubyRailsPasswordLengthSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/rails/password_length", "summary", "ruby_rails_password_length", t) } -func TestRubyRailsPasswordLengthDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/rails/password_length", "dataflow", "ruby_rails_password_length", t) -} - func TestRubyRailsSessionSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/rails/session", "summary", "ruby_rails_session", t) } -func TestRubyRailsSessionDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/rails/session", "dataflow", "ruby_rails_session", t) -} - func TestRubyThirdPartiesAlgoliaSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/algolia", "summary", "ruby_third_parties_algolia", t) } -func TestRubyThirdPartiesAlgoliaDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/algolia", "dataflow", "ruby_third_parties_algolia", t) -} - func TestRubyThirdPartiesBigQuerySummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/bigquery", "summary", "ruby_third_parties_bigquery", t) } -func TestRubyThirdPartiesBigQueryDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/bigquery", "dataflow", "ruby_third_parties_bigquery", t) -} - func TestRubyThirdPartiesDatadogSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/datadog", "summary", "ruby_third_parties_datadog", t) } -func TestRubyThirdPartiesDatadogDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/datadog", "dataflow", "ruby_third_parties_datadog", t) -} - func TestRubyThirdPartiesElasticsearchSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/elasticsearch", "summary", "ruby_third_parties_elasticsearch", t) } -func TestRubyThirdPartiesElasticsearchDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/elasticsearch", "dataflow", "ruby_third_parties_elasticsearch", t) -} - func TestRubyThirdPartiesNewRelicSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/new_relic", "summary", "ruby_third_parties_new_relic", t) } -func TestRubyThirdPartiesNewRelicDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/new_relic", "dataflow", "ruby_third_parties_new_relic", t) -} - func TestRubyThirdPartiesRollbarSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/rollbar", "summary", "ruby_third_parties_rollbar", t) } -func TestRubyThirdPartiesRollbarDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/rollbar", "dataflow", "ruby_third_parties_rollbar", t) -} - func TestRubyThirdPartiesScoutAPMSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/scout_apm", "summary", "ruby_third_parties_scout_apm", t) } -func TestRubyThirdPartiesScoutAPMDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/scout_apm", "dataflow", "ruby_third_parties_scout_apm", t) -} - func TestRubyThirdPartiesSentrySummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/sentry", "summary", "ruby_third_parties_sentry", t) } -func TestRubyThirdPartiesSentryDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/sentry", "dataflow", "ruby_third_parties_sentry", t) -} - func TestRubyThirdPartiesBugsnagSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/bugsnag", "summary", "ruby_third_parties_bugsnag", t) } -func TestRubyThirdPartiesBugsnagDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/bugsnag", "dataflow", "ruby_third_parties_bugsnag", t) -} - func TestRubyThirdPartiesHoneybadgerSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/honeybadger", "summary", "ruby_third_parties_honeybadger", t) } -func TestRubyThirdPartiesHoneybadgerDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/honeybadger", "dataflow", "ruby_third_parties_honeybadger", t) -} - func TestRubyThirdPartiesAirbrakeSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/airbrake", "summary", "ruby_third_parties_airbrake", t) } -func TestRubyThirdPartiesAirbrakeDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/airbrake", "dataflow", "ruby_third_parties_airbrake", t) -} - func TestRubyThirdPartiesOpenTelemetrySummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/open_telemetry", "summary", "ruby_third_parties_open_telemetry", t) } -func TestRubyThirdPartiesOpenTelemetryDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/open_telemetry", "dataflow", "ruby_third_parties_open_telemetry", t) -} - func TestRubyThirdPartiesSegmentSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/segment", "summary", "ruby_third_parties_segment", t) } -func TestRubyThirdPartiesSegmentDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/segment", "dataflow", "ruby_third_parties_segment", t) -} - func TestRubyThirdPartiesGoogleDataflowSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/google_dataflow", "summary", "ruby_third_parties_google_dataflow", t) } -func TestRubyThirdPartiesGoogleDataflowDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/google_dataflow", "dataflow", "ruby_third_parties_google_dataflow", t) -} - func TestRubyThirdPartiesGoogleAnalyticsSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/google_analytics", "summary", "ruby_third_parties_google_analytics", t) } -func TestRubyThirdPartiesGoogleAnalyticsDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/google_analytics", "dataflow", "ruby_third_parties_google_analytics", t) -} - func TestRubyThirdPartiesClickHouseSummary(t *testing.T) { t.Parallel() runRulesTest("ruby/third_parties/clickhouse", "summary", "ruby_third_parties_clickhouse", t) } - -func TestRubyThirdPartiesClickHouseDataflow(t *testing.T) { - t.Parallel() - runRulesTest("ruby/third_parties/clickhouse", "dataflow", "ruby_third_parties_clickhouse", t) -} diff --git a/pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_http_only.js b/pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_http_only.js deleted file mode 100644 index b3fd932e6..000000000 --- a/pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_http_only.js +++ /dev/null @@ -1,19 +0,0 @@ -risks: - - detector_id: express_insecure_cookie - locations: - - filename: pkg/commands/process/settings/rules/javascript/express/insecure_cookie/testdata/http_only.js - line_number: 9 - parent: - line_number: 9 - content: 'httpOnly: true' - content: | - { - cookie: { - $httpOnly: true - } - } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_insecure_cookie.js b/pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_insecure_cookie.js deleted file mode 100644 index 86205207e..000000000 --- a/pkg/commands/process/settings/rules/javascript/express/insecure_cookie/.snapshots/TestExpressSecureCookieDataflow-dataflow_javascript_express_insecure_cookie_insecure_cookie.js +++ /dev/null @@ -1,19 +0,0 @@ -risks: - - detector_id: express_insecure_cookie - locations: - - filename: pkg/commands/process/settings/rules/javascript/express/insecure_cookie/testdata/insecure_cookie.js - line_number: 9 - parent: - line_number: 9 - content: 'secure: false' - content: | - { - cookie: { - $secure: false - } - } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_promise_reject.js b/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_promise_reject.js deleted file mode 100644 index afb454297..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_promise_reject.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/promise_reject.js - line_number: 5 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_exception - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/promise_reject.js - line_number: 5 - parent: - line_number: 5 - content: Promise.reject(new PermissionDenied("fail" + user.email)) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_reject.js b/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_reject.js deleted file mode 100644 index a3ed37596..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_reject.js +++ /dev/null @@ -1,58 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/reject.js - line_number: 5 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/reject.js - line_number: 14 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_exception - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/reject.js - line_number: 5 - parent: - line_number: 7 - content: reject("Error with user " + user) - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/reject.js - line_number: 14 - parent: - line_number: 16 - content: reject("Error with user " + user) - field_name: email - object_name: current_user - subject_name: User - - detector_id: javascript_lang_new_promise_init - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/reject.js - line_number: 2 - parent: - line_number: 2 - content: reject - content: | - new Promise(function ($<_>, $$<_>) {}) - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/reject.js - line_number: 11 - parent: - line_number: 11 - content: reject - content: | - new Promise(($<_>, $$<_>) => {}) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_custom_exception.js b/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_custom_exception.js deleted file mode 100644 index c712353e8..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_custom_exception.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/throw_custom_exception.js - line_number: 5 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: javascript_lang_exception - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/throw_custom_exception.js - line_number: 5 - parent: - line_number: 5 - content: throw new PermissionDenied(`Error with ${current_user.email}`) - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_string.js b/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_string.js deleted file mode 100644 index 37172228c..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/exception/.snapshots/TestJavascriptLangExceptionDataflow-dataflow_javascript_lang_exception_throw_string.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/throw_string.js - line_number: 5 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_exception - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/exception/testdata/throw_string.js - line_number: 5 - parent: - line_number: 5 - content: throw `${user.email}` - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/file_generation/.snapshots/TestJavascriptLangFileGenerationDataflow-dataflow_javascript_lang_file_generation_file_generation.js b/pkg/commands/process/settings/rules/javascript/lang/file_generation/.snapshots/TestJavascriptLangFileGenerationDataflow-dataflow_javascript_lang_file_generation_file_generation.js deleted file mode 100644 index 90a7943fe..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/file_generation/.snapshots/TestJavascriptLangFileGenerationDataflow-dataflow_javascript_lang_file_generation_file_generation.js +++ /dev/null @@ -1,98 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 11 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 8 - field_name: firstname - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 12 - field_name: firstname - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 8 - field_name: surname - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_file_generation - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 11 - parent: - line_number: 18 - content: |- - fs.writeFile("data.csv", JSON.stringify(users), "utf-8", (err) => { - if (err) console.log(err) - else console.log("Data saved") - }) - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 8 - parent: - line_number: 18 - content: |- - fs.writeFile("data.csv", JSON.stringify(users), "utf-8", (err) => { - if (err) console.log(err) - else console.log("Data saved") - }) - field_name: firstname - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 12 - parent: - line_number: 18 - content: |- - fs.writeFile("data.csv", JSON.stringify(users), "utf-8", (err) => { - if (err) console.log(err) - else console.log("Data saved") - }) - field_name: firstname - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/file_generation/testdata/file_generation.js - line_number: 8 - parent: - line_number: 18 - content: |- - fs.writeFile("data.csv", JSON.stringify(users), "utf-8", (err) => { - if (err) console.log(err) - else console.log("Data saved") - }) - field_name: surname - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_insecure.js b/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_insecure.js deleted file mode 100644 index 1aaf737fe..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_insecure.js +++ /dev/null @@ -1,22 +0,0 @@ -risks: - - detector_id: javascript_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/http_insecure/testdata/axios_insecure.js - line_number: 2 - parent: - line_number: 2 - content: axios.get(insecure_url) - content: | - $.$($) -components: - - name: http://domain.com/api/movies - type: "" - sub_type: "" - locations: - - detector: javascript - filename: pkg/commands/process/settings/rules/javascript/lang/http_insecure/testdata/axios_insecure.js - line_number: 1 - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_secure.js b/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_secure.js deleted file mode 100644 index fe30f03e9..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_axios_secure.js +++ /dev/null @@ -1,12 +0,0 @@ -components: - - name: https://domain.com/api/movies - type: "" - sub_type: "" - locations: - - detector: javascript - filename: pkg/commands/process/settings/rules/javascript/lang/http_insecure/testdata/axios_secure.js - line_number: 1 - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_insecure.js b/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_insecure.js deleted file mode 100644 index bacdc54b7..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_insecure.js +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: javascript_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/http_insecure/testdata/fetch_insecure.js - line_number: 3 - parent: - line_number: 3 - content: fetch(insecure_url) - content: | - fetch($) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_secure.js b/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_secure.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_fetch_secure.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_insecure.js b/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_insecure.js deleted file mode 100644 index b0c3754bf..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_insecure.js +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: javascript_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/http_insecure/testdata/request_insecure.js - line_number: 5 - parent: - line_number: 5 - content: xhttp.open("GET", insecure_url, true) - content: | - $.open($<_>, $); -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_secure.js b/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_secure.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/http_insecure/.snapshots/TestJavascriptHTTPInsecureDataflow-dataflow_javascript_lang_http_insecure_request_secure.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_secure.js b/pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_secure.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_secure.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_unsecure.js b/pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_unsecure.js deleted file mode 100644 index f62499aa6..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/jwt/.snapshots/TestJavascriptJWTDataflow-dataflow_javascript_lang_jwt_unsecure.js +++ /dev/null @@ -1,19 +0,0 @@ -risks: - - detector_id: javascript_jwt - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/jwt/testdata/unsecure.js - line_number: 2 - parent: - line_number: 2 - content: 'jwt.sign({ user: { email: "jhon@gmail.com" } }, "shhhhh")' - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child.js b/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child.js deleted file mode 100644 index f2002681c..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child.js +++ /dev/null @@ -1,28 +0,0 @@ -risks: - - detector_id: javascript_lang_logger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/child.js - line_number: 3 - parent: - line_number: 7 - content: logger.child(ctx) - field_name: email - object_name: user - subject_name: User - - detector_id: child_logger - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/child.js - line_number: 7 - parent: - line_number: 7 - content: logger.child(ctx) - content: | - $.child() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child_level.js b/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child_level.js deleted file mode 100644 index b40a9927a..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_child_level.js +++ /dev/null @@ -1,49 +0,0 @@ -data_types: - - name: Fullname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/child_level.js - line_number: 7 - field_name: name - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_logger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/child_level.js - line_number: 3 - parent: - line_number: 7 - content: logger.child(ctx) - field_name: email - object_name: user - subject_name: User - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/child_level.js - line_number: 7 - parent: - line_number: 7 - content: logger.child(ctx).info(user.name) - field_name: name - object_name: user - subject_name: User - - detector_id: child_logger - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/child_level.js - line_number: 7 - parent: - line_number: 7 - content: logger.child(ctx) - content: | - $.child() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_console.js b/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_console.js deleted file mode 100644 index 9feebf984..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_console.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Fullname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/console.js - line_number: 1 - field_name: name - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_logger - data_types: - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/console.js - line_number: 1 - parent: - line_number: 1 - content: console.log(user.name) - field_name: name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_datatype_leak.js b/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_datatype_leak.js deleted file mode 100644 index 723070284..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_datatype_leak.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/datatype_leak.js - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_logger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/datatype_leak.js - line_number: 1 - parent: - line_number: 1 - content: logger.info(user.email) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_log.js b/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_log.js deleted file mode 100644 index 3529351d8..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_log.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Fullname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/log.js - line_number: 1 - field_name: name - object_name: user - subject_name: User -risks: - - detector_id: javascript_lang_logger - data_types: - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/logger/testdata/log.js - line_number: 1 - parent: - line_number: 1 - content: log.info(user.name) - field_name: name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_ok_no_datatypes.js b/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_ok_no_datatypes.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/logger/.snapshots/TestJavascriptLangLoggerDataflow-dataflow_javascript_lang_logger_ok_no_datatypes.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_not_session_leak.js b/pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_not_session_leak.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_not_session_leak.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_session_leak.js b/pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_session_leak.js deleted file mode 100644 index 7c37fdf4a..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/session/.snapshots/TestJavascriptLangSessionDataflow-dataflow_javascript_lang_session_session_leak.js +++ /dev/null @@ -1,15 +0,0 @@ -data_types: - - name: Fullname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/session/testdata/session_leak.js - line_number: 1 - field_name: name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_md5.js b/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_md5.js deleted file mode 100644 index 4c5855b5f..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_md5.js +++ /dev/null @@ -1,58 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 4 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 5 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: javascript_weak_encryption - data_types: - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("md5", key).update(user.password) - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("md5").update(user.password) - field_name: password - object_name: user - subject_name: User - - detector_id: create_hash - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("md5", key) - content: | - crypto.$($$<...>) - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("md5") - content: | - crypto.$($$<...>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_secure.js b/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_secure.js deleted file mode 100644 index 363993cf4..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_secure.js +++ /dev/null @@ -1,20 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/secure.js - line_number: 4 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/secure.js - line_number: 5 - field_name: password - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_sha1.js b/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_sha1.js deleted file mode 100644 index 3050f9c42..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryption-dataflow_javascript_lang_weak_encryption_sha1.js +++ /dev/null @@ -1,58 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 4 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 5 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: javascript_weak_encryption - data_types: - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("sha1", key).update(user.password) - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("sha1").update(user.password) - field_name: password - object_name: user - subject_name: User - - detector_id: create_hash - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("sha1", key) - content: | - crypto.$($$<...>) - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("sha1") - content: | - crypto.$($$<...>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_md5.js b/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_md5.js deleted file mode 100644 index 4c5855b5f..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_md5.js +++ /dev/null @@ -1,58 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 4 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 5 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: javascript_weak_encryption - data_types: - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("md5", key).update(user.password) - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("md5").update(user.password) - field_name: password - object_name: user - subject_name: User - - detector_id: create_hash - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("md5", key) - content: | - crypto.$($$<...>) - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/md5.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("md5") - content: | - crypto.$($$<...>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_secure.js b/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_secure.js deleted file mode 100644 index 363993cf4..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_secure.js +++ /dev/null @@ -1,20 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/secure.js - line_number: 4 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/secure.js - line_number: 5 - field_name: password - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_sha1.js b/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_sha1.js deleted file mode 100644 index 3050f9c42..000000000 --- a/pkg/commands/process/settings/rules/javascript/lang/weak_encryption/.snapshots/TestJavascriptWeakEncryptionDataflow-dataflow_javascript_lang_weak_encryption_sha1.js +++ /dev/null @@ -1,58 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 4 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 5 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: javascript_weak_encryption - data_types: - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("sha1", key).update(user.password) - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("sha1").update(user.password) - field_name: password - object_name: user - subject_name: User - - detector_id: create_hash - locations: - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 4 - parent: - line_number: 4 - content: crypto.createHmac("sha1", key) - content: | - crypto.$($$<...>) - - filename: pkg/commands/process/settings/rules/javascript/lang/weak_encryption/testdata/sha1.js - line_number: 5 - parent: - line_number: 5 - content: crypto.createHash("sha1") - content: | - crypto.$($$<...>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_insecure.js b/pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_insecure.js deleted file mode 100644 index c7319da51..000000000 --- a/pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_insecure.js +++ /dev/null @@ -1,52 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/react/google_analytics/testdata/insecure.js - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/react/google_analytics/testdata/insecure.js - line_number: 5 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_react_google_analytics - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/react/google_analytics/testdata/insecure.js - line_number: 1 - parent: - line_number: 2 - content: |- - ReactGA.event({ - category: "user", - action: "logged_in", - value: user.email, - }) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/react/google_analytics/testdata/insecure.js - line_number: 5 - parent: - line_number: 2 - content: |- - ReactGA.event({ - category: "user", - action: "logged_in", - value: user.email, - }) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_secure.js b/pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_secure.js deleted file mode 100644 index a40ca05d0..000000000 --- a/pkg/commands/process/settings/rules/javascript/react/google_analytics/.snapshots/TestJavascriptReactGoogleAnalyticsDataflow-dataflow_javascript_react_google_analytics_secure.js +++ /dev/null @@ -1,15 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/react/google_analytics/testdata/secure.js - line_number: 1 - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_index.js b/pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_index.js deleted file mode 100644 index d6a607f2d..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_index.js +++ /dev/null @@ -1,54 +0,0 @@ -data_types: - - name: Bank Account - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_index.js - line_number: 4 - field_name: bank_account_number - object_name: company -risks: - - detector_id: javascript_third_parties_algolia - data_types: - - name: Bank Account - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_index.js - line_number: 4 - parent: - line_number: 4 - content: myAlgolia.initIndex(company.bank_account_number) - field_name: bank_account_number - object_name: company - - detector_id: javascript_third_parties_algolia_client - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_index.js - line_number: 2 - parent: - line_number: 2 - content: algoliasearch("123", "123") - content: | - $($<_>, $<_>) - - detector_id: javascript_third_parties_algolia_index - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_index.js - line_number: 4 - parent: - line_number: 4 - content: myAlgolia.initIndex(company.bank_account_number) - content: | - $.initIndex() - - detector_id: javascript_third_parties_algolia_module - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_index.js - line_number: 1 - parent: - line_number: 1 - content: require('algoliasearch') - content: | - require('algoliasearch') -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_save_object.js b/pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_save_object.js deleted file mode 100644 index 9dc4274a6..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/algolia/.snapshots/TestJavascriptAlgoliaDataflow-dataflow_javascript_third_parties_algolia_datatype_in_save_object.js +++ /dev/null @@ -1,109 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 12 - field_name: email - object_name: user - subject_name: User - - name: IP address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 7 - field_name: ip_address - object_name: user - subject_name: User - - name: Unique Identifier - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 7 - field_name: user_id - object_name: userObj - subject_name: User -risks: - - detector_id: javascript_third_parties_algolia - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 12 - parent: - line_number: 12 - content: 'index.saveObjects([{ email: user.email }])' - field_name: email - object_name: user - subject_name: User - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 7 - parent: - line_number: 8 - content: |- - index - .saveObject(userObj, { autoGenerateObjectIDIfNotExist: true }) - field_name: ip_address - object_name: user - subject_name: User - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 7 - parent: - line_number: 8 - content: |- - index - .saveObject(userObj, { autoGenerateObjectIDIfNotExist: true }) - field_name: user_id - object_name: userObj - subject_name: User - - detector_id: javascript_third_parties_algolia_client - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 2 - parent: - line_number: 2 - content: algoliasearch("123", "123") - content: | - $($<_>, $<_>) - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 8 - parent: - line_number: 8 - content: |- - index - .saveObject(userObj, { autoGenerateObjectIDIfNotExist: true }) - content: | - $($<_>, $<_>) - - detector_id: javascript_third_parties_algolia_index - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 4 - parent: - line_number: 4 - content: myAlgolia.initIndex("test_index") - content: | - $.initIndex() - - detector_id: javascript_third_parties_algolia_module - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/algolia/testdata/datatype_in_save_object.js - line_number: 1 - parent: - line_number: 1 - content: require("algoliasearch") - content: | - require("algoliasearch") -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_secure.js b/pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_secure.js deleted file mode 100644 index 4c3cd6f16..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_secure.js +++ /dev/null @@ -1,20 +0,0 @@ -risks: - - detector_id: javascript_third_parties_hotshot_statsd - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog/testdata/secure.js - line_number: 2 - parent: - line_number: 2 - content: |- - new StatsD({ - port: 8020, - globalTags: { env: process.env.NODE_ENV }, - errorHandler: errorHandler, - }) - content: | - new StatsD($<...>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_unsecure.js b/pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_unsecure.js deleted file mode 100644 index e563eacd5..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/datadog/.snapshots/TestJavascriptDataDogDataflow-dataflow_javascript_third_parties_datadog_unsecure.js +++ /dev/null @@ -1,63 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog/testdata/unsecure.js - line_number: 3 - field_name: email - object_name: user - subject_name: User - - name: Fullname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog/testdata/unsecure.js - line_number: 3 - field_name: name - object_name: user - subject_name: User -risks: - - detector_id: javascript_third_parties_datadog - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog/testdata/unsecure.js - line_number: 3 - parent: - line_number: 11 - content: client.event("user", "logged_in", {}, user) - field_name: email - object_name: user - subject_name: User - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog/testdata/unsecure.js - line_number: 3 - parent: - line_number: 11 - content: client.event("user", "logged_in", {}, user) - field_name: name - object_name: user - subject_name: User - - detector_id: javascript_third_parties_hotshot_statsd - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog/testdata/unsecure.js - line_number: 5 - parent: - line_number: 5 - content: |- - new StatsD({ - port: 8020, - globalTags: { env: process.env.NODE_ENV }, - errorHandler: errorHandler, - }) - content: | - new StatsD($<...>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_secure.js b/pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_secure.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_secure.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_unsecure.js b/pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_unsecure.js deleted file mode 100644 index 432e428b9..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/.snapshots/TestJavascriptDataDogBrowserDataflow-dataflow_javascript_third_parties_datadog_browser_unsecure.js +++ /dev/null @@ -1,17 +0,0 @@ -risks: - - detector_id: javascript_third_parties_datadog_browser - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/datadog_browser/testdata/unsecure.js - line_number: 2 - parent: - line_number: 2 - content: 'trackUserInteractions: true' - content: | - DD_RUM.init({ - $trackUserInteractions: true, - }) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/.snapshots/TestJavascriptElasticSearchDataflow-dataflow_javascript_third_parties_elasticsearch_unsecure.js b/pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/.snapshots/TestJavascriptElasticSearchDataflow-dataflow_javascript_third_parties_elasticsearch_unsecure.js deleted file mode 100644 index faed62950..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/.snapshots/TestJavascriptElasticSearchDataflow-dataflow_javascript_third_parties_elasticsearch_unsecure.js +++ /dev/null @@ -1,49 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/testdata/unsecure.js - line_number: 1 - field_name: email - object_name: user - subject_name: User - - name: Fullname - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/testdata/unsecure.js - line_number: 1 - field_name: name - object_name: user - subject_name: User -risks: - - detector_id: javascript_elasticsearch - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/testdata/unsecure.js - line_number: 1 - parent: - line_number: 2 - content: elasticsearch.index(user) - field_name: email - object_name: user - subject_name: User - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/elasticsearch/testdata/unsecure.js - line_number: 1 - parent: - line_number: 2 - content: elasticsearch.index(user) - field_name: name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_secure.js b/pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_secure.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_secure.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_unsecure.js b/pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_unsecure.js deleted file mode 100644 index 723e23633..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/.snapshots/TestJavascriptGoogleAnalyticsDataflow-dataflow_javascript_third_parties_google_analytics_unsecure.js +++ /dev/null @@ -1,24 +0,0 @@ -risks: - - detector_id: javascript_google_analytics - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/google_analytics/testdata/unsecure.js - line_number: 3 - parent: - line_number: 1 - content: |- - gtag("event", "screen_view", { - user: { - email: "jhon@gmail.com", - }, - }) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_secure.js b/pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_secure.js deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_secure.js +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_unsecure.js b/pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_unsecure.js deleted file mode 100644 index c4438a5be..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/.snapshots/TestJavascriptGTMDataflow-dataflow_javascript_third_parties_google_tag_manager_unsecure.js +++ /dev/null @@ -1,47 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/testdata/unsecure.js - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/testdata/unsecure.js - line_number: 4 - field_name: email - object_name: push -risks: - - detector_id: javascript_google_tag_manager - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/testdata/unsecure.js - line_number: 1 - parent: - line_number: 3 - content: |- - window.dataLayer.push({ - email: user.email, - }) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/javascript/third_parties/google_tag_manager/testdata/unsecure.js - line_number: 4 - parent: - line_number: 3 - content: |- - window.dataLayer.push({ - email: user.email, - }) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_add_breadcrumb.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_add_breadcrumb.js deleted file mode 100644 index 6310c3409..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_add_breadcrumb.js +++ /dev/null @@ -1,33 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_add_breadcrumb.js - line_number: 2 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_add_breadcrumb.js - line_number: 2 - parent: - line_number: 1 - content: |- - Sentry.addBreadcrumb({ - message: `my message for ${user.email}`, - // ... - }) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_event.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_event.js deleted file mode 100644 index 95d059dce..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_event.js +++ /dev/null @@ -1,35 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_capture_event.js - line_number: 2 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_capture_event.js - line_number: 2 - parent: - line_number: 1 - content: |- - Sentry.captureEvent({ - message: "user successfully logged in " + current_user.email, - stacktrace: [ - // ... - ], - }) - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_exception.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_exception.js deleted file mode 100644 index 322b05516..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_exception.js +++ /dev/null @@ -1,32 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_capture_exception.js - line_number: 2 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_capture_exception.js - line_number: 2 - parent: - line_number: 1 - content: |- - Sentry.captureException( - new Error(`user ${current_user.email} couldn't log in!`) - ) - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_message.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_message.js deleted file mode 100644 index b1835dbcb..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_capture_message.js +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_capture_message.js - line_number: 1 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_capture_message.js - line_number: 1 - parent: - line_number: 1 - content: Sentry.captureMessage("User has successfully signed in " + current_user.email) - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_extra.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_extra.js deleted file mode 100644 index e64699917..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_extra.js +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_extra.js - line_number: 2 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_extra.js - line_number: 2 - parent: - line_number: 2 - content: scope.setExtra("email", user.email) - field_name: email - object_name: user - subject_name: User - - detector_id: javascript_third_parties_sentry_scope - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_extra.js - line_number: 1 - parent: - line_number: 1 - content: scope - content: | - Sentry.configureScope(($$<_>) => {}) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_tag.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_tag.js deleted file mode 100644 index cdb2110ab..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_tag.js +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_tag.js - line_number: 2 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_tag.js - line_number: 2 - parent: - line_number: 2 - content: scope.setTag("user_email", user.email) - field_name: email - object_name: user - subject_name: User - - detector_id: javascript_third_parties_sentry_scope - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_tag.js - line_number: 1 - parent: - line_number: 1 - content: scope - content: | - Sentry.configureScope(($$<_>) => {}) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_user.js b/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_user.js deleted file mode 100644 index b6e1d641a..000000000 --- a/pkg/commands/process/settings/rules/javascript/third_parties/sentry/.snapshots/TestJavascriptThirdPartySentryDataflow-dataflow_javascript_third_parties_sentry_javascript_configure_scope_set_user.js +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: javascript - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_user.js - line_number: 2 - field_name: email - object_name: setUser - subject_name: User -risks: - - detector_id: javascript_third_parties_sentry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_user.js - line_number: 2 - parent: - line_number: 2 - content: 'scope.setUser({ email: user.email })' - field_name: email - object_name: user - subject_name: User - - detector_id: javascript_third_parties_sentry_scope - locations: - - filename: pkg/commands/process/settings/rules/javascript/third_parties/sentry/testdata/javascript_configure_scope_set_user.js - line_number: 1 - parent: - line_number: 1 - content: scope - content: | - Sentry.configureScope(($$<_>) => {}) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_in_signed_cookies.rb b/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_in_signed_cookies.rb deleted file mode 100644 index dec3db0fe..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_in_signed_cookies.rb +++ /dev/null @@ -1,49 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_in_signed_cookies.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_in_signed_cookies.rb - line_number: 2 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_cookies - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_in_signed_cookies.rb - line_number: 1 - parent: - line_number: 1 - content: cookies.signed[:info] = user.email - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_in_signed_cookies.rb - line_number: 2 - parent: - line_number: 2 - content: cookies.permanent.signed[:secret] = user.first_name - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_object_in_cookie.rb b/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_object_in_cookie.rb deleted file mode 100644 index 698b8c35c..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_datatype_object_in_cookie.rb +++ /dev/null @@ -1,49 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_object_in_cookie.rb - line_number: 2 - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_object_in_cookie.rb - line_number: 3 - field_name: last_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_cookies - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_object_in_cookie.rb - line_number: 2 - parent: - line_number: 5 - content: 'cookies[:login] = { value: user.to_json, expires: 1.hour, secure: true }' - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/datatype_object_in_cookie.rb - line_number: 3 - parent: - line_number: 5 - content: 'cookies[:login] = { value: user.to_json, expires: 1.hour, secure: true }' - field_name: last_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_encrypted_cookies.rb b/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_encrypted_cookies.rb deleted file mode 100644 index 21aad01c9..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_encrypted_cookies.rb +++ /dev/null @@ -1,24 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/ok_encrypted_cookies.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User - - name: Physical Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/ok_encrypted_cookies.rb - line_number: 1 - field_name: address - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_no_datatypes.rb deleted file mode 100644 index c9eb5902b..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/cookies/.snapshots/TestRubyLangCookiesDataflow-dataflow_ruby_lang_cookies_ok_no_datatypes.rb +++ /dev/null @@ -1,14 +0,0 @@ -data_types: - - name: Username - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/cookies/testdata/ok_no_datatypes.rb - line_number: 2 - field_name: user_name - object_name: cookies -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_datatype_leak.rb b/pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_datatype_leak.rb deleted file mode 100644 index 21dfcad1c..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_datatype_leak.rb +++ /dev/null @@ -1,42 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/exception/testdata/datatype_leak.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/exception/testdata/datatype_leak.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_exception - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/exception/testdata/datatype_leak.rb - line_number: 1 - parent: - line_number: 1 - content: raise CustomException.new(user.email) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/exception/testdata/datatype_leak.rb - line_number: 2 - parent: - line_number: 2 - content: 'raise "User doesn''t exist #{user.email}"' - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_ok_no_datatypes.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/exception/.snapshots/TestRubyLangExceptionDataflow-dataflow_ruby_lang_exception_ok_no_datatypes.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_generate.rb b/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_generate.rb deleted file mode 100644 index fe293c324..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_generate.rb +++ /dev/null @@ -1,93 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 6 - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 7 - field_name: last_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_file_generation - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 5 - parent: - line_number: 4 - content: |- - csv << [ - user.email, - user.first_name, - user.last_name - ] - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 6 - parent: - line_number: 4 - content: |- - csv << [ - user.email, - user.first_name, - user.last_name - ] - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 7 - parent: - line_number: 4 - content: |- - csv << [ - user.email, - user.first_name, - user.last_name - ] - field_name: last_name - object_name: user - subject_name: User - - detector_id: ruby_lang_file_generation_file - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_generate.rb - line_number: 1 - parent: - line_number: 1 - content: csv - content: | - CSV.generate { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_open.rb b/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_open.rb deleted file mode 100644 index a64d6ff48..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_csv_open.rb +++ /dev/null @@ -1,93 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 6 - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 7 - field_name: last_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_file_generation - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 5 - parent: - line_number: 4 - content: |- - csv << [ - user.email, - user.first_name, - user.last_name - ] - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 6 - parent: - line_number: 4 - content: |- - csv << [ - user.email, - user.first_name, - user.last_name - ] - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 7 - parent: - line_number: 4 - content: |- - csv << [ - user.email, - user.first_name, - user.last_name - ] - field_name: last_name - object_name: user - subject_name: User - - detector_id: ruby_lang_file_generation_file - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_csv_open.rb - line_number: 1 - parent: - line_number: 1 - content: csv - content: | - CSV.open() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_file_open.rb b/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_file_open.rb deleted file mode 100644 index 6cc48bfe8..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_file_open.rb +++ /dev/null @@ -1,107 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User - - name: Emails - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 3 - field_name: emails - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 5 - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 5 - field_name: last_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_file_generation - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 1 - parent: - line_number: 1 - content: 'f.write "#{Time.now} - User #{user.email} logged in\n"' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 5 - parent: - line_number: 5 - content: f.write "#{user.email},#{user.first_name},#{user.last_name}" - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 5 - parent: - line_number: 5 - content: f.write "#{user.email},#{user.first_name},#{user.last_name}" - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 5 - parent: - line_number: 5 - content: f.write "#{user.email},#{user.first_name},#{user.last_name}" - field_name: last_name - object_name: user - subject_name: User - - detector_id: ruby_lang_file_generation_file - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 1 - parent: - line_number: 1 - content: f - content: | - File.open() { |$$<_:identifier>| } - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_file_open.rb - line_number: 3 - parent: - line_number: 3 - content: f - content: | - File.open() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_ftp_open.rb b/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_ftp_open.rb deleted file mode 100644 index e5ca504d3..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_ftp_open.rb +++ /dev/null @@ -1,47 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_ftp_open.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_ftp_open.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User - - name: Emails - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_ftp_open.rb - line_number: 3 - field_name: emails - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_ftp_open.rb - line_number: 5 - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_ftp_open.rb - line_number: 5 - field_name: last_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_io_sysopen.rb b/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_io_sysopen.rb deleted file mode 100644 index bb98821c5..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/file_generation/.snapshots/TestRubyLangFileGenerationDataflow-dataflow_ruby_lang_file_generation_datatype_in_io_sysopen.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_io_sysopen.rb - line_number: 3 - field_name: full_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_file_generation - data_types: - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_io_sysopen.rb - line_number: 3 - parent: - line_number: 3 - content: 'a.puts "Hello, #{user.full_name}!"' - field_name: full_name - object_name: user - subject_name: User - - detector_id: ruby_lang_file_generation_file - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/file_generation/testdata/datatype_in_io_sysopen.rb - line_number: 2 - parent: - line_number: 2 - content: a - content: | - IO.open() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_param_hash.rb b/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_param_hash.rb deleted file mode 100644 index f144d444c..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_param_hash.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_get_params/testdata/datatype_in_param_hash.rb - line_number: 1 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_http_get_params - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_get_params/testdata/datatype_in_param_hash.rb - line_number: 1 - parent: - line_number: 1 - content: 'HTTP.get("https://my.api.com/users/search", params: { user: { first_name: user.first_name } })' - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_params.rb b/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_params.rb deleted file mode 100644 index ed4969a20..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_datatype_in_params.rb +++ /dev/null @@ -1,49 +0,0 @@ -data_types: - - name: Ethnic Origin - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_get_params/testdata/datatype_in_params.rb - line_number: 1 - field_name: ethnic_origin - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_get_params/testdata/datatype_in_params.rb - line_number: 3 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_http_get_params - data_types: - - name: Ethnic Origin - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_get_params/testdata/datatype_in_params.rb - line_number: 1 - parent: - line_number: 1 - content: URI("https://my.api.com/users/search?ethnic_origin=#{user.ethnic_origin}") - field_name: ethnic_origin - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_get_params/testdata/datatype_in_params.rb - line_number: 3 - parent: - line_number: 3 - content: RestClient.get("https://my.api.com/users/search?first_name=#{user.first_name}") - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_ok_no_datatypes_in_params.rb b/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_ok_no_datatypes_in_params.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_get_params/.snapshots/TestRubyLangHttpGetParamsDataflow-dataflow_ruby_lang_http_get_params_ok_no_datatypes_in_params.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_get.rb b/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_get.rb deleted file mode 100644 index 69be7d7b7..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_get.rb +++ /dev/null @@ -1,22 +0,0 @@ -risks: - - detector_id: ruby_lang_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_insecure/testdata/insecure_get.rb - line_number: 1 - parent: - line_number: 1 - content: Faraday.get("http://api.insecure.com") - content: | - $.get($) -components: - - name: http://api.insecure.com - type: "" - sub_type: "" - locations: - - detector: ruby - filename: pkg/commands/process/settings/rules/ruby/lang/http_insecure/testdata/insecure_get.rb - line_number: 1 - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post.rb b/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post.rb deleted file mode 100644 index 2117a85e2..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_lang_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_insecure/testdata/insecure_post.rb - line_number: 1 - parent: - line_number: 1 - content: Excon.post("http://my.api.com/users/search") - content: | - $.post($) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post_form.rb b/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post_form.rb deleted file mode 100644 index 0a3b6b73d..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_insecure_post_form.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_lang_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_insecure/testdata/insecure_post_form.rb - line_number: 1 - parent: - line_number: 1 - content: Net::HTTP.post_form("http://my.api.com/users/search") - content: | - Net::HTTP.post_form($) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_ok_secure_url.rb b/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_ok_secure_url.rb deleted file mode 100644 index 4a284560f..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_ok_secure_url.rb +++ /dev/null @@ -1,12 +0,0 @@ -components: - - name: https://api.secure.com - type: "" - sub_type: "" - locations: - - detector: ruby - filename: pkg/commands/process/settings/rules/ruby/lang/http_insecure/testdata/ok_secure_url.rb - line_number: 3 - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_uri_encode_form.rb b/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_uri_encode_form.rb deleted file mode 100644 index aa7432773..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_insecure/.snapshots/TestRubyLangHttpInsecureDataflow-dataflow_ruby_lang_http_insecure_uri_encode_form.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_lang_http_insecure - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_insecure/testdata/uri_encode_form.rb - line_number: 1 - parent: - line_number: 1 - content: URI('http://my.api.com/users/search') - content: | - URI($) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_form_with_datatype.rb b/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_form_with_datatype.rb deleted file mode 100644 index 5bb6b18e5..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_form_with_datatype.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/testdata/insecure_post_form_with_datatype.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_http_post_insecure_with_data - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/testdata/insecure_post_form_with_datatype.rb - line_number: 1 - parent: - line_number: 1 - content: 'Net::HTTP.post_form("http://my.api.com/users/search", email: user.email)' - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_with_datatype.rb b/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_with_datatype.rb deleted file mode 100644 index a1b4eadc6..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_insecure_post_with_datatype.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/testdata/insecure_post_with_datatype.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_http_post_insecure_with_data - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/testdata/insecure_post_with_datatype.rb - line_number: 1 - parent: - line_number: 1 - content: 'HTTParty.post("http://my.api.com/users/search", body: user.email)' - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_ok_secure_url.rb b/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_ok_secure_url.rb deleted file mode 100644 index 961eec205..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/.snapshots/TestRubyLangHttpPostInsecureWithDataDataflow-dataflow_ruby_lang_http_post_insecure_with_data_ok_secure_url.rb +++ /dev/null @@ -1,20 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/testdata/ok_secure_url.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/http_post_insecure_with_data/testdata/ok_secure_url.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_new.rb b/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_new.rb deleted file mode 100644 index c315237c7..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_new.rb +++ /dev/null @@ -1,43 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_new.rb - line_number: 5 - field_name: email - object_name: User - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_new.rb - line_number: 5 - field_name: name - object_name: User - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_new.rb - line_number: 5 - field_name: password - object_name: User - subject_name: User -risks: - - detector_id: ruby_lang_insecure_ftp - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_new.rb - line_number: 8 - parent: - line_number: 8 - content: Net::FTP.new("ftp.ruby-lang.org") - content: | - Net::FTP.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open.rb b/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open.rb deleted file mode 100644 index 1da2ddfa8..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open.rb +++ /dev/null @@ -1,21 +0,0 @@ -risks: - - detector_id: ruby_lang_insecure_ftp - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_open.rb - line_number: 3 - parent: - line_number: 3 - content: |- - Net::FTP.open("example.com") do |ftp| - ftp.login - files = ftp.chdir('pub/lang/ruby/contrib') - files = ftp.list('n*') - ftp.getbinaryfile('nif.rb-0.91.gz', 'nif.gz', 1024) - end - content: | - Net::FTP.open()$<...> -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open_with_datatype.rb b/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open_with_datatype.rb deleted file mode 100644 index 85882c702..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ftp_open_with_datatype.rb +++ /dev/null @@ -1,60 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_open_with_datatype.rb - line_number: 6 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_insecure_ftp - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_open_with_datatype.rb - line_number: 6 - parent: - line_number: 3 - content: |- - Net::FTP.open("ftp.site.com") do |ftp| - file = Tempfile.new("user_data") - begin - file << user.email - file.close - - ftp.puttextfile(file.path, "/users/123.json") - ensure - file.close! - end - end - field_name: email - object_name: user - subject_name: User - - detector_id: ruby_lang_insecure_ftp - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/testdata/ftp_open_with_datatype.rb - line_number: 3 - parent: - line_number: 3 - content: |- - Net::FTP.open("ftp.site.com") do |ftp| - file = Tempfile.new("user_data") - begin - file << user.email - file.close - - ftp.puttextfile(file.path, "/users/123.json") - ensure - file.close! - end - end - content: | - Net::FTP.open()$<...> -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ok_secure_ftp.rb b/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ok_secure_ftp.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/insecure_ftp/.snapshots/TestRubyLangInsecureFtpDataflow-dataflow_ruby_lang_insecure_ftp_ok_secure_ftp.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_in_jwt.rb b/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_in_jwt.rb deleted file mode 100644 index b0dfadc77..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_in_jwt.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Physical Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatype_in_jwt.rb - line_number: 1 - field_name: address - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_jwt - data_types: - - name: Physical Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatype_in_jwt.rb - line_number: 1 - parent: - line_number: 1 - content: JWT.encode user.address, nil, "none" - field_name: address - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_object_in_jwt.rb b/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_object_in_jwt.rb deleted file mode 100644 index 25f2f1749..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatype_object_in_jwt.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatype_object_in_jwt.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_jwt - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatype_object_in_jwt.rb - line_number: 3 - parent: - line_number: 6 - content: JWT.encode(payload, ENV.fetch("SECRET_KEY")) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatypes_with_encrypted_jwt.rb b/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatypes_with_encrypted_jwt.rb deleted file mode 100644 index f8e7ef9dc..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_datatypes_with_encrypted_jwt.rb +++ /dev/null @@ -1,62 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatypes_with_encrypted_jwt.rb - line_number: 2 - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatypes_with_encrypted_jwt.rb - line_number: 4 - field_name: email - object_name: current_user - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatypes_with_encrypted_jwt.rb - line_number: 6 - field_name: name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_jwt - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatypes_with_encrypted_jwt.rb - line_number: 2 - parent: - line_number: 2 - content: 'JWT.encode({ user: current_user.email }, private_key, ''HS256'', {})' - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatypes_with_encrypted_jwt.rb - line_number: 4 - parent: - line_number: 4 - content: 'JWT.encode({ user: current_user.email }, ENV["SECRET_KEY"])' - field_name: email - object_name: current_user - subject_name: User - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/jwt/testdata/datatypes_with_encrypted_jwt.rb - line_number: 6 - parent: - line_number: 6 - content: 'JWT.encode({ user_name: user.name }, Rails.application.secret_key_base)' - field_name: name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_ok_no_datatypes.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/jwt/.snapshots/TestRubyLangJwtDataflow-dataflow_ruby_lang_jwt_ok_no_datatypes.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_datatype_leak.rb b/pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_datatype_leak.rb deleted file mode 100644 index f2fe2084f..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_datatype_leak.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/logger/testdata/datatype_leak.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_logger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/logger/testdata/datatype_leak.rb - line_number: 1 - parent: - line_number: 1 - content: logger.info(user.email) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_ok_no_datatypes.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/logger/.snapshots/TestRubyLangLoggerDataflow-dataflow_ruby_lang_logger_ok_no_datatypes.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_ok_verification_enabled.rb b/pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_ok_verification_enabled.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_ok_verification_enabled.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_verification_disabled.rb b/pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_verification_disabled.rb deleted file mode 100644 index 4ab09f17a..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/ssl_verification/.snapshots/TestRubyLangSslVerificationDataflow-dataflow_ruby_lang_ssl_verification_verification_disabled.rb +++ /dev/null @@ -1,25 +0,0 @@ -risks: - - detector_id: ruby_lang_ssl_verification - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/ssl_verification/testdata/verification_disabled.rb - line_number: 1 - parent: - line_number: 1 - content: http.verify_mode = OpenSSL::SSL::VERIFY_NONE - content: | - $<_>.verify_mode = OpenSSL::SSL::VERIFY_NONE - - filename: pkg/commands/process/settings/rules/ruby/lang/ssl_verification/testdata/verification_disabled.rb - line_number: 4 - parent: - line_number: 4 - content: |- - Net::HTTP.start(uri.host, uri.port, :use_ssl => true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http| - Net::HTTP::Get.new uri - end - content: | - Net::HTTP.start(verify_mode: OpenSSL::SSL::VERIFY_NONE)$<...> -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_blowfish.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_blowfish.rb deleted file mode 100644 index ae3c6b71d..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_blowfish.rb +++ /dev/null @@ -1,29 +0,0 @@ -risks: - - detector_id: blowfish_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/blowfish.rb - line_number: 1 - parent: - line_number: 1 - content: Crypt::Blowfish.new("insecure") - content: | - Crypt::Blowfish.new() - - detector_id: ruby_lang_weak_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/blowfish.rb - line_number: 2 - parent: - line_number: 2 - content: |- - blowfish.encrypt_block do - "hello world" - end - content: | - $.$ do - $<_> - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_md5.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_md5.rb deleted file mode 100644 index 68a6f6c64..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_md5.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_lang_weak_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/digest_md5.rb - line_number: 1 - parent: - line_number: 1 - content: Digest::MD5.hexdigest("hello world") - content: | - Digest::MD5.hexdigest() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_sha1.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_sha1.rb deleted file mode 100644 index 6cbf47531..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_digest_sha1.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_lang_weak_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/digest_sha1.rb - line_number: 1 - parent: - line_number: 1 - content: Digest::SHA1.hexidigest("hello world") - content: | - Digest::SHA1.hexidigest() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_dsa.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_dsa.rb deleted file mode 100644 index ffa8389f5..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_dsa.rb +++ /dev/null @@ -1,38 +0,0 @@ -risks: - - detector_id: openssl_dsa_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_dsa.rb - line_number: 2 - parent: - line_number: 2 - content: OpenSSL::PKey::DSA.new(2048) - content: | - OpenSSL::PKey::DSA.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_dsa.rb - line_number: 5 - parent: - line_number: 5 - content: OpenSSL::PKey::DSA.new(2048) - content: | - OpenSSL::PKey::DSA.new() - - detector_id: ruby_lang_weak_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_dsa.rb - line_number: 3 - parent: - line_number: 3 - content: dsa_encrypt.export(cipher, "hello world") - content: | - $.$($<_>) - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_dsa.rb - line_number: 5 - parent: - line_number: 5 - content: OpenSSL::PKey::DSA.new(2048).to_pem(cipher, "hello world") - content: | - $.$($<_>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_rsa.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_rsa.rb deleted file mode 100644 index 7f34d17a8..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_openssl_rsa.rb +++ /dev/null @@ -1,52 +0,0 @@ -risks: - - detector_id: openssl_rsa_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_rsa.rb - line_number: 1 - parent: - line_number: 1 - content: OpenSSL::PKey::RSA.new(File.read('rsa.pem')) - content: | - OpenSSL::PKey::RSA.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_rsa.rb - line_number: 4 - parent: - line_number: 4 - content: OpenSSL::PKey::RSA.new(2048) - content: | - OpenSSL::PKey::RSA.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_rsa.rb - line_number: 7 - parent: - line_number: 7 - content: OpenSSL::PKey::RSA.new(2048) - content: | - OpenSSL::PKey::RSA.new() - - detector_id: ruby_lang_weak_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_rsa.rb - line_number: 1 - parent: - line_number: 1 - content: OpenSSL::PKey::RSA.new(File.read('rsa.pem')).private_encrypt("test") - content: | - $.$($<_>) - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_rsa.rb - line_number: 5 - parent: - line_number: 5 - content: rsa_encrypt.export(cipher, "hello world") - content: | - $.$($<_>) - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/openssl_rsa.rb - line_number: 7 - parent: - line_number: 7 - content: OpenSSL::PKey::RSA.new(2048).to_pem(cipher, "hello world") - content: | - $.$($<_>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_rc4_encrypt.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_rc4_encrypt.rb deleted file mode 100644 index 3d2036fec..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption/.snapshots/TestRubyLangWeakEncryptionDataflow-dataflow_ruby_lang_weak_encryption_rc4_encrypt.rb +++ /dev/null @@ -1,38 +0,0 @@ -risks: - - detector_id: rc4_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/rc4_encrypt.rb - line_number: 1 - parent: - line_number: 1 - content: RC4.new("insecure") - content: | - RC4.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/rc4_encrypt.rb - line_number: 3 - parent: - line_number: 3 - content: RC4.new("insecure") - content: | - RC4.new() - - detector_id: ruby_lang_weak_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/rc4_encrypt.rb - line_number: 1 - parent: - line_number: 1 - content: RC4.new("insecure").encrypt("hello world") - content: | - $.$($<_>) - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption/testdata/rc4_encrypt.rb - line_number: 4 - parent: - line_number: 4 - content: rc4_encrypt.encrypt!("hello world") - content: | - $.$($<_>) -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_blowfish_data.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_blowfish_data.rb deleted file mode 100644 index 6f097b615..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_blowfish_data.rb +++ /dev/null @@ -1,91 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 9 - field_name: email - object_name: user - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 2 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 6 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_weak_encryption_with_data - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 9 - parent: - line_number: 9 - content: Crypt::Blowfish.new("your-key").encrypt_string(user.email) - field_name: email - object_name: user - subject_name: User - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 2 - parent: - line_number: 1 - content: |- - Crypt::Blowfish.new("insecure").encrypt_block { |user| - user.password - } - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 6 - parent: - line_number: 5 - content: |- - Crypt::Blowfish.new("insecure").encrypt_block do |user| - user.password - end - field_name: password - object_name: user - subject_name: User - - detector_id: blowfish_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 1 - parent: - line_number: 1 - content: Crypt::Blowfish.new("insecure") - content: | - Crypt::Blowfish.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 5 - parent: - line_number: 5 - content: Crypt::Blowfish.new("insecure") - content: | - Crypt::Blowfish.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/blowfish_data.rb - line_number: 9 - parent: - line_number: 9 - content: Crypt::Blowfish.new("your-key") - content: | - Crypt::Blowfish.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_md5.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_md5.rb deleted file mode 100644 index 2c60a88a2..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_md5.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Physical Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/digest_md5.rb - line_number: 1 - field_name: address - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_weak_encryption_with_data - data_types: - - name: Physical Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/digest_md5.rb - line_number: 1 - parent: - line_number: 1 - content: Digest::MD5.hexdigest(user.address) - field_name: address - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_sha1.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_sha1.rb deleted file mode 100644 index b6f60a9b8..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_digest_sha1.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/digest_sha1.rb - line_number: 1 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_weak_encryption_with_data - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/digest_sha1.rb - line_number: 1 - parent: - line_number: 1 - content: Digest::SHA1.hexidigest(user.first_name) - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_dsa_data.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_dsa_data.rb deleted file mode 100644 index 728200ed8..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_dsa_data.rb +++ /dev/null @@ -1,67 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_dsa_data.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_dsa_data.rb - line_number: 5 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_weak_encryption_with_data - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_dsa_data.rb - line_number: 3 - parent: - line_number: 3 - content: dsa_encrypt.export(cipher, user.email) - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_dsa_data.rb - line_number: 5 - parent: - line_number: 5 - content: OpenSSL::PKey::RSA.new(2048).to_pem(cipher, user.first_name) - field_name: first_name - object_name: user - subject_name: User - - detector_id: openssl_dsa_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_dsa_data.rb - line_number: 2 - parent: - line_number: 2 - content: OpenSSL::PKey::DSA.new(2048) - content: | - OpenSSL::PKey::DSA.new() - - detector_id: openssl_rsa_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_dsa_data.rb - line_number: 5 - parent: - line_number: 5 - content: OpenSSL::PKey::RSA.new(2048) - content: | - OpenSSL::PKey::RSA.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_rsa_data.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_rsa_data.rb deleted file mode 100644 index 64af124ca..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_openssl_rsa_data.rb +++ /dev/null @@ -1,85 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 7 - field_name: first_name - object_name: user - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 1 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 5 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_weak_encryption_with_data - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 7 - parent: - line_number: 7 - content: OpenSSL::PKey::RSA.new(2048).to_pem(cipher, user.first_name) - field_name: first_name - object_name: user - subject_name: User - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 1 - parent: - line_number: 1 - content: OpenSSL::PKey::RSA.new(File.read('rsa.pem')).private_encrypt(user.password) - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 5 - parent: - line_number: 5 - content: rsa_encrypt.export(cipher, user.password) - field_name: password - object_name: user - subject_name: User - - detector_id: openssl_rsa_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 1 - parent: - line_number: 1 - content: OpenSSL::PKey::RSA.new(File.read('rsa.pem')) - content: | - OpenSSL::PKey::RSA.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 4 - parent: - line_number: 4 - content: OpenSSL::PKey::RSA.new(2048) - content: | - OpenSSL::PKey::RSA.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/openssl_rsa_data.rb - line_number: 7 - parent: - line_number: 7 - content: OpenSSL::PKey::RSA.new(2048) - content: | - OpenSSL::PKey::RSA.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_rc4_data.rb b/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_rc4_data.rb deleted file mode 100644 index 5971cafa1..000000000 --- a/pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/.snapshots/TestRubyLangWeakEncryptionWithDataDataflow-dataflow_ruby_lang_weak_encryption_with_data_rc4_data.rb +++ /dev/null @@ -1,58 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/rc4_data.rb - line_number: 1 - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/rc4_data.rb - line_number: 4 - field_name: password - object_name: user - subject_name: User -risks: - - detector_id: ruby_lang_weak_encryption_with_data - data_types: - - name: Passwords - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/rc4_data.rb - line_number: 1 - parent: - line_number: 1 - content: RC4.new("insecure").encrypt(user.password) - field_name: password - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/rc4_data.rb - line_number: 4 - parent: - line_number: 4 - content: rc4_encrypt.encrypt!(user.password) - field_name: password - object_name: user - subject_name: User - - detector_id: rc4_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/rc4_data.rb - line_number: 1 - parent: - line_number: 1 - content: RC4.new("insecure") - content: | - RC4.new() - - filename: pkg/commands/process/settings/rules/ruby/lang/weak_encryption_with_data/testdata/rc4_data.rb - line_number: 3 - parent: - line_number: 3 - content: RC4.new("insecure") - content: | - RC4.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/default_encryption/.snapshots/TestRubyRailsDefaultEncryptionDataflow-dataflow_ruby_rails_default_encryption_application_level_encryption_missing b/pkg/commands/process/settings/rules/ruby/rails/default_encryption/.snapshots/TestRubyRailsDefaultEncryptionDataflow-dataflow_ruby_rails_default_encryption_application_level_encryption_missing deleted file mode 100644 index c0d40aefa..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/default_encryption/.snapshots/TestRubyRailsDefaultEncryptionDataflow-dataflow_ruby_rails_default_encryption_application_level_encryption_missing +++ /dev/null @@ -1,161 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/schema_rb/app/models/user.rb - line_number: 2 - field_name: email - object_name: User - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/structure_sql/app/models/user.rb - line_number: 2 - field_name: email - object_name: User - subject_name: User - - name: schema_rb - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/schema_rb/db/schema.rb - line_number: 3 - encrypted: true - stored: true - parent: - line_number: 2 - content: |- - create_table "users", force: :cascade do |t| - t.string "email", null: false - t.string "name" - t.string "encrypted_password", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - field_name: email - object_name: users - subject_name: User - - name: sql_lang_create_table - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/structure_sql/db/structure.sql - line_number: 7 - encrypted: true - stored: true - parent: - line_number: 1 - content: |- - CREATE TABLE public.users ( - id bigint NOT NULL, - name character varying, - password character varying, - created_at timestamp(6) without time zone NOT NULL, - updated_at timestamp(6) without time zone NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL - ) - field_name: email - object_name: users - subject_name: User - - name: Fullname - detectors: - - name: schema_rb - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/schema_rb/db/schema.rb - line_number: 4 - stored: true - parent: - line_number: 2 - content: |- - create_table "users", force: :cascade do |t| - t.string "email", null: false - t.string "name" - t.string "encrypted_password", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - field_name: name - object_name: users - subject_name: User - - name: sql_lang_create_table - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/structure_sql/db/structure.sql - line_number: 3 - stored: true - parent: - line_number: 1 - content: |- - CREATE TABLE public.users ( - id bigint NOT NULL, - name character varying, - password character varying, - created_at timestamp(6) without time zone NOT NULL, - updated_at timestamp(6) without time zone NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL - ) - field_name: name - object_name: users - subject_name: User - - name: Passwords - detectors: - - name: schema_rb - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/schema_rb/db/schema.rb - line_number: 5 - encrypted: true - verified_by: - - detector: db_encrypted - stored: true - parent: - line_number: 2 - content: |- - create_table "users", force: :cascade do |t| - t.string "email", null: false - t.string "name" - t.string "encrypted_password", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - field_name: encrypted_password - object_name: users - subject_name: User - - name: sql_lang_create_table - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/structure_sql/db/structure.sql - line_number: 4 - stored: true - parent: - line_number: 1 - content: |- - CREATE TABLE public.users ( - id bigint NOT NULL, - name character varying, - password character varying, - created_at timestamp(6) without time zone NOT NULL, - updated_at timestamp(6) without time zone NOT NULL, - email character varying DEFAULT ''::character varying NOT NULL - ) - field_name: password - object_name: users - subject_name: User -risks: - - detector_id: ruby_rails_default_encryption - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/schema_rb/app/models/user.rb - line_number: 2 - parent: - line_number: 2 - content: :email - content: | - class $<_> - encrypts($<...>$$$<...>) - end - - filename: pkg/commands/process/settings/rules/ruby/rails/default_encryption/testdata/application_level_encryption_missing/structure_sql/app/models/user.rb - line_number: 2 - parent: - line_number: 2 - content: :email - content: | - class $<_> - encrypts($<...>$$$<...>) - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_no_datatypes.rb deleted file mode 100644 index 2fc93a45e..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_no_datatypes.rb +++ /dev/null @@ -1,17 +0,0 @@ -risks: - - detector_id: ruby_rails_insecure_communication - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/no_datatypes.rb - line_number: 2 - parent: - line_number: 2 - content: config.force_ssl = false - content: | - Rails.application.configure do - $config.force_ssl = false - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_disabled_commented_out.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_disabled_commented_out.rb deleted file mode 100644 index 802f4932c..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_disabled_commented_out.rb +++ /dev/null @@ -1,33 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ok_ssl_disabled_commented_out.rb - line_number: 3 - field_name: email - object_name: User - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ok_ssl_disabled_commented_out.rb - line_number: 3 - field_name: name - object_name: User - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ok_ssl_disabled_commented_out.rb - line_number: 3 - field_name: password - object_name: User - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_enabled.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_enabled.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ok_ssl_enabled.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ssl_disabled.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ssl_disabled.rb deleted file mode 100644 index e0c9cf4f6..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_communication/.snapshots/TestRubyRailsInsecureCommunicationDataflow-dataflow_ruby_rails_insecure_communication_ssl_disabled.rb +++ /dev/null @@ -1,45 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ssl_disabled.rb - line_number: 3 - field_name: email - object_name: User - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ssl_disabled.rb - line_number: 3 - field_name: name - object_name: User - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ssl_disabled.rb - line_number: 3 - field_name: password - object_name: User - subject_name: User -risks: - - detector_id: ruby_rails_insecure_communication - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_communication/testdata/ssl_disabled.rb - line_number: 7 - parent: - line_number: 7 - content: config.force_ssl = false - content: | - Rails.application.configure do - $config.force_ssl = false - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_ok_ssl_verify_peer_mode.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_ok_ssl_verify_peer_mode.rb deleted file mode 100644 index a0d75ed82..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_ok_ssl_verify_peer_mode.rb +++ /dev/null @@ -1,33 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/ok_ssl_verify_peer_mode.rb - line_number: 3 - field_name: email - object_name: User - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/ok_ssl_verify_peer_mode.rb - line_number: 3 - field_name: name - object_name: User - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/ok_ssl_verify_peer_mode.rb - line_number: 3 - field_name: password - object_name: User - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none.rb deleted file mode 100644 index d05be1e8a..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none.rb +++ /dev/null @@ -1,47 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/verify_none.rb - line_number: 3 - field_name: email - object_name: User - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/verify_none.rb - line_number: 3 - field_name: name - object_name: User - subject_name: User - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/verify_none.rb - line_number: 3 - field_name: password - object_name: User - subject_name: User -risks: - - detector_id: ruby_rails_insecure_smtp - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/verify_none.rb - line_number: 8 - parent: - line_number: 8 - content: 'openssl_verify_mode: "none"' - content: | - Rails.application.configure do - config.action_mailer.smtp_settings = { - $openssl_verify_mode: "none" - } - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none_ssl_var.rb b/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none_ssl_var.rb deleted file mode 100644 index be5056b71..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/.snapshots/TestRubyRailsInsecureSmtpDataflow-dataflow_ruby_rails_insecure_smtp_verify_none_ssl_var.rb +++ /dev/null @@ -1,19 +0,0 @@ -risks: - - detector_id: ruby_rails_insecure_smtp - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/insecure_smtp/testdata/verify_none_ssl_var.rb - line_number: 3 - parent: - line_number: 3 - content: :openssl_verify_mode => OpenSSL::SSL::VERIFY_NONE - content: | - Rails.application.configure do - config.action_mailer.smtp_settings = { - $openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE - } - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_datatype_leak.rb b/pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_datatype_leak.rb deleted file mode 100644 index 0bf409654..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_datatype_leak.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/logger/testdata/datatype_leak.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_rails_logger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/logger/testdata/datatype_leak.rb - line_number: 1 - parent: - line_number: 1 - content: Rails.logger.info(user.email) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_ok_no_datatypes.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/logger/.snapshots/TestRubyRailsLoggerDataflow-dataflow_ruby_rails_logger_ok_no_datatypes.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_ok_password_length.rb b/pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_ok_password_length.rb deleted file mode 100644 index ef95288e8..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_ok_password_length.rb +++ /dev/null @@ -1,15 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/password_length/testdata/ok_password_length.rb - line_number: 3 - field_name: password - object_name: Student - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_password_too_short.rb b/pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_password_too_short.rb deleted file mode 100644 index 646e6aa2a..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/password_length/.snapshots/TestRubyRailsPasswordLengthDataflow-dataflow_ruby_rails_password_length_password_too_short.rb +++ /dev/null @@ -1,27 +0,0 @@ -data_types: - - name: Passwords - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/password_length/testdata/password_too_short.rb - line_number: 3 - field_name: password - object_name: User - subject_name: User -risks: - - detector_id: ruby_rails_password_length - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/password_length/testdata/password_too_short.rb - line_number: 3 - parent: - line_number: 3 - content: 'validates :password, length: { minimum: 6 }' - content: | - class $<_> - $validates :password, length: { minimum: $ } - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_datatype_in_session.rb b/pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_datatype_in_session.rb deleted file mode 100644 index edba6cefa..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_datatype_in_session.rb +++ /dev/null @@ -1,48 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/session/testdata/datatype_in_session.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/session/testdata/datatype_in_session.rb - line_number: 2 - field_name: user_id - object_name: session -risks: - - detector_id: ruby_rails_session - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/session/testdata/datatype_in_session.rb - line_number: 1 - parent: - line_number: 1 - content: session[:current_user] = user.email - field_name: email - object_name: user - subject_name: User - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/session/testdata/datatype_in_session.rb - line_number: 2 - parent: - line_number: 2 - content: session[:user_id] = current_user.user_id - field_name: user_id - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_ok_no_datatypes.rb deleted file mode 100644 index 7033dedeb..000000000 --- a/pkg/commands/process/settings/rules/ruby/rails/session/.snapshots/TestRubyRailsSessionDataflow-dataflow_ruby_rails_session_ok_no_datatypes.rb +++ /dev/null @@ -1,14 +0,0 @@ -data_types: - - name: Username - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/rails/session/testdata/ok_no_datatypes.rb - line_number: 1 - field_name: user_name - object_name: session -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_build_notice.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_build_notice.rb deleted file mode 100644 index 8dedec59a..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_build_notice.rb +++ /dev/null @@ -1,15 +0,0 @@ -data_types: - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_build_notice.rb - line_number: 2 - field_name: name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_custom_notice.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_custom_notice.rb deleted file mode 100644 index a180a7eb2..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_custom_notice.rb +++ /dev/null @@ -1,32 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_custom_notice.rb - line_number: 5 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_airbrake - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_custom_notice.rb - line_number: 5 - parent: - line_number: 4 - content: |- - def to_airbrake - { params: { user: current_user.email } } - end - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_extended_notify_methods.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_extended_notify_methods.rb deleted file mode 100644 index 86e61aee9..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_extended_notify_methods.rb +++ /dev/null @@ -1,289 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 17 - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 23 - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 43 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 49 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 73 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 79 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 101 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 107 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 3 - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 9 - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 31 - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 36 - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 57 - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 64 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_airbrake - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 17 - parent: - line_number: 15 - content: |- - Airbrake.notify_request_sync( - { - current_user: current_user.email - }, - request_id: 123 - ) - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 23 - parent: - line_number: 21 - content: |- - Airbrake.notify_request( - { - current_user: current_user.email - }, - request_id: 123 - ) - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 43 - parent: - line_number: 41 - content: |- - Airbrake.notify_query_sync( - { - user: user.email - }, - request_id: 123 - ) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 49 - parent: - line_number: 47 - content: |- - Airbrake.notify_query( - { - user: user.email - }, - request_id: 123 - ) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 73 - parent: - line_number: 71 - content: |- - Airbrake.notify_performance_breakdown_sync( - { - user: user.email - }, - request_id: 123 - ) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 79 - parent: - line_number: 77 - content: |- - Airbrake.notify_performance_breakdown( - { - user: user.email - }, - request_id: 123 - ) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 101 - parent: - line_number: 99 - content: |- - Airbrake.notify_queue_sync( - { - user: user.email - }, - job_id: 123 - ) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 107 - parent: - line_number: 105 - content: |- - Airbrake.notify_queue( - { - user: user.email - }, - job_id: 123 - ) - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 3 - parent: - line_number: 1 - content: |- - Airbrake.notify_request_sync( - method: 'GET', - route: "/users/#{user.first_name}", - status_code: 200, - timing: 123.45 # ms - ) - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 9 - parent: - line_number: 7 - content: |- - Airbrake.notify_request( - method: 'GET', - route: "/users/#{user.first_name}", - status_code: 200, - timing: 123.45 # ms - ) - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 31 - parent: - line_number: 29 - content: |- - Airbrake.notify_query_sync( - method: 'GET', - route: "/users/#{user.first_name}", - query: 'SELECT * FROM foos' - ) - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 36 - parent: - line_number: 34 - content: |- - Airbrake.notify_query( - method: 'GET', - route: "/users/#{user.first_name}", - query: 'SELECT * FROM foos' - ) - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 57 - parent: - line_number: 55 - content: |- - Airbrake.notify_performance_breakdown_sync( - method: 'GET', - route: "/users/#{user.first_name}", - response_type: 'json', - groups: { db: 24.0, view: 0.4 }, # ms - timing: 123.45 # ms - ) - field_name: first_name - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_extended_notify_methods.rb - line_number: 64 - parent: - line_number: 62 - content: |- - Airbrake.notify_performance_breakdown( - method: 'GET', - route: "/users/#{user.first_name}", - response_type: 'json', - groups: { db: 24.0, view: 0.4 }, # ms - timing: 123.45 # ms - ) - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_merge_context.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_merge_context.rb deleted file mode 100644 index dd619f47a..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_merge_context.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_merge_context.rb - line_number: 1 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_airbrake - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_merge_context.rb - line_number: 1 - parent: - line_number: 2 - content: 'Airbrake.merge_context(users: users)' - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_notify.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_notify.rb deleted file mode 100644 index 4a6dd745f..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_notify.rb +++ /dev/null @@ -1,68 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_notify.rb - line_number: 4 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_notify.rb - line_number: 8 - field_name: email - object_name: customer - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_notify.rb - line_number: 1 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_airbrake - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_notify.rb - line_number: 4 - parent: - line_number: 3 - content: |- - Airbrake.notify('App crashed!', { - current_user: user.email - }) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_notify.rb - line_number: 8 - parent: - line_number: 7 - content: |- - Airbrake.notify('App crashed') do |notice| - notice[:params][:email] = customer.email - end - field_name: email - object_name: customer - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_notify.rb - line_number: 1 - parent: - line_number: 1 - content: Airbrake.notify(user.first_name) - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_rescue_block.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_rescue_block.rb deleted file mode 100644 index 84947d984..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_datatype_in_rescue_block.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_rescue_block.rb - line_number: 4 - field_name: first_name - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_airbrake - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/airbrake/testdata/datatype_in_rescue_block.rb - line_number: 4 - parent: - line_number: 4 - content: Airbrake.notify_sync(current_user.first_name) - field_name: first_name - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_ignored_datatypes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_ignored_datatypes.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_ignored_datatypes.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_no_datatypes.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/airbrake/.snapshots/TestRubyThirdPartiesAirbrakeDataflow-dataflow_ruby_third_parties_airbrake_ok_no_datatypes.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_datatype_in_save_object.rb b/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_datatype_in_save_object.rb deleted file mode 100644 index 66b5b6326..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_datatype_in_save_object.rb +++ /dev/null @@ -1,60 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/datatype_in_save_object.rb - line_number: 4 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/datatype_in_save_object.rb - line_number: 6 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_algolia - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/datatype_in_save_object.rb - line_number: 4 - parent: - line_number: 4 - content: 'index.save_object({ email: user.email }, { auto_generate_object_id_if_not_exist: true })' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/datatype_in_save_object.rb - line_number: 6 - parent: - line_number: 6 - content: 'index.save_objects([{ email: user.email }], { auto_generate_object_id_if_not_exist: true })' - field_name: email - object_name: user - subject_name: User - - detector_id: ruby_third_parties_algolia_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/datatype_in_save_object.rb - line_number: 1 - parent: - line_number: 1 - content: Algolia::Search::Client.create('YourApplicationID', 'YourWriteAPIKey') - content: | - Algolia::Search::Client.create() - - detector_id: ruby_third_parties_algolia_index - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/datatype_in_save_object.rb - line_number: 2 - parent: - line_number: 2 - content: client.init_index("my_index") - content: | - $.init_index() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_datatype_ignored.rb deleted file mode 100644 index 8079e07e2..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_datatype_ignored.rb +++ /dev/null @@ -1,60 +0,0 @@ -data_types: - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_datatype_ignored.rb - line_number: 4 - field_name: user_id - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_datatype_ignored.rb - line_number: 6 - field_name: user_id - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_algolia - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_datatype_ignored.rb - line_number: 4 - parent: - line_number: 4 - content: 'index.save_object({ user_id: user.user_id })' - field_name: user_id - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_datatype_ignored.rb - line_number: 6 - parent: - line_number: 6 - content: 'index.save_objects([{ user_id: user.user_id }])' - field_name: user_id - object_name: user - subject_name: User - - detector_id: ruby_third_parties_algolia_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_datatype_ignored.rb - line_number: 1 - parent: - line_number: 1 - content: Algolia::Search::Client.create('YourApplicationID', 'YourWriteAPIKey') - content: | - Algolia::Search::Client.create() - - detector_id: ruby_third_parties_algolia_index - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_datatype_ignored.rb - line_number: 2 - parent: - line_number: 2 - content: client.init_index("my_index") - content: | - $.init_index() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_no_datatype.rb deleted file mode 100644 index 1587dbb8d..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/algolia/.snapshots/TestRubyThirdPartiesAlgoliaDataflow-dataflow_ruby_third_parties_algolia_ok_no_datatype.rb +++ /dev/null @@ -1,24 +0,0 @@ -risks: - - detector_id: ruby_third_parties_algolia_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_no_datatype.rb - line_number: 1 - parent: - line_number: 1 - content: Algolia::Search::Client.create('YourApplicationID', 'YourWriteAPIKey') - content: | - Algolia::Search::Client.create() - - detector_id: ruby_third_parties_algolia_index - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/algolia/testdata/ok_no_datatype.rb - line_number: 2 - parent: - line_number: 2 - content: client.init_index("my_index") - content: | - $.init_index() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert.rb deleted file mode 100644 index b1333a8bc..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert.rb +++ /dev/null @@ -1,50 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert.rb - line_number: 4 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_bigquery - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert.rb - line_number: 4 - parent: - line_number: 7 - content: |- - dataset.insert("my_table", rows) do |result| - call - end - field_name: first_name - object_name: user - subject_name: User - - detector_id: ruby_third_parties_bigquery_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert.rb - line_number: 1 - parent: - line_number: 1 - content: 'Google::Cloud::Bigquery.new(retries: 3)' - content: | - Google::Cloud::Bigquery.new() - - detector_id: ruby_third_parties_bigquery_dataset - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert.rb - line_number: 2 - parent: - line_number: 2 - content: bigquery.dataset("my_dataset") - content: | - $.dataset() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert_async.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert_async.rb deleted file mode 100644 index 6877c91ba..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_insert_async.rb +++ /dev/null @@ -1,59 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert_async.rb - line_number: 8 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_bigquery - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert_async.rb - line_number: 8 - parent: - line_number: 8 - content: 'inserter.insert([{ first_name: user.first_name }])' - field_name: first_name - object_name: user - subject_name: User - - detector_id: ruby_third_parties_bigquery_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert_async.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Bigquery.new - content: | - Google::Cloud::Bigquery.new - - detector_id: ruby_third_parties_bigquery_dataset - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert_async.rb - line_number: 2 - parent: - line_number: 2 - content: bigquery.dataset("my_dataset") - content: | - $.dataset() - - detector_id: ruby_third_parties_bigquery_insert_async - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_insert_async.rb - line_number: 4 - parent: - line_number: 4 - content: |- - dataset.insert_async "my_table" do |result| - call - end - content: | - $.insert_async()$<...> -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert.rb deleted file mode 100644 index d3af829c6..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert.rb +++ /dev/null @@ -1,56 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert.rb - line_number: 5 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_bigquery - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert.rb - line_number: 5 - parent: - line_number: 8 - content: table.insert(rows) - field_name: first_name - object_name: user - subject_name: User - - detector_id: ruby_third_parties_bigquery_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Bigquery.new - content: | - Google::Cloud::Bigquery.new - - detector_id: ruby_third_parties_bigquery_dataset - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert.rb - line_number: 2 - parent: - line_number: 2 - content: bigquery.dataset("my_dataset") - content: | - $.dataset() - - detector_id: ruby_third_parties_bigquery_table - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert.rb - line_number: 3 - parent: - line_number: 3 - content: dataset.table("my_table") - content: | - $.table() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert_async.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert_async.rb deleted file mode 100644 index f96e83d20..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_datatype_in_table_insert_async.rb +++ /dev/null @@ -1,68 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert_async.rb - line_number: 9 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_bigquery - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert_async.rb - line_number: 9 - parent: - line_number: 11 - content: inserter.insert(rows) - field_name: first_name - object_name: user - subject_name: User - - detector_id: ruby_third_parties_bigquery_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert_async.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Bigquery.new - content: | - Google::Cloud::Bigquery.new - - detector_id: ruby_third_parties_bigquery_dataset - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert_async.rb - line_number: 2 - parent: - line_number: 2 - content: bigquery.dataset("my_dataset") - content: | - $.dataset() - - detector_id: ruby_third_parties_bigquery_insert_async - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert_async.rb - line_number: 5 - parent: - line_number: 5 - content: |- - table.insert_async do |result| - call - end - content: | - $.insert_async$<...> - - detector_id: ruby_third_parties_bigquery_table - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/datatype_in_table_insert_async.rb - line_number: 3 - parent: - line_number: 3 - content: dataset.table("my_table") - content: | - $.table() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_datatype_ignored.rb deleted file mode 100644 index 17945d013..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_datatype_ignored.rb +++ /dev/null @@ -1,59 +0,0 @@ -data_types: - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_datatype_ignored.rb - line_number: 8 - field_name: user_id - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_bigquery - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_datatype_ignored.rb - line_number: 8 - parent: - line_number: 12 - content: dataset.insert(rows) - field_name: user_id - object_name: user - subject_name: User - - detector_id: ruby_third_parties_bigquery_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_datatype_ignored.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Bigquery.new - content: | - Google::Cloud::Bigquery.new - - detector_id: ruby_third_parties_bigquery_dataset - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_datatype_ignored.rb - line_number: 2 - parent: - line_number: 2 - content: bigquery.dataset("my_dataset") - content: | - $.dataset() - - detector_id: ruby_third_parties_bigquery_insert_async - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_datatype_ignored.rb - line_number: 4 - parent: - line_number: 4 - content: |- - dataset.insert_async "my_table" do |result| - call - end - content: | - $.insert_async()$<...> -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_no_datatype.rb deleted file mode 100644 index 76f9fbbc4..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bigquery/.snapshots/TestRubyThirdPartiesBigQueryDataflow-dataflow_ruby_third_parties_bigquery_ok_no_datatype.rb +++ /dev/null @@ -1,36 +0,0 @@ -risks: - - detector_id: ruby_third_parties_bigquery_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_no_datatype.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Bigquery.new - content: | - Google::Cloud::Bigquery.new - - detector_id: ruby_third_parties_bigquery_dataset - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_no_datatype.rb - line_number: 2 - parent: - line_number: 2 - content: bigquery.dataset("my_dataset") - content: | - $.dataset() - - detector_id: ruby_third_parties_bigquery_insert_async - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bigquery/testdata/ok_no_datatype.rb - line_number: 4 - parent: - line_number: 4 - content: |- - dataset.insert_async "my_table" do |result| - call - end - content: | - $.insert_async()$<...> -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_add_metadata.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_add_metadata.rb deleted file mode 100644 index 037dff757..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_add_metadata.rb +++ /dev/null @@ -1,24 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/before_bugsnag_notify_add_metadata.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/before_bugsnag_notify_add_metadata.rb - line_number: 12 - field_name: name - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_set_user.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_set_user.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_before_bugsnag_notify_set_user.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_breadcrumb.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_breadcrumb.rb deleted file mode 100644 index 23b691ab3..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_breadcrumb.rb +++ /dev/null @@ -1,45 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/breadcrumb.rb - line_number: 2 - field_name: user_email - object_name: metadata - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/breadcrumb.rb - line_number: 3 - field_name: user_id - object_name: metadata -risks: - - detector_id: ruby_third_parties_bugsnag - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/breadcrumb.rb - line_number: 2 - parent: - line_number: 7 - content: Bugsnag.leave_breadcrumb('User logged in', metadata, Bugsnag::BreadcrumbType::USER) - field_name: email - object_name: current - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/breadcrumb.rb - line_number: 3 - parent: - line_number: 7 - content: Bugsnag.leave_breadcrumb('User logged in', metadata, Bugsnag::BreadcrumbType::USER) - field_name: user_id - object_name: metadata -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_bugsnag_notify.rb b/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_bugsnag_notify.rb deleted file mode 100644 index a14b17742..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/.snapshots/TestRubyThirdPartiesBugsnagDataflow-dataflow_ruby_third_parties_bugsnag_bugsnag_notify.rb +++ /dev/null @@ -1,65 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/bugsnag_notify.rb - line_number: 2 - field_name: email - object_name: current_user - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/bugsnag_notify.rb - line_number: 13 - field_name: name - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_bugsnag - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/bugsnag_notify.rb - line_number: 7 - parent: - line_number: 7 - content: |- - Bugsnag.notify(exception) do |event| - # Adjust the severity of this error - event.severity = "warning" - - # Add customer information to this event - event.add_metadata(:account, { - user_name: current_user.name, - paying_customer: true - }) - end - content: | - Bugsnag.notify($<_>) do |$| - $.add_metadata($<...>$$<...>) - end - - filename: pkg/commands/process/settings/rules/ruby/third_parties/bugsnag/testdata/bugsnag_notify.rb - line_number: 7 - parent: - line_number: 7 - content: |- - Bugsnag.notify(exception) do |event| - # Adjust the severity of this error - event.severity = "warning" - - # Add customer information to this event - event.add_metadata(:account, { - user_name: current_user.name, - paying_customer: true - }) - end - content: | - Bugsnag.notify($<_>) do |$| - $.add_metadata($<...>$$<...>) - end -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_datatype_in_insert_rows.rb b/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_datatype_in_insert_rows.rb deleted file mode 100644 index 54f989098..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_datatype_in_insert_rows.rb +++ /dev/null @@ -1,70 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/datatype_in_insert_rows.rb - line_number: 6 - field_name: email - object_name: customer - subject_name: User - - name: Physical Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/datatype_in_insert_rows.rb - line_number: 7 - field_name: address - object_name: customer - subject_name: User -risks: - - detector_id: ruby_third_parties_clickhouse - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/datatype_in_insert_rows.rb - line_number: 6 - parent: - line_number: 3 - content: |- - rows << [ - "123", - 2022, - customer.email, - customer.address - ] - field_name: email - object_name: customer - subject_name: User - - name: Physical Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/datatype_in_insert_rows.rb - line_number: 7 - parent: - line_number: 3 - content: |- - rows << [ - "123", - 2022, - customer.email, - customer.address - ] - field_name: address - object_name: customer - subject_name: User - - detector_id: ruby_third_parties_clickhouse_insert_rows - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/datatype_in_insert_rows.rb - line_number: 1 - parent: - line_number: 1 - content: rows - content: | - Clickhouse.connection.insert_rows() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_ignored_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_ignored_datatype.rb deleted file mode 100644 index ba30b56c9..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_ignored_datatype.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_third_parties_clickhouse_insert_rows - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/ok_ignored_datatype.rb - line_number: 1 - parent: - line_number: 1 - content: rows - content: | - Clickhouse.connection.insert_rows() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_no_datatype.rb deleted file mode 100644 index 6e38f2404..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/.snapshots/TestRubyThirdPartiesClickHouseDataflow-dataflow_ruby_third_parties_clickhouse_ok_no_datatype.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_third_parties_clickhouse_insert_rows - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/clickhouse/testdata/ok_no_datatype.rb - line_number: 1 - parent: - line_number: 1 - content: rows - content: | - Clickhouse.connection.insert_rows() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_datatype_in_tags.rb b/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_datatype_in_tags.rb deleted file mode 100644 index 4acc717fb..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_datatype_in_tags.rb +++ /dev/null @@ -1,134 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 7 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 9 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 10 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 12 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 17 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_datadog - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 2 - parent: - line_number: 3 - content: c.tags = user - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 7 - parent: - line_number: 7 - content: span.set_tag('user.email', user.email) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 9 - parent: - line_number: 9 - content: Datadog::Tracing.active_span&.set_tag('customer.id', user.email) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 10 - parent: - line_number: 10 - content: Datadog::Tracing.active_span.set_tag('customer.id', user.email) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 12 - parent: - line_number: 12 - content: |- - Datadog::Tracing.trace("web.request", tags: { email: user.email }) do |span, trace| - call - end - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 17 - parent: - line_number: 17 - content: span.set_tag('user.email', user.email) - field_name: email - object_name: user - subject_name: User - - detector_id: ruby_third_parties_datadog_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 6 - parent: - line_number: 6 - content: Datadog.configuration[:cucumber][:tracer].active_span - content: | - Datadog.configuration[$<_>][$<_>].active_span - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 9 - parent: - line_number: 9 - content: Datadog::Tracing.active_span - content: | - Datadog::Tracing.active_span - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 10 - parent: - line_number: 10 - content: Datadog::Tracing.active_span - content: | - Datadog::Tracing.active_span - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 12 - parent: - line_number: 12 - content: span - content: | - Datadog::Tracing.trace() { |$$$<...>| } - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/datatype_in_tags.rb - line_number: 16 - parent: - line_number: 16 - content: span - content: | - Datadog::Tracing.trace() { |$$$<...>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_datatype_ignored.rb deleted file mode 100644 index 8bd8ba747..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_datatype_ignored.rb +++ /dev/null @@ -1,48 +0,0 @@ -data_types: - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/ok_datatype_ignored.rb - line_number: 2 - field_name: user_id - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_datadog - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/ok_datatype_ignored.rb - line_number: 2 - parent: - line_number: 3 - content: c.tags = user - field_name: user_id - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/ok_datatype_ignored.rb - line_number: 6 - parent: - line_number: 6 - content: |- - Datadog::Tracing.trace("web.request", tags: { user_id: 42 }) do |span, trace| - call - end - field_name: user_id - object_name: tags - - detector_id: ruby_third_parties_datadog_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/ok_datatype_ignored.rb - line_number: 6 - parent: - line_number: 6 - content: span - content: | - Datadog::Tracing.trace() { |$$$<...>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_no_datatype.rb deleted file mode 100644 index 3b43b807f..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/datadog/.snapshots/TestRubyThirdPartiesDatadogDataflow-dataflow_ruby_third_parties_datadog_ok_no_datatype.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_third_parties_datadog_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/datadog/testdata/ok_no_datatype.rb - line_number: 6 - parent: - line_number: 6 - content: span - content: | - Datadog::Tracing.trace() { |$$$<...>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_bulk.rb b/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_bulk.rb deleted file mode 100644 index 878138473..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_bulk.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_bulk.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_elasticsearch - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_bulk.rb - line_number: 3 - parent: - line_number: 10 - content: 'client.bulk(body: body)' - field_name: email - object_name: user - subject_name: User - - detector_id: ruby_third_parties_elasticsearch_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_bulk.rb - line_number: 1 - parent: - line_number: 1 - content: 'Elasticsearch::Client.new(log: true)' - content: | - Elasticsearch::Client.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_index.rb b/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_index.rb deleted file mode 100644 index b3ad64e90..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_index.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_index.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_elasticsearch - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_index.rb - line_number: 3 - parent: - line_number: 4 - content: 'client.index({ index: ''users'', body: user })' - field_name: email - object_name: user - subject_name: User - - detector_id: ruby_third_parties_elasticsearch_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_index.rb - line_number: 1 - parent: - line_number: 1 - content: 'Elasticsearch::Client.new(log: true)' - content: | - Elasticsearch::Client.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_update.rb b/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_update.rb deleted file mode 100644 index a4a1a2717..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_datatype_in_update.rb +++ /dev/null @@ -1,43 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_update.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_elasticsearch - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_update.rb - line_number: 1 - parent: - line_number: 3 - content: |- - Elasticsearch::Client - .new - .update(index: 'books', id: 42, body: user) - field_name: email - object_name: user - subject_name: User - - detector_id: ruby_third_parties_elasticsearch_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/datatype_in_update.rb - line_number: 3 - parent: - line_number: 3 - content: |- - Elasticsearch::Client - .new - content: | - Elasticsearch::Client.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_datatype_ignored.rb deleted file mode 100644 index 85e3be010..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_datatype_ignored.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/ok_datatype_ignored.rb - line_number: 1 - field_name: user_id - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_elasticsearch - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/ok_datatype_ignored.rb - line_number: 1 - parent: - line_number: 12 - content: 'client.update(index: ''books'', id: 42, body: user)' - field_name: user_id - object_name: user - subject_name: User - - detector_id: ruby_third_parties_elasticsearch_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/ok_datatype_ignored.rb - line_number: 2 - parent: - line_number: 2 - content: Elasticsearch::Client.new - content: | - Elasticsearch::Client.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_no_datatype.rb deleted file mode 100644 index a1aa33144..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/.snapshots/TestRubyThirdPartiesElasticsearchDataflow-dataflow_ruby_third_parties_elasticsearch_ok_no_datatype.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: ruby_third_parties_elasticsearch_client - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/elasticsearch/testdata/ok_no_datatype.rb - line_number: 2 - parent: - line_number: 2 - content: Elasticsearch::Client.new - content: | - Elasticsearch::Client.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_cohort.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_cohort.rb deleted file mode 100644 index 676c5626e..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_cohort.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Physical Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_cohort.rb - line_number: 1 - field_name: zip_code - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_analytics - data_types: - - name: Physical Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_cohort.rb - line_number: 1 - parent: - line_number: 1 - content: 'Google::Apis::AnalyticsreportingV4::Cohort.new(name: user.zip_code)' - field_name: zip_code - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_custom_dimension.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_custom_dimension.rb deleted file mode 100644 index 44f4970ae..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_custom_dimension.rb +++ /dev/null @@ -1,32 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_custom_dimension.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_analytics - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_custom_dimension.rb - line_number: 2 - parent: - line_number: 1 - content: |- - Google::Apis::AnalyticsreportingV4::CustomDimension.new( - value: user.email - ) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_event_data.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_event_data.rb deleted file mode 100644 index 14f43cf55..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_event_data.rb +++ /dev/null @@ -1,32 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_event_data.rb - line_number: 2 - field_name: ip_address - object_name: customer - subject_name: User -risks: - - detector_id: ruby_third_parties_google_analytics - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_event_data.rb - line_number: 2 - parent: - line_number: 1 - content: |- - Google::Apis::AnalyticsreportingV4::EventData.new( - event_label: "Sign in #{customer.ip_address}" - ) - field_name: ip_address - object_name: customer - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_transaction_data.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_transaction_data.rb deleted file mode 100644 index de711086a..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_transaction_data.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Bank Account - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_transaction_data.rb - line_number: 1 - field_name: bank_account_number - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_analytics - data_types: - - name: Bank Account - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_transaction_data.rb - line_number: 1 - parent: - line_number: 1 - content: 'Google::Apis::AnalyticsreportingV4::TransactionData.update!(transaction_id: "user_"+user.bank_account_number)' - field_name: bank_account_number - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_user_classes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_user_classes.rb deleted file mode 100644 index d544c7a77..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_datatype_in_user_classes.rb +++ /dev/null @@ -1,52 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_user_classes.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_user_classes.rb - line_number: 4 - field_name: ip_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_analytics - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_user_classes.rb - line_number: 1 - parent: - line_number: 1 - content: 'Google::Apis::AnalyticsreportingV4::User.new(user_id: user.email)' - field_name: email - object_name: user - subject_name: User - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/testdata/datatype_in_user_classes.rb - line_number: 4 - parent: - line_number: 3 - content: |- - Google::Apis::AnalyticsreportingV4::UserActivitySession.update!( - session_id: DateTime.now + user.ip_address - ) - field_name: ip_address - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_ignored_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_ignored_datatype.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_ignored_datatype.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_no_datatype.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_analytics/.snapshots/TestRubyThirdPartiesGoogleAnalyticsDataflow-dataflow_ruby_third_parties_google_analytics_ok_no_datatype.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_config.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_config.rb deleted file mode 100644 index c8cdbe2fb..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_config.rb +++ /dev/null @@ -1,79 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 8 - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 13 - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 14 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 8 - parent: - line_number: 8 - content: 'config.metadata = { current_user_id: current_user.email }' - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 14 - parent: - line_number: 14 - content: 'client_config.metadata = { current_user_id: current_user.email }' - field_name: email - object_name: current_user - subject_name: User - - detector_id: google_dataflow_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 2 - parent: - line_number: 2 - content: Google::Cloud::Dataflow.messages - content: | - Google::Cloud::Dataflow.$ - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::Messages::Client.new - content: | - Google::Cloud::Dataflow::$<_>::$<_>::Client.new - - detector_id: google_dataflow_config - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 6 - parent: - line_number: 6 - content: client.configure - content: | - $.configure - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_config.rb - line_number: 7 - parent: - line_number: 7 - content: config - content: | - $.configure { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_job_message.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_job_message.rb deleted file mode 100644 index 743a1d47d..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_job_message.rb +++ /dev/null @@ -1,47 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_job_message.rb - line_number: 2 - field_name: ip_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_job_message.rb - line_number: 2 - parent: - line_number: 2 - content: 'msg.message_text = "Current user: #{user.ip_address}"' - field_name: ip_address - object_name: user - subject_name: User - - detector_id: google_dataflow_message_text_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_job_message.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::JobMessage.new - content: | - Google::Cloud::Dataflow::$<_>::JobMessage.new - - detector_id: google_dataflow_value_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_job_message.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::JobMessage.new - content: | - Google::Cloud::Dataflow::$<_>::JobMessage.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_metadata.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_metadata.rb deleted file mode 100644 index 0084f74b2..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_metadata.rb +++ /dev/null @@ -1,73 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 2 - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 5 - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 6 - field_name: ip_address - object_name: customer - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 2 - parent: - line_number: 2 - content: 'custom_metadata.value = "ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 5 - parent: - line_number: 5 - content: 'template_metadata.description ="ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 6 - parent: - line_number: 6 - content: 'template_metadata.name ="ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - detector_id: google_dataflow_template_metadata_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 4 - parent: - line_number: 4 - content: Google::Cloud::Dataflow::V1beta3::TemplateMetadata.new - content: | - Google::Cloud::Dataflow::$<_>::TemplateMetadata.new - - detector_id: google_dataflow_value_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_metadata.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::ParameterMetadata::CustomMetadataEntry.new - content: | - Google::Cloud::Dataflow::$<_>::ParameterMetadata::CustomMetadataEntry.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_params_entry.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_params_entry.rb deleted file mode 100644 index f22a7c26c..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_params_entry.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_params_entry.rb - line_number: 2 - field_name: ip_address - object_name: customer - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_params_entry.rb - line_number: 2 - parent: - line_number: 2 - content: 'param.value = "ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - detector_id: google_dataflow_value_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_params_entry.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest::ParametersEntry.new - content: | - Google::Cloud::Dataflow::$<_>::CreateJobFromTemplateRequest::ParametersEntry.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_job_request.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_job_request.rb deleted file mode 100644 index edc1e8a0f..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_job_request.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_job_request.rb - line_number: 2 - field_name: ip_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_job_request.rb - line_number: 2 - parent: - line_number: 2 - content: 'req.description = "Current user: #{user.ip_address}"' - field_name: ip_address - object_name: user - subject_name: User - - detector_id: google_dataflow_description_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_job_request.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - content: | - Google::Cloud::Dataflow::$<_>::SnapshotJobRequest.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_setter.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_setter.rb deleted file mode 100644 index f4629e673..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_snapshot_setter.rb +++ /dev/null @@ -1,70 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 9 - field_name: email_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 9 - parent: - line_number: 9 - content: 'snapshot.description = "Current user: #{user.email_address}"' - field_name: email_address - object_name: user - subject_name: User - - detector_id: google_dataflow_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 2 - parent: - line_number: 2 - content: Google::Cloud::Dataflow.snapshots - content: | - Google::Cloud::Dataflow.$ - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - content: | - Google::Cloud::Dataflow::$<_>::$<_>::Client.new - - detector_id: google_dataflow_description_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 6 - parent: - line_number: 6 - content: snapshot_client.get_snapshot - content: | - $.get_snapshot - - detector_id: google_dataflow_snapshots_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 2 - parent: - line_number: 2 - content: Google::Cloud::Dataflow.snapshots - content: | - Google::Cloud::Dataflow.snapshots - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_snapshot_setter.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - content: | - Google::Cloud::Dataflow::$<_>::Snapshots::Client.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message.rb deleted file mode 100644 index 015abd0be..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_structured_message.rb - line_number: 4 - field_name: ip_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_structured_message.rb - line_number: 4 - parent: - line_number: 4 - content: 'str_msg.message_text = "Current user: #{user.ip_address}"' - field_name: ip_address - object_name: user - subject_name: User - - detector_id: google_dataflow_message_text_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_structured_message.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::StructuredMessage.new - content: | - Google::Cloud::Dataflow::$<_>::StructuredMessage.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message_param.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message_param.rb deleted file mode 100644 index fc5d556bf..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_structured_message_param.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_structured_message_param.rb - line_number: 2 - field_name: ip_address - object_name: customer - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_structured_message_param.rb - line_number: 2 - parent: - line_number: 2 - content: 'param2.value = "ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - detector_id: google_dataflow_value_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_structured_message_param.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter.new - content: | - Google::Cloud::Dataflow::$<_>::StructuredMessage::Parameter.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_template_job_creation.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_template_job_creation.rb deleted file mode 100644 index 28dcf4fc4..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_datatype_in_template_job_creation.rb +++ /dev/null @@ -1,61 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_template_job_creation.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_template_job_creation.rb - line_number: 5 - parent: - line_number: 5 - content: 'templates_client.create_job_from_template(project_id: "123", job_name: "my-job", parameters: { current_user: user.email })' - field_name: email - object_name: user - subject_name: User - - detector_id: google_dataflow_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_template_job_creation.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - content: | - Google::Cloud::Dataflow::$<_>::$<_>::Client.new - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_template_job_creation.rb - line_number: 4 - parent: - line_number: 4 - content: Google::Cloud::Dataflow.templates_service - content: | - Google::Cloud::Dataflow.$ - - detector_id: google_dataflow_templates_service_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_template_job_creation.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - content: | - Google::Cloud::Dataflow::$<_>::TemplatesService::Client.new - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/datatype_in_template_job_creation.rb - line_number: 4 - parent: - line_number: 4 - content: Google::Cloud::Dataflow.templates_service - content: | - Google::Cloud::Dataflow.templates_service -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_fail_with_different_version.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_fail_with_different_version.rb deleted file mode 100644 index 5b2daae92..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_fail_with_different_version.rb +++ /dev/null @@ -1,61 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/fail_with_different_version.rb - line_number: 5 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/fail_with_different_version.rb - line_number: 5 - parent: - line_number: 5 - content: 'templates_client.create_job_from_template(project_id: "123", job_name: "my-job", parameters: { current_user: user.email })' - field_name: email - object_name: user - subject_name: User - - detector_id: google_dataflow_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/fail_with_different_version.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V2::TemplatesService::Client.new - content: | - Google::Cloud::Dataflow::$<_>::$<_>::Client.new - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/fail_with_different_version.rb - line_number: 4 - parent: - line_number: 4 - content: Google::Cloud::Dataflow.templates_service - content: | - Google::Cloud::Dataflow.$ - - detector_id: google_dataflow_templates_service_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/fail_with_different_version.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V2::TemplatesService::Client.new - content: | - Google::Cloud::Dataflow::$<_>::TemplatesService::Client.new - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/fail_with_different_version.rb - line_number: 4 - parent: - line_number: 4 - content: Google::Cloud::Dataflow.templates_service - content: | - Google::Cloud::Dataflow.templates_service -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_ignored_datatypes_only.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_ignored_datatypes_only.rb deleted file mode 100644 index 23ca17e19..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_ignored_datatypes_only.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: google_dataflow_value_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/ok_ignored_datatypes_only.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter.new - content: | - Google::Cloud::Dataflow::$<_>::StructuredMessage::Parameter.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_no_datatypes.rb deleted file mode 100644 index d0dcdccdf..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_ok_no_datatypes.rb +++ /dev/null @@ -1,47 +0,0 @@ -risks: - - detector_id: google_dataflow_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/ok_no_datatypes.rb - line_number: 2 - parent: - line_number: 2 - content: Google::Cloud::Dataflow.snapshots - content: | - Google::Cloud::Dataflow.$ - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/ok_no_datatypes.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - content: | - Google::Cloud::Dataflow::$<_>::$<_>::Client.new - - detector_id: google_dataflow_description_classes - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/ok_no_datatypes.rb - line_number: 6 - parent: - line_number: 6 - content: snapshot_client.get_snapshot - content: | - $.get_snapshot - - detector_id: google_dataflow_snapshots_client_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/ok_no_datatypes.rb - line_number: 2 - parent: - line_number: 2 - content: Google::Cloud::Dataflow.snapshots - content: | - Google::Cloud::Dataflow.snapshots - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/ok_no_datatypes.rb - line_number: 3 - parent: - line_number: 3 - content: Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - content: | - Google::Cloud::Dataflow::$<_>::Snapshots::Client.new -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_temp.rb b/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_temp.rb deleted file mode 100644 index 93670ce69..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/.snapshots/TestRubyThirdPartiesGoogleDataflowDataflow-dataflow_ruby_third_parties_google_dataflow_temp.rb +++ /dev/null @@ -1,117 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 2 - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 5 - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 8 - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 11 - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 12 - field_name: ip_address - object_name: customer - subject_name: User -risks: - - detector_id: ruby_third_parties_google_dataflow - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 2 - parent: - line_number: 2 - content: 'param.value = "ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 5 - parent: - line_number: 5 - content: 'custom_metadata.value = "ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 8 - parent: - line_number: 8 - content: 'param2.value = "ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 11 - parent: - line_number: 11 - content: 'template_metadata.description ="ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 12 - parent: - line_number: 12 - content: 'template_metadata.name ="ip: #{customer.ip_address}"' - field_name: ip_address - object_name: customer - subject_name: User - - detector_id: google_dataflow_custom_metadata_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 4 - parent: - line_number: 4 - content: Google::Cloud::Dataflow::V1beta3::ParameterMetadata::CustomMetadataEntry.new() - content: | - Google::Cloud::Dataflow::$<_>::ParameterMetadata::CustomMetadataEntry.new() - - detector_id: google_dataflow_parameters_entry_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 1 - parent: - line_number: 1 - content: Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest::ParametersEntry.new() - content: | - Google::Cloud::Dataflow::$<_>::CreateJobFromTemplateRequest::ParametersEntry.new() - - detector_id: google_dataflow_structured_message_parameter_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 7 - parent: - line_number: 7 - content: Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter.new() - content: | - Google::Cloud::Dataflow::$<_>::StructuredMessage::Parameter.new() - - detector_id: google_dataflow_template_metadata_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/google_dataflow/testdata/temp.rb - line_number: 10 - parent: - line_number: 10 - content: Google::Cloud::Dataflow::V1beta3::TemplateMetadata.new() - content: | - Google::Cloud::Dataflow::$<_>::TemplateMetadata.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_breadcrumb.rb b/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_breadcrumb.rb deleted file mode 100644 index d5d13ae28..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_breadcrumb.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_breadcrumb.rb - line_number: 1 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_honeybadger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_breadcrumb.rb - line_number: 1 - parent: - line_number: 1 - content: 'Honeybadger.add_breadcrumb("Email Sent", metadata: { user_email: current_user.email, message: message })' - field_name: email - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_context.rb b/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_context.rb deleted file mode 100644 index 16e6f8f81..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_context.rb +++ /dev/null @@ -1,78 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_context.rb - line_number: 8 - field_name: email - object_name: current_user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_context.rb - line_number: 1 - field_name: first_name - object_name: current_user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_context.rb - line_number: 1 - field_name: last_name - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_honeybadger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_context.rb - line_number: 8 - parent: - line_number: 7 - content: |- - Honeybadger.context({ - my_data: current_user.email - }) - field_name: email - object_name: current_user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_context.rb - line_number: 1 - parent: - line_number: 3 - content: |- - Honeybadger.context({ - tags: tags - }) - field_name: first_name - object_name: current_user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_context.rb - line_number: 1 - parent: - line_number: 3 - content: |- - Honeybadger.context({ - tags: tags - }) - field_name: last_name - object_name: current_user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_methods.rb b/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_methods.rb deleted file mode 100644 index b5dce124a..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_methods.rb +++ /dev/null @@ -1,32 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_methods.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_honeybadger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_methods.rb - line_number: 3 - parent: - line_number: 2 - content: |- - def to_honeybadger_context - { user: { id: id, email: email } } - end - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_notify.rb b/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_notify.rb deleted file mode 100644 index 6bfae81df..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/.snapshots/TestRubyThirdPartiesHoneybadgerDataflow-dataflow_ruby_third_parties_honeybadger_honeybadger_notify.rb +++ /dev/null @@ -1,172 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 9 - field_name: first_name - object_name: current_user - subject_name: User - - name: Fullname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 2 - field_name: name - object_name: user - subject_name: User - - name: Gender - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 29 - field_name: gender - object_name: user - subject_name: User - - name: Lastname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 9 - field_name: last_name - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_honeybadger - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 22 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 9 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: first_name - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 13 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: first_name - object_name: user - subject_name: User - - name: Fullname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 2 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: name - object_name: user - subject_name: User - - name: Gender - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 29 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: gender - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 9 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: last_name - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/honeybadger/testdata/honeybadger_notify.rb - line_number: 14 - parent: - line_number: 28 - content: |- - Honeybadger.notify( - "Something is wrong here for " + user.gender, - class_name: "MyError", - error_message: error_message, - tags: tags, - context: context, - parameters: parameters, - ) - field_name: last_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_attributes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_attributes.rb deleted file mode 100644 index 4b3ddca5b..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_attributes.rb +++ /dev/null @@ -1,37 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_add_custom_attributes.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_new_relic - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_add_custom_attributes.rb - line_number: 1 - parent: - line_number: 2 - content: NewRelic::Agent.add_custom_attributes(user) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_add_custom_attributes.rb - line_number: 3 - parent: - line_number: 3 - content: 'NewRelic::Agent.add_custom_attributes(a: "test", user: { email: "user@example.com" }, other: 42)' - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_parameters.rb b/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_parameters.rb deleted file mode 100644 index 1bcfe8d72..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_add_custom_parameters.rb +++ /dev/null @@ -1,40 +0,0 @@ -data_types: - - name: Physical Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_add_custom_parameters.rb - line_number: 1 - field_name: address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_new_relic - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_add_custom_parameters.rb - line_number: 3 - parent: - line_number: 3 - content: 'NewRelic::Agent.add_custom_parameters(user: { email: "user@example.com" })' - field_name: email - object_name: user - subject_name: User - - name: Physical Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_add_custom_parameters.rb - line_number: 1 - parent: - line_number: 2 - content: NewRelic::Agent.add_custom_parameters(user) - field_name: address - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_notice_error.rb b/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_notice_error.rb deleted file mode 100644 index 46e0c50ff..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_datatype_in_notice_error.rb +++ /dev/null @@ -1,39 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_notice_error.rb - line_number: 1 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_new_relic - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_notice_error.rb - line_number: 1 - parent: - line_number: 2 - content: 'NewRelic::Agent.notice_error(exception, { custom_params: user })' - field_name: first_name - object_name: user - subject_name: User - - name: Lastname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/datatype_in_notice_error.rb - line_number: 3 - parent: - line_number: 3 - content: 'NewRelic::Agent.notice_error(exception, expected: true, custom_params: { last_name: "foo" }, metric: "test")' - field_name: last_name - object_name: custom_params -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_datatype_ignored.rb deleted file mode 100644 index 542b08ac1..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_datatype_ignored.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/ok_datatype_ignored.rb - line_number: 1 - field_name: user_id - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_new_relic - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/new_relic/testdata/ok_datatype_ignored.rb - line_number: 1 - parent: - line_number: 1 - content: 'NewRelic::Agent.add_custom_attributes(user_id: user.user_id)' - field_name: user_id - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_no_datatype.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/new_relic/.snapshots/TestRubyThirdPartiesNewRelicDataflow-dataflow_ruby_third_parties_new_relic_ok_no_datatype.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_record_exception.rb b/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_record_exception.rb deleted file mode 100644 index f29f39e5d..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_record_exception.rb +++ /dev/null @@ -1,65 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_record_exception.rb - line_number: 7 - field_name: email - object_name: current_user - subject_name: User - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_record_exception.rb - line_number: 17 - field_name: ip_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_open_telemetry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_record_exception.rb - line_number: 7 - parent: - line_number: 7 - content: 'current_span.status = OpenTelemetry::Trace::Status.error("error for user #{current_user.email}")' - field_name: email - object_name: current_user - subject_name: User - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_record_exception.rb - line_number: 17 - parent: - line_number: 17 - content: 'current_span.record_exception(ex, attributes: { "user.ip" => user.ip_address })' - field_name: ip_address - object_name: user - subject_name: User - - detector_id: open_telemetry_current_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_record_exception.rb - line_number: 2 - parent: - line_number: 2 - content: OpenTelemetry::Trace.current_span - content: | - OpenTelemetry::Trace.current_span - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_record_exception.rb - line_number: 11 - parent: - line_number: 11 - content: OpenTelemetry::Trace.current_span - content: | - OpenTelemetry::Trace.current_span -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_attributes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_attributes.rb deleted file mode 100644 index 68014b90b..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_attributes.rb +++ /dev/null @@ -1,69 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_attributes.rb - line_number: 13 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_attributes.rb - line_number: 7 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_open_telemetry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_attributes.rb - line_number: 13 - parent: - line_number: 14 - content: current_span.set_attribute("current_users", users) - field_name: email - object_name: admin_user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_attributes.rb - line_number: 7 - parent: - line_number: 5 - content: |- - current_span.add_attributes({ - "user.id" => user.id, - "user.first_name" => user.first_name - }) - field_name: first_name - object_name: user - subject_name: User - - detector_id: open_telemetry_current_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_attributes.rb - line_number: 3 - parent: - line_number: 3 - content: OpenTelemetry::Trace.current_span - content: | - OpenTelemetry::Trace.current_span - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_attributes.rb - line_number: 12 - parent: - line_number: 12 - content: OpenTelemetry::Trace.current_span - content: | - OpenTelemetry::Trace.current_span -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_event.rb b/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_event.rb deleted file mode 100644 index 4ad4d39c3..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatype_in_span_event.rb +++ /dev/null @@ -1,54 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_event.rb - line_number: 2 - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_event.rb - line_number: 4 - field_name: email - object_name: current_user - subject_name: User -risks: - - detector_id: ruby_third_parties_open_telemetry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_event.rb - line_number: 2 - parent: - line_number: 2 - content: 'span.add_event("Schedule job for user: #{current_user.email}")' - field_name: email - object_name: current_user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_event.rb - line_number: 4 - parent: - line_number: 3 - content: |- - span.add_event("Cancel job for user", attributes: { - "current_user" => current_user.email - }) - field_name: email - object_name: current_user - subject_name: User - - detector_id: open_telemetry_current_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatype_in_span_event.rb - line_number: 1 - parent: - line_number: 1 - content: OpenTelemetry::Trace.current_span - content: | - OpenTelemetry::Trace.current_span -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatypes_in_span_init_block.rb b/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatypes_in_span_init_block.rb deleted file mode 100644 index 18c2e4abd..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/.snapshots/TestRubyThirdPartiesOpenTelemetryDataflow-dataflow_ruby_third_parties_open_telemetry_datatypes_in_span_init_block.rb +++ /dev/null @@ -1,97 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 6 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 7 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 11 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_open_telemetry - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 2 - parent: - line_number: 2 - content: |- - Tracer.in_span("data leaking", attributes: { "current_user" => user.email, "date" => DateTime.now }) do |span| - puts "in the span block" - end - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 6 - parent: - line_number: 6 - content: |- - SomeOtherTracer.in_span("data leaking", attributes: { "current_user" => user.email, "date" => DateTime.now }) do |span| - span.add_attributes(user.email) - end - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 7 - parent: - line_number: 7 - content: span.add_attributes(user.email) - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 11 - parent: - line_number: 11 - content: 'span.add_event("leaking data for #{user.email}")' - field_name: email - object_name: user - subject_name: User - - detector_id: open_telemetry_current_span - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 2 - parent: - line_number: 2 - content: span - content: | - $<_>.in_span() { |$$<_:identifier>| } - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 6 - parent: - line_number: 6 - content: span - content: | - $<_>.in_span() { |$$<_:identifier>| } - - filename: pkg/commands/process/settings/rules/ruby/third_parties/open_telemetry/testdata/datatypes_in_span_init_block.rb - line_number: 10 - parent: - line_number: 10 - content: span - content: | - $<_>.in_span() { |$$<_:identifier>| } -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_context.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_context.rb deleted file mode 100644 index d25ee57ec..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_context.rb +++ /dev/null @@ -1,19 +0,0 @@ -risks: - - detector_id: ruby_third_parties_rollbar - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_context.rb - line_number: 1 - parent: - line_number: 1 - content: 'exception.rollbar_context = { user: { email: "someone@example.com" } }' - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log.rb deleted file mode 100644 index a0a94a88c..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log.rb +++ /dev/null @@ -1,57 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log.rb - line_number: 3 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_rollbar - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log.rb - line_number: 1 - parent: - line_number: 1 - content: 'Rollbar.log("error", "oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log.rb - line_number: 2 - parent: - line_number: 2 - content: 'Rollbar.log("error", "oops", user: { email: "someone@example.com" })' - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log.rb - line_number: 3 - parent: - line_number: 3 - content: 'Rollbar.log("error", "oops", { user: { first_name: "someone" } })' - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log_helper.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log_helper.rb deleted file mode 100644 index b51b52dcf..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_log_helper.rb +++ /dev/null @@ -1,122 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 6 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 8 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 10 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 12 - field_name: email - object_name: user - subject_name: User - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 4 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_rollbar - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 1 - parent: - line_number: 1 - content: 'Rollbar.critical("oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 2 - parent: - line_number: 2 - content: 'Rollbar.critical(e, "oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 3 - parent: - line_number: 3 - content: 'Rollbar.critical(e, user: { email: "someone@example.com" })' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 6 - parent: - line_number: 6 - content: 'Rollbar.error("oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 8 - parent: - line_number: 8 - content: 'Rollbar.debug("oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 10 - parent: - line_number: 10 - content: 'Rollbar.info("oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 12 - parent: - line_number: 12 - content: 'Rollbar.warning("oops #{user.email}")' - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_log_helper.rb - line_number: 4 - parent: - line_number: 4 - content: 'Rollbar.critical(e, { user: { first_name: "someone" } })' - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scope.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scope.rb deleted file mode 100644 index 976282e9b..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scope.rb +++ /dev/null @@ -1,62 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scope.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scope.rb - line_number: 3 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_rollbar - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scope.rb - line_number: 1 - parent: - line_number: 1 - content: 'Rollbar.scope!({ user: { email: "someone@example.com" }})' - field_name: email - object_name: user - subject_name: User - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scope.rb - line_number: 3 - parent: - line_number: 5 - content: Rollbar.scope(user) - field_name: email - object_name: user - subject_name: User - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scope.rb - line_number: 7 - parent: - line_number: 7 - content: 'notifier.scope(user: { first_name: "someone" })' - field_name: first_name - object_name: user - subject_name: User - - detector_id: ruby_third_parties_rollbar_scope - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scope.rb - line_number: 5 - parent: - line_number: 5 - content: Rollbar.scope(user) - content: | - Rollbar.scope() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scoped.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scoped.rb deleted file mode 100644 index c5294d7dd..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_datatype_in_scoped.rb +++ /dev/null @@ -1,22 +0,0 @@ -risks: - - detector_id: ruby_third_parties_rollbar - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/datatype_in_scoped.rb - line_number: 1 - parent: - line_number: 3 - content: |- - Rollbar.scoped(scope) do - call - end - field_name: email - object_name: person - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_datatype_ignored.rb deleted file mode 100644 index 2adef2033..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_datatype_ignored.rb +++ /dev/null @@ -1,19 +0,0 @@ -risks: - - detector_id: ruby_third_parties_rollbar - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/rollbar/testdata/ok_datatype_ignored.rb - line_number: 1 - parent: - line_number: 1 - content: 'exception.rollbar_context = { user: { user_id: 123 } }' - field_name: user_id - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_no_datatype.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/rollbar/.snapshots/TestRubyThirdPartiesRollbarDataflow-dataflow_ruby_third_parties_rollbar_ok_no_datatype.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add.rb b/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add.rb deleted file mode 100644 index 6e3da403a..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Firstname - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/testdata/datatype_in_add.rb - line_number: 1 - field_name: first_name - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_scout_apm - data_types: - - name: Firstname - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/testdata/datatype_in_add.rb - line_number: 1 - parent: - line_number: 1 - content: 'ScoutApm::Context.add({ user: { first_name: "someone" }})' - field_name: first_name - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add_user.rb b/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add_user.rb deleted file mode 100644 index 737328fce..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_datatype_in_add_user.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/testdata/datatype_in_add_user.rb - line_number: 1 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_scout_apm - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/testdata/datatype_in_add_user.rb - line_number: 1 - parent: - line_number: 2 - content: ScoutApm::Context.add_user(user) - field_name: email - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_datatype_ignored.rb b/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_datatype_ignored.rb deleted file mode 100644 index aa4ee70c9..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_datatype_ignored.rb +++ /dev/null @@ -1,29 +0,0 @@ -data_types: - - name: Unique Identifier - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/testdata/ok_datatype_ignored.rb - line_number: 1 - field_name: user_id - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_scout_apm - data_types: - - name: Unique Identifier - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/testdata/ok_datatype_ignored.rb - line_number: 1 - parent: - line_number: 1 - content: 'ScoutApm::Context.add({ user: { user_id: 42 } })' - field_name: user_id - object_name: user - subject_name: User -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_no_datatype.rb b/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_no_datatype.rb deleted file mode 100644 index 2ac23ce24..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/scout_apm/.snapshots/TestRubyThirdPartiesScoutAPMDataflow-dataflow_ruby_third_parties_scout_apm_ok_no_datatype.rb +++ /dev/null @@ -1,5 +0,0 @@ -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_as_user_id.rb b/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_as_user_id.rb deleted file mode 100644 index 2ba1ed4ab..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_as_user_id.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: Email Address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/datatype_as_user_id.rb - line_number: 2 - field_name: email - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_segment - data_types: - - name: Email Address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/datatype_as_user_id.rb - line_number: 2 - parent: - line_number: 2 - content: 'analytics.alias(user_id: user.email, previous_id: "some id")' - field_name: email - object_name: user - subject_name: User - - detector_id: segment_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/datatype_as_user_id.rb - line_number: 1 - parent: - line_number: 1 - content: 'Segment::Analytics.new(write_key: "ABC123F")' - content: | - Segment::Analytics.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_in_nested_attribute.rb b/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_in_nested_attribute.rb deleted file mode 100644 index 064b744db..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_datatype_in_nested_attribute.rb +++ /dev/null @@ -1,38 +0,0 @@ -data_types: - - name: IP address - detectors: - - name: ruby - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/datatype_in_nested_attribute.rb - line_number: 2 - field_name: ip_address - object_name: user - subject_name: User -risks: - - detector_id: ruby_third_parties_segment - data_types: - - name: IP address - stored: false - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/datatype_in_nested_attribute.rb - line_number: 2 - parent: - line_number: 2 - content: 'analytics.track(user_id: user.id, event: "account sign in", context: { ip: user.ip_address })' - field_name: ip_address - object_name: user - subject_name: User - - detector_id: segment_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/datatype_in_nested_attribute.rb - line_number: 1 - parent: - line_number: 1 - content: 'Segment::Analytics.new(write_key: "ABC123F")' - content: | - Segment::Analytics.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_no_datatypes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_no_datatypes.rb deleted file mode 100644 index 4d31442ba..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_no_datatypes.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: segment_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/ok_no_datatypes.rb - line_number: 1 - parent: - line_number: 1 - content: 'Segment::Analytics.new(write_key: "ABC123F")' - content: | - Segment::Analytics.new() -components: [] - - --- - diff --git a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_only_ignored_datatypes.rb b/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_only_ignored_datatypes.rb deleted file mode 100644 index 511e85777..000000000 --- a/pkg/commands/process/settings/rules/ruby/third_parties/segment/.snapshots/TestRubyThirdPartiesSegmentDataflow-dataflow_ruby_third_parties_segment_ok_only_ignored_datatypes.rb +++ /dev/null @@ -1,15 +0,0 @@ -risks: - - detector_id: segment_init - locations: - - filename: pkg/commands/process/settings/rules/ruby/third_parties/segment/testdata/ok_only_ignored_datatypes.rb - line_number: 1 - parent: - line_number: 1 - content: 'Segment::Analytics.new(write_key: "ABC123F")' - content: | - Segment::Analytics.new() -components: [] - - --- -