@dataparade/cli 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/package.json +1 -1
- package/dist/src/ai-enrichment/lambda-init-error.d.ts +5 -0
- package/dist/src/ai-enrichment/lambda-init-error.js +38 -0
- package/dist/src/ai-enrichment/providers/platform-proxy-provider.d.ts +5 -0
- package/dist/src/ai-enrichment/providers/platform-proxy-provider.js +27 -1
- package/dist/src/analyzers/cpp/cpp-detection-config.d.ts +73 -0
- package/dist/src/analyzers/cpp/cpp-detection-config.js +137 -0
- package/dist/src/analyzers/cpp/dependency-manifests.d.ts +8 -0
- package/dist/src/analyzers/cpp/dependency-manifests.js +130 -0
- package/dist/src/analyzers/cpp/detector.d.ts +3 -0
- package/dist/src/analyzers/cpp/detector.js +21 -0
- package/dist/src/analyzers/cpp/index.d.ts +2 -0
- package/dist/src/analyzers/cpp/index.js +11 -0
- package/dist/src/analyzers/cpp/manifest-parsers.d.ts +13 -0
- package/dist/src/analyzers/cpp/manifest-parsers.js +104 -0
- package/dist/src/analyzers/cpp/parser.d.ts +35 -0
- package/dist/src/analyzers/cpp/parser.js +206 -0
- package/dist/src/analyzers/cpp/patterns.d.ts +3 -0
- package/dist/src/analyzers/cpp/patterns.js +37 -0
- package/dist/src/analyzers/csharp/csharp-detection-config.d.ts +100 -0
- package/dist/src/analyzers/csharp/csharp-detection-config.js +160 -0
- package/dist/src/analyzers/csharp/dependency-manifests.d.ts +13 -0
- package/dist/src/analyzers/csharp/dependency-manifests.js +184 -0
- package/dist/src/analyzers/csharp/detector.d.ts +3 -0
- package/dist/src/analyzers/csharp/detector.js +21 -0
- package/dist/src/analyzers/csharp/index.d.ts +2 -0
- package/dist/src/analyzers/csharp/index.js +11 -0
- package/dist/src/analyzers/csharp/manifest-parsers.d.ts +34 -0
- package/dist/src/analyzers/csharp/manifest-parsers.js +130 -0
- package/dist/src/analyzers/csharp/parser.d.ts +48 -0
- package/dist/src/analyzers/csharp/parser.js +277 -0
- package/dist/src/analyzers/csharp/patterns.d.ts +3 -0
- package/dist/src/analyzers/csharp/patterns.js +57 -0
- package/dist/src/analyzers/go/dependency-manifests.d.ts +10 -0
- package/dist/src/analyzers/go/dependency-manifests.js +117 -0
- package/dist/src/analyzers/go/detector.d.ts +3 -0
- package/dist/src/analyzers/go/detector.js +21 -0
- package/dist/src/analyzers/go/go-detection-config.d.ts +97 -0
- package/dist/src/analyzers/go/go-detection-config.js +164 -0
- package/dist/src/analyzers/go/index.d.ts +2 -0
- package/dist/src/analyzers/go/index.js +11 -0
- package/dist/src/analyzers/go/manifest-parsers.d.ts +20 -0
- package/dist/src/analyzers/go/manifest-parsers.js +104 -0
- package/dist/src/analyzers/go/parser.d.ts +40 -0
- package/dist/src/analyzers/go/parser.js +186 -0
- package/dist/src/analyzers/go/patterns.d.ts +3 -0
- package/dist/src/analyzers/go/patterns.js +50 -0
- package/dist/src/analyzers/jvm/dependency-manifests.d.ts +16 -0
- package/dist/src/analyzers/jvm/dependency-manifests.js +205 -0
- package/dist/src/analyzers/jvm/detector.d.ts +3 -0
- package/dist/src/analyzers/jvm/detector.js +21 -0
- package/dist/src/analyzers/jvm/index.d.ts +9 -0
- package/dist/src/analyzers/jvm/index.js +18 -0
- package/dist/src/analyzers/jvm/jvm-detection-config.d.ts +136 -0
- package/dist/src/analyzers/jvm/jvm-detection-config.js +195 -0
- package/dist/src/analyzers/jvm/manifest-parsers.d.ts +61 -0
- package/dist/src/analyzers/jvm/manifest-parsers.js +246 -0
- package/dist/src/analyzers/jvm/parser.d.ts +54 -0
- package/dist/src/analyzers/jvm/parser.js +419 -0
- package/dist/src/analyzers/jvm/patterns.d.ts +3 -0
- package/dist/src/analyzers/jvm/patterns.js +64 -0
- package/dist/src/analyzers/python/detector.js +1 -1
- package/dist/src/analyzers/python/parser.d.ts +1 -0
- package/dist/src/analyzers/python/parser.js +7 -0
- package/dist/src/analyzers/python/patterns.d.ts +1 -0
- package/dist/src/analyzers/python/patterns.js +22 -77
- package/dist/src/analyzers/python/python-detection-config.d.ts +18 -0
- package/dist/src/analyzers/python/python-detection-config.js +20 -0
- package/dist/src/analyzers/registry.js +15 -0
- package/dist/src/analyzers/shared/c-family-calls.d.ts +26 -0
- package/dist/src/analyzers/shared/c-family-calls.js +118 -0
- package/dist/src/analyzers/shared/strip-comments.d.ts +32 -0
- package/dist/src/analyzers/shared/strip-comments.js +167 -0
- package/dist/src/analyzers/typescript/detector.js +1 -1
- package/dist/src/analyzers/typescript/typescript-detection-config.d.ts +37 -0
- package/dist/src/analyzers/typescript/typescript-detection-config.js +48 -0
- package/dist/src/analyzers/typescript/typescript-detection.d.ts +1 -0
- package/dist/src/analyzers/typescript/typescript-detection.js +27 -29
- package/dist/src/cli.js +1 -1
- package/dist/src/config/file.js +5 -0
- package/dist/src/config/resolve.js +5 -0
- package/dist/src/core/pipeline/graph-mapping.js +3 -0
- package/dist/src/core/pipeline/structural-scan.js +154 -31
- package/dist/src/core/schema/scan-config.schema.d.ts +5 -0
- package/dist/src/core/schema/scan-config.schema.js +5 -0
- package/dist/src/core/schema/scan-result.schema.d.ts +5 -0
- package/dist/src/core/schema/scan-result.schema.js +5 -0
- package/dist/src/core/sectioning/discover-service-sections.js +27 -1
- package/dist/src/core/types/file.d.ts +1 -1
- package/dist/src/ingest/file-system.js +27 -0
- package/dist/src/patterns/config.d.ts +8 -0
- package/dist/src/patterns/config.js +136 -0
- package/dist/src/patterns/detectors/cpp.d.ts +8 -0
- package/dist/src/patterns/detectors/cpp.js +243 -0
- package/dist/src/patterns/detectors/csharp.d.ts +9 -0
- package/dist/src/patterns/detectors/csharp.js +385 -0
- package/dist/src/patterns/detectors/go.d.ts +9 -0
- package/dist/src/patterns/detectors/go.js +298 -0
- package/dist/src/patterns/detectors/helpers.d.ts +3 -0
- package/dist/src/patterns/detectors/helpers.js +5 -0
- package/dist/src/patterns/detectors/jvm.d.ts +15 -0
- package/dist/src/patterns/detectors/jvm.js +537 -0
- package/dist/src/patterns/detectors/python.d.ts +1 -0
- package/dist/src/patterns/detectors/python.js +92 -5
- package/dist/src/patterns/detectors/typescript.d.ts +2 -0
- package/dist/src/patterns/detectors/typescript.js +156 -4
- package/dist/src/patterns/engine.d.ts +18 -0
- package/dist/src/patterns/engine.js +30 -0
- package/dist/src/patterns/scan-exclusions.js +20 -0
- package/dist/tests/unit/ai-enrichment/lambda-init-error.spec.d.ts +1 -0
- package/dist/tests/unit/ai-enrichment/lambda-init-error.spec.js +11 -0
- package/dist/tests/unit/ai-enrichment/platform-proxy-provider.spec.js +80 -0
- package/dist/tests/unit/analyzers/cpp/dependency-manifests.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/cpp/dependency-manifests.spec.js +66 -0
- package/dist/tests/unit/analyzers/cpp/parser.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/cpp/parser.spec.js +80 -0
- package/dist/tests/unit/analyzers/cpp/patterns.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/cpp/patterns.spec.js +141 -0
- package/dist/tests/unit/analyzers/csharp/dependency-manifests.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/csharp/dependency-manifests.spec.js +75 -0
- package/dist/tests/unit/analyzers/csharp/parser.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/csharp/parser.spec.js +118 -0
- package/dist/tests/unit/analyzers/csharp/patterns.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/csharp/patterns.spec.js +210 -0
- package/dist/tests/unit/analyzers/go/dependency-manifests.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/go/dependency-manifests.spec.js +96 -0
- package/dist/tests/unit/analyzers/go/parser.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/go/parser.spec.js +110 -0
- package/dist/tests/unit/analyzers/go/patterns.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/go/patterns.spec.js +239 -0
- package/dist/tests/unit/analyzers/jvm/dependency-manifests.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/jvm/dependency-manifests.spec.js +179 -0
- package/dist/tests/unit/analyzers/jvm/parser.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/jvm/parser.spec.js +195 -0
- package/dist/tests/unit/analyzers/jvm/patterns.spec.d.ts +1 -0
- package/dist/tests/unit/analyzers/jvm/patterns.spec.js +284 -0
- package/dist/tests/unit/analyzers/python/patterns.spec.js +169 -0
- package/dist/tests/unit/analyzers/typescript/detector.spec.js +188 -0
- package/dist/tests/unit/core/cpp-dotnet-scan.spec.d.ts +1 -0
- package/dist/tests/unit/core/cpp-dotnet-scan.spec.js +67 -0
- package/dist/tests/unit/core/cpp-dotnet-sections.spec.d.ts +1 -0
- package/dist/tests/unit/core/cpp-dotnet-sections.spec.js +46 -0
- package/dist/tests/unit/core/go-scan.spec.d.ts +1 -0
- package/dist/tests/unit/core/go-scan.spec.js +78 -0
- package/dist/tests/unit/core/graph-mapping.spec.js +75 -0
- package/dist/tests/unit/core/jvm-scan.spec.d.ts +1 -0
- package/dist/tests/unit/core/jvm-scan.spec.js +94 -0
- package/dist/tests/unit/ingest/cpp-dotnet-languages.spec.d.ts +1 -0
- package/dist/tests/unit/ingest/cpp-dotnet-languages.spec.js +56 -0
- package/dist/tests/unit/ingest/jvm-languages.spec.d.ts +1 -0
- package/dist/tests/unit/ingest/jvm-languages.spec.js +47 -0
- package/package.json +1 -1
- package/patterns/cpp.md +176 -0
- package/patterns/cpp.patterns.yaml +314 -0
- package/patterns/csharp.md +211 -0
- package/patterns/csharp.patterns.yaml +375 -0
- package/patterns/go.md +211 -0
- package/patterns/go.patterns.yaml +429 -0
- package/patterns/jvm.md +160 -0
- package/patterns/jvm.patterns.yaml +884 -0
- package/patterns/python.patterns.yaml +177 -0
- package/patterns/third-party.patterns.yaml +5 -0
- package/patterns/typescript.patterns.yaml +222 -0
|
@@ -0,0 +1,884 @@
|
|
|
1
|
+
# JVM (Java + Kotlin) pattern config. All entries share: patternId, optional
|
|
2
|
+
# confidence (default 0.8).
|
|
3
|
+
#
|
|
4
|
+
# One config serves both languages: Java and Kotlin share the JVM package
|
|
5
|
+
# namespace, the Maven/Gradle coordinate space, the Spring/Jakarta annotation
|
|
6
|
+
# vocabulary, and JDBC. Rules that are genuinely Kotlin-only (Ktor, Exposed)
|
|
7
|
+
# are gated by their import package like any other framework.
|
|
8
|
+
#
|
|
9
|
+
# Two distinct token spaces, unlike Go:
|
|
10
|
+
# `importPackages` — what appears in an `import` statement
|
|
11
|
+
# (`org.springframework.web.bind.annotation`).
|
|
12
|
+
# Matched exactly or as a package prefix, so
|
|
13
|
+
# `org.springframework.data` also covers
|
|
14
|
+
# `org.springframework.data.jpa.repository`.
|
|
15
|
+
# `packageCoordinates` — Maven/Gradle `groupId:artifactId` as written in
|
|
16
|
+
# `pom.xml` / `build.gradle`
|
|
17
|
+
# (`org.springframework.boot:spring-boot-starter-web`).
|
|
18
|
+
# Matched exactly, or by groupId prefix when the
|
|
19
|
+
# entry has no `:`.
|
|
20
|
+
# The two rarely coincide on the JVM, which is why both exist — the same
|
|
21
|
+
# split C++ needed for `packageNames` vs. header paths.
|
|
22
|
+
|
|
23
|
+
db_clients:
|
|
24
|
+
# --- JDBC drivers -------------------------------------------------------
|
|
25
|
+
# A driver on the classpath is strong evidence of the engine even when the
|
|
26
|
+
# connection itself is opened through a pool or an ORM.
|
|
27
|
+
- id: postgresql_jdbc
|
|
28
|
+
patternId: database_connection
|
|
29
|
+
databaseType: postgres
|
|
30
|
+
importPackages:
|
|
31
|
+
- org.postgresql
|
|
32
|
+
packageCoordinates:
|
|
33
|
+
- org.postgresql:postgresql
|
|
34
|
+
- org.postgresql:r2dbc-postgresql
|
|
35
|
+
confidence: 0.9
|
|
36
|
+
|
|
37
|
+
- id: mysql_jdbc
|
|
38
|
+
patternId: database_connection
|
|
39
|
+
databaseType: mysql
|
|
40
|
+
importPackages:
|
|
41
|
+
- com.mysql
|
|
42
|
+
packageCoordinates:
|
|
43
|
+
- mysql:mysql-connector-java
|
|
44
|
+
- com.mysql:mysql-connector-j
|
|
45
|
+
confidence: 0.9
|
|
46
|
+
|
|
47
|
+
- id: mariadb_jdbc
|
|
48
|
+
patternId: database_connection
|
|
49
|
+
databaseType: mariadb
|
|
50
|
+
importPackages:
|
|
51
|
+
- org.mariadb.jdbc
|
|
52
|
+
packageCoordinates:
|
|
53
|
+
- org.mariadb.jdbc:mariadb-java-client
|
|
54
|
+
confidence: 0.9
|
|
55
|
+
|
|
56
|
+
- id: sqlite_jdbc
|
|
57
|
+
patternId: database_connection
|
|
58
|
+
databaseType: sqlite
|
|
59
|
+
importPackages:
|
|
60
|
+
- org.sqlite
|
|
61
|
+
packageCoordinates:
|
|
62
|
+
- org.xerial:sqlite-jdbc
|
|
63
|
+
confidence: 0.9
|
|
64
|
+
|
|
65
|
+
- id: sqlserver_jdbc
|
|
66
|
+
patternId: database_connection
|
|
67
|
+
databaseType: mssql
|
|
68
|
+
importPackages:
|
|
69
|
+
- com.microsoft.sqlserver
|
|
70
|
+
packageCoordinates:
|
|
71
|
+
- com.microsoft.sqlserver:mssql-jdbc
|
|
72
|
+
confidence: 0.9
|
|
73
|
+
|
|
74
|
+
- id: oracle_jdbc
|
|
75
|
+
patternId: database_connection
|
|
76
|
+
databaseType: oracle
|
|
77
|
+
importPackages:
|
|
78
|
+
- oracle.jdbc
|
|
79
|
+
packageCoordinates:
|
|
80
|
+
- com.oracle.database.jdbc
|
|
81
|
+
confidence: 0.9
|
|
82
|
+
|
|
83
|
+
- id: h2_jdbc
|
|
84
|
+
patternId: database_connection
|
|
85
|
+
databaseType: h2
|
|
86
|
+
importPackages:
|
|
87
|
+
- org.h2
|
|
88
|
+
packageCoordinates:
|
|
89
|
+
- com.h2database:h2
|
|
90
|
+
confidence: 0.85
|
|
91
|
+
|
|
92
|
+
- id: clickhouse_jdbc
|
|
93
|
+
patternId: database_connection
|
|
94
|
+
databaseType: clickhouse
|
|
95
|
+
importPackages:
|
|
96
|
+
- com.clickhouse
|
|
97
|
+
- ru.yandex.clickhouse
|
|
98
|
+
packageCoordinates:
|
|
99
|
+
- com.clickhouse
|
|
100
|
+
confidence: 0.85
|
|
101
|
+
|
|
102
|
+
- id: snowflake_jdbc
|
|
103
|
+
patternId: database_connection
|
|
104
|
+
databaseType: snowflake
|
|
105
|
+
importPackages:
|
|
106
|
+
- net.snowflake.client
|
|
107
|
+
packageCoordinates:
|
|
108
|
+
- net.snowflake:snowflake-jdbc
|
|
109
|
+
confidence: 0.85
|
|
110
|
+
|
|
111
|
+
# --- Connection pools ---------------------------------------------------
|
|
112
|
+
- id: hikaricp
|
|
113
|
+
patternId: database_connection
|
|
114
|
+
databaseType: sql
|
|
115
|
+
importPackages:
|
|
116
|
+
- com.zaxxer.hikari
|
|
117
|
+
packageCoordinates:
|
|
118
|
+
- com.zaxxer:HikariCP
|
|
119
|
+
callNames:
|
|
120
|
+
- HikariConfig
|
|
121
|
+
- HikariDataSource
|
|
122
|
+
confidence: 0.8
|
|
123
|
+
|
|
124
|
+
# --- ORMs and data-access layers ---------------------------------------
|
|
125
|
+
- id: spring_data_jpa
|
|
126
|
+
patternId: database_connection
|
|
127
|
+
databaseType: sql
|
|
128
|
+
importPackages:
|
|
129
|
+
- org.springframework.data.jpa
|
|
130
|
+
- jakarta.persistence
|
|
131
|
+
- javax.persistence
|
|
132
|
+
packageCoordinates:
|
|
133
|
+
- org.springframework.boot:spring-boot-starter-data-jpa
|
|
134
|
+
- org.springframework.data:spring-data-jpa
|
|
135
|
+
annotationNames:
|
|
136
|
+
- Entity
|
|
137
|
+
- Table
|
|
138
|
+
- Repository
|
|
139
|
+
- EnableJpaRepositories
|
|
140
|
+
confidence: 0.85
|
|
141
|
+
|
|
142
|
+
- id: hibernate
|
|
143
|
+
patternId: database_connection
|
|
144
|
+
databaseType: sql
|
|
145
|
+
importPackages:
|
|
146
|
+
- org.hibernate
|
|
147
|
+
packageCoordinates:
|
|
148
|
+
- org.hibernate
|
|
149
|
+
- org.hibernate.orm
|
|
150
|
+
callNames:
|
|
151
|
+
- Persistence.createEntityManagerFactory
|
|
152
|
+
- sessionFactory.openSession
|
|
153
|
+
confidence: 0.85
|
|
154
|
+
|
|
155
|
+
- id: spring_jdbc_template
|
|
156
|
+
patternId: database_connection
|
|
157
|
+
databaseType: sql
|
|
158
|
+
importPackages:
|
|
159
|
+
- org.springframework.jdbc
|
|
160
|
+
packageCoordinates:
|
|
161
|
+
- org.springframework.boot:spring-boot-starter-jdbc
|
|
162
|
+
- org.springframework:spring-jdbc
|
|
163
|
+
callNames:
|
|
164
|
+
- JdbcTemplate
|
|
165
|
+
- NamedParameterJdbcTemplate
|
|
166
|
+
- JdbcClient.create
|
|
167
|
+
confidence: 0.85
|
|
168
|
+
|
|
169
|
+
- id: jooq
|
|
170
|
+
patternId: database_connection
|
|
171
|
+
databaseType: sql
|
|
172
|
+
importPackages:
|
|
173
|
+
- org.jooq
|
|
174
|
+
packageCoordinates:
|
|
175
|
+
- org.jooq:jooq
|
|
176
|
+
callNames:
|
|
177
|
+
- DSL.using
|
|
178
|
+
confidence: 0.85
|
|
179
|
+
|
|
180
|
+
- id: mybatis
|
|
181
|
+
patternId: database_connection
|
|
182
|
+
databaseType: sql
|
|
183
|
+
importPackages:
|
|
184
|
+
- org.apache.ibatis
|
|
185
|
+
- org.mybatis
|
|
186
|
+
packageCoordinates:
|
|
187
|
+
- org.mybatis
|
|
188
|
+
annotationNames:
|
|
189
|
+
- Mapper
|
|
190
|
+
confidence: 0.85
|
|
191
|
+
|
|
192
|
+
- id: exposed
|
|
193
|
+
patternId: database_connection
|
|
194
|
+
databaseType: sql
|
|
195
|
+
importPackages:
|
|
196
|
+
- org.jetbrains.exposed
|
|
197
|
+
packageCoordinates:
|
|
198
|
+
- org.jetbrains.exposed
|
|
199
|
+
callNames:
|
|
200
|
+
- Database.connect
|
|
201
|
+
confidence: 0.9
|
|
202
|
+
|
|
203
|
+
- id: r2dbc
|
|
204
|
+
patternId: database_connection
|
|
205
|
+
databaseType: sql
|
|
206
|
+
importPackages:
|
|
207
|
+
- io.r2dbc
|
|
208
|
+
- org.springframework.data.r2dbc
|
|
209
|
+
packageCoordinates:
|
|
210
|
+
- io.r2dbc
|
|
211
|
+
- org.springframework.boot:spring-boot-starter-data-r2dbc
|
|
212
|
+
callNames:
|
|
213
|
+
- ConnectionFactories.get
|
|
214
|
+
confidence: 0.85
|
|
215
|
+
|
|
216
|
+
# --- Non-relational -----------------------------------------------------
|
|
217
|
+
- id: mongodb_java
|
|
218
|
+
patternId: database_connection
|
|
219
|
+
databaseType: mongodb
|
|
220
|
+
importPackages:
|
|
221
|
+
- com.mongodb
|
|
222
|
+
- org.springframework.data.mongodb
|
|
223
|
+
packageCoordinates:
|
|
224
|
+
- org.mongodb
|
|
225
|
+
- org.springframework.boot:spring-boot-starter-data-mongodb
|
|
226
|
+
callNames:
|
|
227
|
+
- MongoClients.create
|
|
228
|
+
- MongoClient
|
|
229
|
+
confidence: 0.9
|
|
230
|
+
|
|
231
|
+
- id: jedis
|
|
232
|
+
patternId: database_connection
|
|
233
|
+
databaseType: redis
|
|
234
|
+
importPackages:
|
|
235
|
+
- redis.clients.jedis
|
|
236
|
+
packageCoordinates:
|
|
237
|
+
- redis.clients:jedis
|
|
238
|
+
callNames:
|
|
239
|
+
- JedisPool
|
|
240
|
+
- JedisPooled
|
|
241
|
+
- Jedis
|
|
242
|
+
confidence: 0.9
|
|
243
|
+
|
|
244
|
+
- id: lettuce
|
|
245
|
+
patternId: database_connection
|
|
246
|
+
databaseType: redis
|
|
247
|
+
importPackages:
|
|
248
|
+
- io.lettuce.core
|
|
249
|
+
packageCoordinates:
|
|
250
|
+
- io.lettuce:lettuce-core
|
|
251
|
+
callNames:
|
|
252
|
+
- RedisClient.create
|
|
253
|
+
confidence: 0.9
|
|
254
|
+
|
|
255
|
+
- id: spring_data_redis
|
|
256
|
+
patternId: database_connection
|
|
257
|
+
databaseType: redis
|
|
258
|
+
importPackages:
|
|
259
|
+
- org.springframework.data.redis
|
|
260
|
+
packageCoordinates:
|
|
261
|
+
- org.springframework.boot:spring-boot-starter-data-redis
|
|
262
|
+
callNames:
|
|
263
|
+
- RedisTemplate
|
|
264
|
+
- StringRedisTemplate
|
|
265
|
+
confidence: 0.9
|
|
266
|
+
|
|
267
|
+
- id: cassandra_java
|
|
268
|
+
patternId: database_connection
|
|
269
|
+
databaseType: cassandra
|
|
270
|
+
importPackages:
|
|
271
|
+
- com.datastax.oss.driver
|
|
272
|
+
- com.datastax.driver
|
|
273
|
+
- org.springframework.data.cassandra
|
|
274
|
+
packageCoordinates:
|
|
275
|
+
- com.datastax.oss
|
|
276
|
+
- org.springframework.boot:spring-boot-starter-data-cassandra
|
|
277
|
+
callNames:
|
|
278
|
+
- CqlSession.builder
|
|
279
|
+
confidence: 0.85
|
|
280
|
+
|
|
281
|
+
- id: elasticsearch_java
|
|
282
|
+
patternId: database_connection
|
|
283
|
+
databaseType: elasticsearch
|
|
284
|
+
importPackages:
|
|
285
|
+
- co.elastic.clients
|
|
286
|
+
- org.elasticsearch.client
|
|
287
|
+
- org.opensearch.client
|
|
288
|
+
packageCoordinates:
|
|
289
|
+
- co.elastic.clients:elasticsearch-java
|
|
290
|
+
- org.elasticsearch.client
|
|
291
|
+
confidence: 0.85
|
|
292
|
+
|
|
293
|
+
- id: dynamodb_java
|
|
294
|
+
patternId: database_connection
|
|
295
|
+
databaseType: dynamodb
|
|
296
|
+
importPackages:
|
|
297
|
+
- software.amazon.awssdk.services.dynamodb
|
|
298
|
+
- com.amazonaws.services.dynamodbv2
|
|
299
|
+
packageCoordinates:
|
|
300
|
+
- software.amazon.awssdk:dynamodb
|
|
301
|
+
- software.amazon.awssdk:dynamodb-enhanced
|
|
302
|
+
confidence: 0.85
|
|
303
|
+
|
|
304
|
+
- id: neo4j_java
|
|
305
|
+
patternId: database_connection
|
|
306
|
+
databaseType: neo4j
|
|
307
|
+
importPackages:
|
|
308
|
+
- org.neo4j.driver
|
|
309
|
+
- org.springframework.data.neo4j
|
|
310
|
+
packageCoordinates:
|
|
311
|
+
- org.neo4j.driver:neo4j-java-driver
|
|
312
|
+
callNames:
|
|
313
|
+
- GraphDatabase.driver
|
|
314
|
+
confidence: 0.85
|
|
315
|
+
|
|
316
|
+
# JVM-specific: JDBC is engine-agnostic at the API level, and the concrete
|
|
317
|
+
# engine is named in the URL sub-protocol — `jdbc:postgresql://host/db`. This
|
|
318
|
+
# is the JVM analogue of Go's `sql.Open` driver argument: without reading it,
|
|
319
|
+
# every JDBC database collapses into one generic SQL node.
|
|
320
|
+
#
|
|
321
|
+
# The same rule runs over `application.properties` / `application.yml` during
|
|
322
|
+
# manifest scanning, which is where Spring services usually declare the URL.
|
|
323
|
+
jdbc_url:
|
|
324
|
+
patternId: database_connection
|
|
325
|
+
regex: 'jdbc:([a-z0-9]+):'
|
|
326
|
+
name: jdbc
|
|
327
|
+
confidence: 0.9
|
|
328
|
+
drivers:
|
|
329
|
+
postgresql: postgres
|
|
330
|
+
postgres: postgres
|
|
331
|
+
mysql: mysql
|
|
332
|
+
mariadb: mariadb
|
|
333
|
+
sqlite: sqlite
|
|
334
|
+
sqlserver: mssql
|
|
335
|
+
jtds: mssql
|
|
336
|
+
oracle: oracle
|
|
337
|
+
h2: h2
|
|
338
|
+
hsqldb: hsqldb
|
|
339
|
+
db2: db2
|
|
340
|
+
clickhouse: clickhouse
|
|
341
|
+
snowflake: snowflake
|
|
342
|
+
redshift: redshift
|
|
343
|
+
presto: presto
|
|
344
|
+
trino: trino
|
|
345
|
+
# Not JDBC sub-protocols. Spring declares these engines as plain URIs
|
|
346
|
+
# (`spring.data.mongodb.uri=mongodb://…`), and the manifest scanner
|
|
347
|
+
# resolves them against this same table.
|
|
348
|
+
mongodb: mongodb
|
|
349
|
+
redis: redis
|
|
350
|
+
rediss: redis
|
|
351
|
+
cassandra: cassandra
|
|
352
|
+
elasticsearch: elasticsearch
|
|
353
|
+
opensearch: elasticsearch
|
|
354
|
+
neo4j: neo4j
|
|
355
|
+
bolt: neo4j
|
|
356
|
+
defaultDatabaseType: sql
|
|
357
|
+
|
|
358
|
+
auth:
|
|
359
|
+
libraries:
|
|
360
|
+
- id: spring_security
|
|
361
|
+
patternId: auth_middleware
|
|
362
|
+
importPackages:
|
|
363
|
+
- org.springframework.security
|
|
364
|
+
packageCoordinates:
|
|
365
|
+
- org.springframework.boot:spring-boot-starter-security
|
|
366
|
+
- org.springframework.security
|
|
367
|
+
callNames:
|
|
368
|
+
- SecurityFilterChain
|
|
369
|
+
- HttpSecurity
|
|
370
|
+
- AuthenticationManager
|
|
371
|
+
strategy: spring_security
|
|
372
|
+
confidence: 0.9
|
|
373
|
+
|
|
374
|
+
- id: jjwt
|
|
375
|
+
patternId: auth_middleware
|
|
376
|
+
importPackages:
|
|
377
|
+
- io.jsonwebtoken
|
|
378
|
+
packageCoordinates:
|
|
379
|
+
- io.jsonwebtoken
|
|
380
|
+
callNames:
|
|
381
|
+
- Jwts.builder
|
|
382
|
+
- Jwts.parser
|
|
383
|
+
- Jwts.parserBuilder
|
|
384
|
+
strategy: jwt
|
|
385
|
+
confidence: 0.9
|
|
386
|
+
|
|
387
|
+
- id: java_jwt
|
|
388
|
+
patternId: auth_middleware
|
|
389
|
+
importPackages:
|
|
390
|
+
- com.auth0.jwt
|
|
391
|
+
packageCoordinates:
|
|
392
|
+
- com.auth0:java-jwt
|
|
393
|
+
callNames:
|
|
394
|
+
- JWT.create
|
|
395
|
+
- JWT.require
|
|
396
|
+
- JWT.decode
|
|
397
|
+
strategy: jwt
|
|
398
|
+
confidence: 0.9
|
|
399
|
+
|
|
400
|
+
- id: nimbus_jose_jwt
|
|
401
|
+
patternId: auth_middleware
|
|
402
|
+
importPackages:
|
|
403
|
+
- com.nimbusds.jwt
|
|
404
|
+
- com.nimbusds.jose
|
|
405
|
+
packageCoordinates:
|
|
406
|
+
- com.nimbusds:nimbus-jose-jwt
|
|
407
|
+
strategy: jwt
|
|
408
|
+
confidence: 0.85
|
|
409
|
+
|
|
410
|
+
- id: spring_oauth2
|
|
411
|
+
patternId: auth_middleware
|
|
412
|
+
importPackages:
|
|
413
|
+
- org.springframework.security.oauth2
|
|
414
|
+
packageCoordinates:
|
|
415
|
+
- org.springframework.boot:spring-boot-starter-oauth2-client
|
|
416
|
+
- org.springframework.boot:spring-boot-starter-oauth2-resource-server
|
|
417
|
+
strategy: oauth2
|
|
418
|
+
confidence: 0.9
|
|
419
|
+
|
|
420
|
+
- id: keycloak
|
|
421
|
+
patternId: auth_middleware
|
|
422
|
+
importPackages:
|
|
423
|
+
- org.keycloak
|
|
424
|
+
packageCoordinates:
|
|
425
|
+
- org.keycloak
|
|
426
|
+
strategy: keycloak
|
|
427
|
+
confidence: 0.85
|
|
428
|
+
|
|
429
|
+
- id: apache_shiro
|
|
430
|
+
patternId: auth_middleware
|
|
431
|
+
importPackages:
|
|
432
|
+
- org.apache.shiro
|
|
433
|
+
packageCoordinates:
|
|
434
|
+
- org.apache.shiro
|
|
435
|
+
strategy: shiro
|
|
436
|
+
confidence: 0.85
|
|
437
|
+
|
|
438
|
+
- id: pac4j
|
|
439
|
+
patternId: auth_middleware
|
|
440
|
+
importPackages:
|
|
441
|
+
- org.pac4j
|
|
442
|
+
packageCoordinates:
|
|
443
|
+
- org.pac4j
|
|
444
|
+
strategy: pac4j
|
|
445
|
+
confidence: 0.85
|
|
446
|
+
|
|
447
|
+
- id: ktor_auth
|
|
448
|
+
patternId: auth_middleware
|
|
449
|
+
importPackages:
|
|
450
|
+
- io.ktor.server.auth
|
|
451
|
+
packageCoordinates:
|
|
452
|
+
- io.ktor:ktor-server-auth
|
|
453
|
+
strategy: ktor_auth
|
|
454
|
+
confidence: 0.9
|
|
455
|
+
|
|
456
|
+
# Deliberately broad and correspondingly low-confidence: this fires on any
|
|
457
|
+
# file containing the literal header name. Same trade-off as the Go and
|
|
458
|
+
# C++ equivalents.
|
|
459
|
+
- id: bearer_token_header
|
|
460
|
+
patternId: auth_middleware
|
|
461
|
+
contentRegexes:
|
|
462
|
+
- '"Authorization"'
|
|
463
|
+
- 'HttpHeaders\.AUTHORIZATION'
|
|
464
|
+
strategy: bearer_token
|
|
465
|
+
confidence: 0.7
|
|
466
|
+
|
|
467
|
+
annotations:
|
|
468
|
+
- id: spring_method_security
|
|
469
|
+
patternId: auth_middleware
|
|
470
|
+
annotationNames:
|
|
471
|
+
- PreAuthorize
|
|
472
|
+
- PostAuthorize
|
|
473
|
+
- Secured
|
|
474
|
+
- EnableWebSecurity
|
|
475
|
+
- EnableMethodSecurity
|
|
476
|
+
- EnableGlobalMethodSecurity
|
|
477
|
+
strategy: spring_security
|
|
478
|
+
confidence: 0.9
|
|
479
|
+
|
|
480
|
+
- id: jakarta_role_security
|
|
481
|
+
patternId: auth_middleware
|
|
482
|
+
annotationNames:
|
|
483
|
+
- RolesAllowed
|
|
484
|
+
- PermitAll
|
|
485
|
+
- DenyAll
|
|
486
|
+
strategy: jakarta_security
|
|
487
|
+
confidence: 0.85
|
|
488
|
+
|
|
489
|
+
- id: micronaut_security
|
|
490
|
+
patternId: auth_middleware
|
|
491
|
+
annotationNames:
|
|
492
|
+
- Secured
|
|
493
|
+
- Authenticated
|
|
494
|
+
strategy: micronaut_security
|
|
495
|
+
confidence: 0.85
|
|
496
|
+
|
|
497
|
+
routes:
|
|
498
|
+
frameworks:
|
|
499
|
+
# Spring MVC / WebFlux annotated controllers. The class-level
|
|
500
|
+
# @RequestMapping supplies a prefix that the method-level mapping is
|
|
501
|
+
# appended to, exactly like ASP.NET's [Route] + [HttpGet].
|
|
502
|
+
- id: spring_mvc
|
|
503
|
+
patternId: express_route
|
|
504
|
+
importPackages:
|
|
505
|
+
- org.springframework.web.bind.annotation
|
|
506
|
+
- org.springframework.stereotype
|
|
507
|
+
confidence: 0.9
|
|
508
|
+
controllerAnnotations:
|
|
509
|
+
- RestController
|
|
510
|
+
- Controller
|
|
511
|
+
controllerRouteAnnotations:
|
|
512
|
+
- RequestMapping
|
|
513
|
+
annotationRoutes:
|
|
514
|
+
- annotation: GetMapping
|
|
515
|
+
method: GET
|
|
516
|
+
- annotation: PostMapping
|
|
517
|
+
method: POST
|
|
518
|
+
- annotation: PutMapping
|
|
519
|
+
method: PUT
|
|
520
|
+
- annotation: DeleteMapping
|
|
521
|
+
method: DELETE
|
|
522
|
+
- annotation: PatchMapping
|
|
523
|
+
method: PATCH
|
|
524
|
+
# Method-level @RequestMapping carries its verb in a named argument
|
|
525
|
+
# (`method = RequestMethod.GET`); the detector reads it from the
|
|
526
|
+
# annotation text and falls back to ANY.
|
|
527
|
+
- annotation: RequestMapping
|
|
528
|
+
method: ANY
|
|
529
|
+
|
|
530
|
+
# Spring WebFlux functional routing: RouterFunctions.route().GET("/x", h).
|
|
531
|
+
- id: spring_webflux_functional
|
|
532
|
+
patternId: express_route
|
|
533
|
+
importPackages:
|
|
534
|
+
- org.springframework.web.reactive.function.server
|
|
535
|
+
confidence: 0.85
|
|
536
|
+
routeRegexes:
|
|
537
|
+
- regex: '\.(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)\s*\(\s*"([^"]+)"'
|
|
538
|
+
methodGroup: 1
|
|
539
|
+
pathGroup: 2
|
|
540
|
+
|
|
541
|
+
# JAX-RS (Jakarta REST): Jersey, RESTEasy, Quarkus. Unlike Spring, the
|
|
542
|
+
# verb and the path are separate annotations — @GET plus @Path("/{id}") —
|
|
543
|
+
# so `pathAnnotations` tells the detector where to read the sub-path from.
|
|
544
|
+
- id: jaxrs
|
|
545
|
+
patternId: express_route
|
|
546
|
+
importPackages:
|
|
547
|
+
- jakarta.ws.rs
|
|
548
|
+
- javax.ws.rs
|
|
549
|
+
confidence: 0.9
|
|
550
|
+
controllerRouteAnnotations:
|
|
551
|
+
- Path
|
|
552
|
+
pathAnnotations:
|
|
553
|
+
- Path
|
|
554
|
+
annotationRoutes:
|
|
555
|
+
- annotation: GET
|
|
556
|
+
method: GET
|
|
557
|
+
- annotation: POST
|
|
558
|
+
method: POST
|
|
559
|
+
- annotation: PUT
|
|
560
|
+
method: PUT
|
|
561
|
+
- annotation: DELETE
|
|
562
|
+
method: DELETE
|
|
563
|
+
- annotation: PATCH
|
|
564
|
+
method: PATCH
|
|
565
|
+
- annotation: HEAD
|
|
566
|
+
method: HEAD
|
|
567
|
+
- annotation: OPTIONS
|
|
568
|
+
method: OPTIONS
|
|
569
|
+
|
|
570
|
+
- id: micronaut
|
|
571
|
+
patternId: express_route
|
|
572
|
+
importPackages:
|
|
573
|
+
- io.micronaut.http.annotation
|
|
574
|
+
confidence: 0.9
|
|
575
|
+
controllerAnnotations:
|
|
576
|
+
- Controller
|
|
577
|
+
controllerRouteAnnotations:
|
|
578
|
+
- Controller
|
|
579
|
+
annotationRoutes:
|
|
580
|
+
- annotation: Get
|
|
581
|
+
method: GET
|
|
582
|
+
- annotation: Post
|
|
583
|
+
method: POST
|
|
584
|
+
- annotation: Put
|
|
585
|
+
method: PUT
|
|
586
|
+
- annotation: Delete
|
|
587
|
+
method: DELETE
|
|
588
|
+
- annotation: Patch
|
|
589
|
+
method: PATCH
|
|
590
|
+
- annotation: Head
|
|
591
|
+
method: HEAD
|
|
592
|
+
- annotation: Options
|
|
593
|
+
method: OPTIONS
|
|
594
|
+
|
|
595
|
+
# Ktor's routing DSL. The `(?:^|[^.\w])` guard keeps this off the Ktor
|
|
596
|
+
# *client*, whose calls are receiver-qualified (`client.get("https://…")`)
|
|
597
|
+
# while server routes are not (`get("/users") { … }`).
|
|
598
|
+
- id: ktor
|
|
599
|
+
patternId: express_route
|
|
600
|
+
importPackages:
|
|
601
|
+
- io.ktor.server.routing
|
|
602
|
+
- io.ktor.server.application
|
|
603
|
+
- io.ktor.routing
|
|
604
|
+
confidence: 0.9
|
|
605
|
+
routeRegexes:
|
|
606
|
+
- regex: '(?:^|[^.\w])(get|post|put|delete|patch|head|options)\s*\(\s*"([^"]+)"'
|
|
607
|
+
methodGroup: 1
|
|
608
|
+
pathGroup: 2
|
|
609
|
+
- regex: '(?:^|[^.\w])route\s*\(\s*"([^"]+)"'
|
|
610
|
+
pathGroup: 1
|
|
611
|
+
|
|
612
|
+
- id: javalin
|
|
613
|
+
patternId: express_route
|
|
614
|
+
importPackages:
|
|
615
|
+
- io.javalin
|
|
616
|
+
confidence: 0.9
|
|
617
|
+
routeRegexes:
|
|
618
|
+
- regex: '\b\w+\.(get|post|put|delete|patch|head|options)\s*\(\s*"([^"]+)"'
|
|
619
|
+
methodGroup: 1
|
|
620
|
+
pathGroup: 2
|
|
621
|
+
|
|
622
|
+
- id: vertx_web
|
|
623
|
+
patternId: express_route
|
|
624
|
+
importPackages:
|
|
625
|
+
- io.vertx.ext.web
|
|
626
|
+
confidence: 0.85
|
|
627
|
+
routeRegexes:
|
|
628
|
+
- regex: '\b\w+\.(get|post|put|delete|patch|head|options)\s*\(\s*"([^"]+)"'
|
|
629
|
+
methodGroup: 1
|
|
630
|
+
pathGroup: 2
|
|
631
|
+
- regex: '\brouter\.route\s*\(\s*"([^"]+)"'
|
|
632
|
+
pathGroup: 1
|
|
633
|
+
|
|
634
|
+
- id: spark_java
|
|
635
|
+
patternId: express_route
|
|
636
|
+
importPackages:
|
|
637
|
+
- spark.Spark
|
|
638
|
+
- spark.Service
|
|
639
|
+
confidence: 0.85
|
|
640
|
+
routeRegexes:
|
|
641
|
+
- regex: '(?:^|[^.\w])(get|post|put|delete|patch|head|options)\s*\(\s*"([^"]+)"'
|
|
642
|
+
methodGroup: 1
|
|
643
|
+
pathGroup: 2
|
|
644
|
+
|
|
645
|
+
- id: grpc_jvm
|
|
646
|
+
patternId: express_route
|
|
647
|
+
importPackages:
|
|
648
|
+
- io.grpc
|
|
649
|
+
confidence: 0.8
|
|
650
|
+
routeRegexes:
|
|
651
|
+
- regex: '\baddService\s*\(\s*new\s+([A-Za-z_]\w*)'
|
|
652
|
+
pathGroup: 1
|
|
653
|
+
defaultMethod: RPC
|
|
654
|
+
- regex: '\bextends\s+([A-Za-z_]\w*)ImplBase\b'
|
|
655
|
+
pathGroup: 1
|
|
656
|
+
defaultMethod: RPC
|
|
657
|
+
|
|
658
|
+
serverless:
|
|
659
|
+
handlers:
|
|
660
|
+
- id: aws_lambda_java
|
|
661
|
+
patternId: lambda_handler
|
|
662
|
+
importPackages:
|
|
663
|
+
- com.amazonaws.services.lambda.runtime
|
|
664
|
+
packageCoordinates:
|
|
665
|
+
- com.amazonaws:aws-lambda-java-core
|
|
666
|
+
baseTypes:
|
|
667
|
+
- RequestHandler
|
|
668
|
+
- RequestStreamHandler
|
|
669
|
+
typeNames:
|
|
670
|
+
- Context
|
|
671
|
+
confidence: 0.9
|
|
672
|
+
|
|
673
|
+
- id: azure_functions_java
|
|
674
|
+
patternId: lambda_handler
|
|
675
|
+
importPackages:
|
|
676
|
+
- com.microsoft.azure.functions
|
|
677
|
+
packageCoordinates:
|
|
678
|
+
- com.microsoft.azure.functions
|
|
679
|
+
annotationNames:
|
|
680
|
+
- FunctionName
|
|
681
|
+
confidence: 0.9
|
|
682
|
+
|
|
683
|
+
- id: gcp_functions_java
|
|
684
|
+
patternId: lambda_handler
|
|
685
|
+
importPackages:
|
|
686
|
+
- com.google.cloud.functions
|
|
687
|
+
packageCoordinates:
|
|
688
|
+
- com.google.cloud.functions:functions-framework-api
|
|
689
|
+
baseTypes:
|
|
690
|
+
- HttpFunction
|
|
691
|
+
- BackgroundFunction
|
|
692
|
+
- CloudEventsFunction
|
|
693
|
+
- RawBackgroundFunction
|
|
694
|
+
confidence: 0.9
|
|
695
|
+
|
|
696
|
+
- id: spring_cloud_function
|
|
697
|
+
patternId: lambda_handler
|
|
698
|
+
importPackages:
|
|
699
|
+
- org.springframework.cloud.function
|
|
700
|
+
packageCoordinates:
|
|
701
|
+
- org.springframework.cloud:spring-cloud-function-adapter-aws
|
|
702
|
+
- org.springframework.cloud:spring-cloud-starter-function-web
|
|
703
|
+
confidence: 0.8
|
|
704
|
+
|
|
705
|
+
env_config:
|
|
706
|
+
envVariable:
|
|
707
|
+
patternId: env_variable
|
|
708
|
+
regex: '\bSystem\.getenv\s*\(\s*"([^"]+)"'
|
|
709
|
+
confidence: 0.85
|
|
710
|
+
|
|
711
|
+
# Spring's property placeholders. @Value("${db.url}") and
|
|
712
|
+
# Environment.getProperty("db.url") are the JVM equivalent of process.env:
|
|
713
|
+
# they name a key without disclosing its value.
|
|
714
|
+
propertyKeys:
|
|
715
|
+
patternId: config_file
|
|
716
|
+
confidence: 0.85
|
|
717
|
+
regexes:
|
|
718
|
+
- '@Value\s*\(\s*"\$\{([^:}"]+)'
|
|
719
|
+
- '\bgetProperty\s*\(\s*"([^"]+)"'
|
|
720
|
+
- '@ConfigurationProperties\s*\((?:\s*prefix\s*=\s*)?"([^"]+)"'
|
|
721
|
+
- '@ConfigProperty\s*\(\s*name\s*=\s*"([^"]+)"'
|
|
722
|
+
|
|
723
|
+
configLoaders:
|
|
724
|
+
patternId: config_file
|
|
725
|
+
confidence: 0.85
|
|
726
|
+
loaders:
|
|
727
|
+
- id: dotenv_java
|
|
728
|
+
importPackages:
|
|
729
|
+
- io.github.cdimascio.dotenv
|
|
730
|
+
packageCoordinates:
|
|
731
|
+
- io.github.cdimascio:dotenv-java
|
|
732
|
+
- io.github.cdimascio:dotenv-kotlin
|
|
733
|
+
callNames:
|
|
734
|
+
- Dotenv.load
|
|
735
|
+
- Dotenv.configure
|
|
736
|
+
- id: typesafe_config
|
|
737
|
+
importPackages:
|
|
738
|
+
- com.typesafe.config
|
|
739
|
+
packageCoordinates:
|
|
740
|
+
- com.typesafe:config
|
|
741
|
+
callNames:
|
|
742
|
+
- ConfigFactory.load
|
|
743
|
+
- ConfigFactory.parseFile
|
|
744
|
+
- id: micronaut_context
|
|
745
|
+
importPackages:
|
|
746
|
+
- io.micronaut.context.annotation
|
|
747
|
+
packageCoordinates:
|
|
748
|
+
- io.micronaut:micronaut-context
|
|
749
|
+
|
|
750
|
+
configFile:
|
|
751
|
+
patternId: config_file
|
|
752
|
+
fileNameRegex: '(^|/)[a-z0-9_]*config(uration)?\.(java|kt)$'
|
|
753
|
+
name: jvm_config
|
|
754
|
+
confidence: 0.75
|
|
755
|
+
|
|
756
|
+
external_apis:
|
|
757
|
+
httpClients:
|
|
758
|
+
- id: java_net_http
|
|
759
|
+
patternId: external_api_call
|
|
760
|
+
clientName: java_net_http
|
|
761
|
+
importPackages:
|
|
762
|
+
- java.net.http
|
|
763
|
+
callNames:
|
|
764
|
+
- HttpRequest.newBuilder
|
|
765
|
+
callNameSuffixes:
|
|
766
|
+
- .uri
|
|
767
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
768
|
+
requireUrlMatch: true
|
|
769
|
+
confidence: 0.85
|
|
770
|
+
|
|
771
|
+
- id: okhttp
|
|
772
|
+
patternId: external_api_call
|
|
773
|
+
clientName: okhttp
|
|
774
|
+
importPackages:
|
|
775
|
+
- okhttp3
|
|
776
|
+
callNames:
|
|
777
|
+
- Request.Builder
|
|
778
|
+
- OkHttpClient.Builder
|
|
779
|
+
callNameSuffixes:
|
|
780
|
+
- .url
|
|
781
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
782
|
+
requireUrlMatch: true
|
|
783
|
+
confidence: 0.85
|
|
784
|
+
|
|
785
|
+
- id: retrofit
|
|
786
|
+
patternId: external_api_call
|
|
787
|
+
clientName: retrofit
|
|
788
|
+
importPackages:
|
|
789
|
+
- retrofit2
|
|
790
|
+
callNames:
|
|
791
|
+
- Retrofit.Builder
|
|
792
|
+
callNameSuffixes:
|
|
793
|
+
- .baseUrl
|
|
794
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
795
|
+
requireUrlMatch: true
|
|
796
|
+
confidence: 0.9
|
|
797
|
+
|
|
798
|
+
- id: apache_httpclient
|
|
799
|
+
patternId: external_api_call
|
|
800
|
+
clientName: apache_httpclient
|
|
801
|
+
importPackages:
|
|
802
|
+
- org.apache.http
|
|
803
|
+
- org.apache.hc
|
|
804
|
+
callNames:
|
|
805
|
+
- HttpGet
|
|
806
|
+
- HttpPost
|
|
807
|
+
- HttpPut
|
|
808
|
+
- HttpDelete
|
|
809
|
+
- HttpPatch
|
|
810
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
811
|
+
requireUrlMatch: true
|
|
812
|
+
confidence: 0.85
|
|
813
|
+
|
|
814
|
+
- id: spring_rest_template
|
|
815
|
+
patternId: external_api_call
|
|
816
|
+
clientName: spring_rest_template
|
|
817
|
+
importPackages:
|
|
818
|
+
- org.springframework.web.client
|
|
819
|
+
callNames:
|
|
820
|
+
- RestTemplate
|
|
821
|
+
callNameSuffixes:
|
|
822
|
+
- .getForObject
|
|
823
|
+
- .getForEntity
|
|
824
|
+
- .postForObject
|
|
825
|
+
- .postForEntity
|
|
826
|
+
- .exchange
|
|
827
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
828
|
+
confidence: 0.85
|
|
829
|
+
|
|
830
|
+
- id: spring_webclient
|
|
831
|
+
patternId: external_api_call
|
|
832
|
+
clientName: spring_webclient
|
|
833
|
+
importPackages:
|
|
834
|
+
- org.springframework.web.reactive.function.client
|
|
835
|
+
callNames:
|
|
836
|
+
- WebClient.create
|
|
837
|
+
callNameSuffixes:
|
|
838
|
+
- .baseUrl
|
|
839
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
840
|
+
confidence: 0.85
|
|
841
|
+
|
|
842
|
+
- id: feign
|
|
843
|
+
patternId: external_api_call
|
|
844
|
+
clientName: feign
|
|
845
|
+
importPackages:
|
|
846
|
+
- feign
|
|
847
|
+
- org.springframework.cloud.openfeign
|
|
848
|
+
callNames:
|
|
849
|
+
- Feign.builder
|
|
850
|
+
callNameSuffixes:
|
|
851
|
+
- .target
|
|
852
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
853
|
+
confidence: 0.8
|
|
854
|
+
|
|
855
|
+
# Gated on `io.ktor.client`, and required to carry a literal URL, so the
|
|
856
|
+
# Ktor server routing DSL (same verb names) cannot reach it.
|
|
857
|
+
- id: ktor_client
|
|
858
|
+
patternId: external_api_call
|
|
859
|
+
clientName: ktor_client
|
|
860
|
+
importPackages:
|
|
861
|
+
- io.ktor.client
|
|
862
|
+
callNames:
|
|
863
|
+
- HttpClient
|
|
864
|
+
callNameSuffixes:
|
|
865
|
+
- .get
|
|
866
|
+
- .post
|
|
867
|
+
- .put
|
|
868
|
+
- .delete
|
|
869
|
+
- .patch
|
|
870
|
+
urlRegex: '"(https?:\/\/[^\s"]+)"'
|
|
871
|
+
requireUrlMatch: true
|
|
872
|
+
confidence: 0.85
|
|
873
|
+
|
|
874
|
+
- id: grpc_jvm_client
|
|
875
|
+
patternId: external_api_call
|
|
876
|
+
clientName: grpc
|
|
877
|
+
importPackages:
|
|
878
|
+
- io.grpc
|
|
879
|
+
callNames:
|
|
880
|
+
- ManagedChannelBuilder.forAddress
|
|
881
|
+
- ManagedChannelBuilder.forTarget
|
|
882
|
+
- Grpc.newChannelBuilder
|
|
883
|
+
urlRegex: '"([^"\s]+)"'
|
|
884
|
+
confidence: 0.8
|