-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#OBS-I142: Connector list api swagger doc and postman collection #218
#OBS-I142: Connector list api swagger doc and postman collection #218
Conversation
api-service/src/configs/Config.ts
Outdated
"masterdata_processor_job_manager_url": process.env.masterdata_processor_job_manager_url || "http://localhost:8081" | ||
}, | ||
"encryption_config": { | ||
"encryption_key": process.env.encryption_key || "strong_encryption_key_to_encrypt", |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
key
const getDatasetTransformations = (configs: Array<Record<string, any>>): Array<Record<string, any>> => { | ||
|
||
if (configs) { | ||
return _.uniqBy(configs, "field_key") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
} | ||
|
||
const mergeTransformationsConfig = (currentConfigs: any, newConfigs: any) => { | ||
const removeConfigs = _.map(_.filter(newConfigs, {action: "remove"}), "value.field_key") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
|
||
const mergeTransformationsConfig = (currentConfigs: any, newConfigs: any) => { | ||
const removeConfigs = _.map(_.filter(newConfigs, {action: "remove"}), "value.field_key") | ||
const addConfigs = _.map(_.filter(newConfigs, {action: "upsert"}), "value") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
|
||
const mergeDenormConfig = (currentConfig: any, newConfig: any) => { | ||
|
||
const removeConfigs = _.map(_.filter(newConfig.denorm_fields, {action: "remove"}), "value.denorm_out_field") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
const mergeConnectorsConfig = (currConfigs: any, newConfigs: any) => { | ||
|
||
const removeConfigs = _.map(_.filter(newConfigs, {action: "remove"}), "value.connector_id") | ||
const addConfigs = _.map(_.filter(newConfigs, {action: "upsert"}), "value") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
|
||
const mergeTags = (currentTags: any, newConfigs: any) => { | ||
|
||
const tagsToRemove = _.map(_.filter(newConfigs, {action: "remove"}), "value") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
const mergeTags = (currentTags: any, newConfigs: any) => { | ||
|
||
const tagsToRemove = _.map(_.filter(newConfigs, {action: "remove"}), "value") | ||
const tagsToAdd = _.map(_.filter(newConfigs, {action: "upsert"}), "value") |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
export class SchemaInference { | ||
|
||
public inferSchema(sample: any) { | ||
const schema = _.map(sample, (value): any => this.validateEpoch(inferSchema(value).toJSONSchema({ includeSchema: true }), value, "properties")) |
Check failure
Code scanning / CodeQL
Loop bound injection High
user-provided value
mergeSchema(schema: Map<string, any>[]): any { | ||
try { | ||
let data = {}; | ||
_.map(schema, (item: any) => { |
Check failure
Code scanning / CodeQL
Loop bound injection High
No description provided.