Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@nclabs/rpc-config
Advanced tools
reescrever...
Microsserviço conector de serviços Rest -> G5 (SOAP) para ser uilizado em aplicações NestJS.
# ######################################################################### #
# NATS #
# ######################################################################### #
NATS_HOST=cassandra-nats
NATS_PORT=4223
#---------------------------------------------------------------------------------------#
# SENIOR #
#---------------------------------------------------------------------------------------#
G5_BASE_URL=https://<server>:<port>/g5-senior-services/
version: '3.3'
services:
<your_G5_SENIOR_SERVICES_NAME>:
image: ncinfo/nestjs-g5-senior-services:tagname
container_name: <your_container_name>
env_file:
- <your_env_file>
environment:
G5_SENIOR_SERVICES_NAME: g5-senior-services ## mesmo nome deve ser indicado no descritor de serviços do api-gateway
restart: unless-stopped
networks:
- <your_network>
networks:
<your_network>:
# external: true
driver: bridge
Para autenticar no Senior G5 são utilizados os parâmetros username
, password
e encryption
que devem ser enviados como headers da chamada.
Implementar no gateway o tratamento das credenciais para as requisições REST.
GET <api_url>/<api_base_path>/g5-senior-services/:module/:webservice/:port
GET <api_url>/<api_base_path>/g5-senior-services/:module/:webservice/:port?param1=val¶m2=val
POST <api_url>/<api_base_path>/g5-senior-services/:module/:webservice/:port
body {
param1: "value",
param2: "value",
param3: {
detail1: value,
...
}
}
const headers = nats.headers();
headers.set('username', '<usuario-G5>');
headers.set('password', '<senha-G5>');
headers.set('encryption', '<tipo-criptografia>'); // 1, 2 ou 3
const payload = {
module: "module",
webservice: "webservice",
port: "port",
parameters: {
params1: value,
params2: value,
param3: {
detail1: value,
...
}
}
}
const record = new NatsRecordBuilder(payload)
.setHeaders(headers)
.build();
return this.client.send("g5-senior-services.exec", record);
FAQs
Utilitário NestJS para configuração de rotas e cache em microserviços. Utilido especificamente para projetos nclabs
The npm package @nclabs/rpc-config receives a total of 0 weekly downloads. As such, @nclabs/rpc-config popularity was classified as not popular.
We found that @nclabs/rpc-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.