Skip to content
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

data restriction and attribute masking #528

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,22 @@ paths:
- Unauthorized - `token` invalid/expired
- Unauthorized - `clientId` & `clientSecret` invalid/not match

410:
content:
application/json:
schema:
"$ref": "#/components/schemas/expiredRequest"
description: |-
- Expired

429:
content:
application/json:
schema:
"$ref": "#/components/schemas/tooManyRequest"
description: |-
- Limit Exceeded

/consumer/audit:
get:
tags:
Expand Down Expand Up @@ -4020,6 +4036,33 @@ components:
}
]

expiredRequest:
title: expiredRequest
properties:
type:
type: string
title:
type: string
detail:
type: string
example:
type: urn:dx:rs:UrlExpired
title: Gone
detail: The requested url/resource is expired and no longer available

tooManyRequest:
title: tooManyRequest
properties:
type:
type: string
title:
type: string
detail:
type: string
example:
type: urn:dx:rs:requestLimitExceeded
title: Too Many Requests
detail: Data usage limits exceeded

standardInvalidTokenErrorResponseAllQueueAndExcahnge:
title: standardInvalidTokenErrorResponse
Expand Down
265 changes: 133 additions & 132 deletions example-configs/configs/config-dev.json
Original file line number Diff line number Diff line change
@@ -1,135 +1,136 @@
{
"version": "1.0",
"zookeepers": [
"zookeeper"
],
"clusterId": "iudx-rs-cluster",
"commonConfig" : {
"dxApiBasePath" : "/ngsi-ld/v1",
"dxCatalogueBasePath": "/iudx/cat/v1",
"dxAuthBasePath": "/auth/v1"
"version": "1.0",
"zookeepers": [
"zookeeper"
],
"clusterId": "iudx-rs-cluster",
"commonConfig": {
"dxApiBasePath": "/ngsi-ld/v1",
"dxCatalogueBasePath": "/iudx/cat/v1",
"dxAuthBasePath": "/auth/v1"
},
"modules": [
{
"id": "iudx.resource.server.database.archives.DatabaseVerticle",
"isWorkerVerticle": false,
"tenantPrefix": "iudx",
"verticleInstances": 8,
"databaseIP": "",
"databasePort": 24034,
"dbUser": "",
"dbPassword": "",
"timeLimit": ""
},
"modules": [
{
"id": "iudx.resource.server.database.archives.DatabaseVerticle",
"isWorkerVerticle":false,
"tenantPrefix": "iudx",
"verticleInstances": 8,
"databaseIP": "",
"databasePort": 24034,
"dbUser": "",
"dbPassword": "",
"timeLimit": ""
},
{
"id": "iudx.resource.server.authenticator.AuthenticationVerticle",
"isWorkerVerticle":false,
"verticleInstances": 1,
"audience": "rs.iudx.io",
"authServerHost": "",
"catServerHost": "",
"catServerPort": 443,
"jwtIgnoreExpiry": true,
"enableLimits": false

},
{
"id": "iudx.resource.server.databroker.DataBrokerVerticle",
"isWorkerVerticle":false,
"verticleInstances": 1,
"dataBrokerIP": "",
"dataBrokerPort": 29042,

"prodVhost":"",
"internalVhost": "",
"externalVhost":"",

"dataBrokerUserName": "",
"dataBrokerPassword": "",
"dataBrokerManagementPort": 30042,
"connectionTimeout": 6000,
"requestedHeartbeat": 60,
"handshakeTimeout": 6000,
"requestedChannelMax": 5,
"networkRecoveryInterval": 500,
"automaticRecoveryEnabled": "true",
"postgresDatabaseIP": "",
"postgresDatabasePort": 5432,
"postgresDatabaseName": "",
"postgresDatabaseUserName": "",
"postgresDatabasePassword": "",
"postgrespoolSize": 25,

"brokerAmqpIp":"",
"brokerAmqpPort":1234
},
{
"id": "iudx.resource.server.apiserver.ApiServerVerticle",
"isWorkerVerticle":false,
"ssl": true,
"keystore": "configs/keystore.jks",
"keystorePassword": "",
"httpPort": 8443,
"verticleInstances": 8,
"catServerHost": "",
"catServerPort": 443
},
{
"id": "iudx.resource.server.database.latest.LatestVerticle",
"isWorkerVerticle":false,
"tenantPrefix": "iudx",
"verticleInstances": 2,
"redisMode": "",
"redisUsername": "",
"redisPassword": "",
"redisMaxWaitingHandlers": 1024,
"redisHost":"",
"redisPort": 1234

},
{
"id": "iudx.resource.server.metering.MeteringVerticle",
"isWorkerVerticle":false,
"verticleInstances": 1
},
{
"id":"iudx.resource.server.database.postgres.PostgresVerticle",
"isWorkerVerticle":false,
"verticleInstances": 1,
"databaseIp": "localhost",
"databasePort": 5432,
"databaseName": "",
"databaseUserName": "",
"databasePassword": "",
"poolSize": 25

},
{
"id": "iudx.resource.server.cache.CacheVerticle",
"isWorkerVerticle":false,
"catServerHost": "cat-api",
"catServerPort": 123,
"verticleInstances": 1
},
{
"id": "iudx.resource.server.database.async.AsyncVerticle",
"isWorkerVerticle":true,
"tenantPrefix": "iudx",
"threadPoolName":"async-query-pool",
"threadPoolSize":20,
"verticleInstances": 20,
"databaseIP": "",
"databasePort":998 ,
"dbUser": "",
"dbPassword": "",
"timeLimit": "",
"filePath": "/home/kailash/Downloads/",
"bucketName": ""
},
{
"id": "iudx.resource.server.encryption.EncryptionVerticle",
"isWorkerVerticle":false,
"verticleInstances": 1
}
]
{
"id": "iudx.resource.server.authenticator.AuthenticationVerticle",
"isWorkerVerticle": false,
"verticleInstances": 1,
"audience": "rs.iudx.io",
"authServerHost": "",
"jwtIgnoreExpiry": true,
"enableLimits": false
},
{
"id": "iudx.resource.server.databroker.DataBrokerVerticle",
"isWorkerVerticle": false,
"verticleInstances": 1,
"dataBrokerIP": "",
"dataBrokerPort": 29042,
"prodVhost": "",
"internalVhost": "",
"externalVhost": "",
"dataBrokerUserName": "",
"dataBrokerPassword": "",
"dataBrokerManagementPort": 30042,
"connectionTimeout": 6000,
"requestedHeartbeat": 60,
"handshakeTimeout": 6000,
"requestedChannelMax": 5,
"networkRecoveryInterval": 500,
"automaticRecoveryEnabled": "true",
"postgresDatabaseIP": "",
"postgresDatabasePort": 5432,
"postgresDatabaseName": "",
"postgresDatabaseUserName": "",
"postgresDatabasePassword": "",
"postgrespoolSize": 25,
"brokerAmqpIp": "",
"brokerAmqpPort": 1234
},
{
"id": "iudx.resource.server.apiserver.ApiServerVerticle",
"isWorkerVerticle": false,
"ssl": true,
"keystore": "configs/keystore.jks",
"keystorePassword": "",
"httpPort": 8443,
"verticleInstances": 8,
"catServerHost": "",
"catServerPort": 443
},
{
"id": "iudx.resource.server.database.latest.LatestVerticle",
"isWorkerVerticle": false,
"tenantPrefix": "iudx",
"verticleInstances": 2,
"redisMode": "",
"redisUsername": "",
"redisPassword": "",
"redisMaxWaitingHandlers": 1024,
"redisHost": "",
"redisPort": 1234
},
{
"id": "iudx.resource.server.metering.MeteringVerticle",
"isWorkerVerticle": false,
"verticleInstances": 1
},
{
"id": "iudx.resource.server.database.postgres.PostgresVerticle",
"isWorkerVerticle": false,
"verticleInstances": 1,
"databaseIp": "localhost",
"databasePort": 5432,
"databaseName": "",
"databaseUserName": "",
"databasePassword": "",
"poolSize": 25
},
{
"id": "iudx.resource.server.cache.CacheVerticle",
"isWorkerVerticle": false,
"catServerHost": "cat-api",
"catServerPort": 123,
"verticleInstances": 1
},
{
"id": "iudx.resource.server.database.async.AsyncVerticle",
"isWorkerVerticle": true,
"tenantPrefix": "iudx",
"threadPoolName": "async-query-pool",
"threadPoolSize": 20,
"verticleInstances": 20,
"databaseIP": "",
"databasePort": 998,
"dbUser": "",
"dbPassword": "",
"timeLimit": "",
"filePath": "/home/kailash/Downloads/",
"bucketName": ""
},
{
"id": "iudx.resource.server.encryption.EncryptionVerticle",
"isWorkerVerticle": false,
"verticleInstances": 1
},
{
"id": "iudx.resource.server.database.redis.RedisVerticle",
"isWorkerVerticle": false,
"redisUsername": "",
"redisPassword": "",
"redisHost": "",
"redisPort": 1234,
"verticleInstances": 1
}
]
}
Loading