
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@neoskop/ethereal-secrets-middleware
Advanced tools
An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with (the so called local mode) or to store encrypted data for later retrieval (remote mode). The keys and the cipher texts are stored in a Redis DB.
An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with (the so called local mode) or to store encrypted data for later retrieval (remote mode). The keys and the cipher texts are stored in a Redis DB. Each entry in the database is assigned a time-to-live thus making the secretes ethereal.
let app = express();
app.use('/secrets', etherealSecrets({
local: {
ttl: 15 * 60,
cookie: {
secret: 'icanhazcheezburger?'
}
},
redis: {
host: 'localhost'
}
}));
If a client now issues GET /secrets
the API will return JSON in the
form of:
{
"key": "<the key>"
}
Along with a cookie containing a session ID. On subsequent requests the same key is returned as long as the session is valid and the same cookie is sent with the request.
let app = express();
app.use('/secrets', etherealSecrets({
remote: {
defaultTtl: 24 * 60 * 60
},
redis: {
host: 'localhost'
}
}));
If a client issues POST /secrets
with arbitrary data as post body
parameter data
, the API will return status code 201 and JSON in the
form of:
{
"key": "<the key>"
}
If a client now accesses GET /secrets/<the key>
the API will return
JSON in the form of:
{
"data": "<the data>"
}
FAQs
An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with (the so called local mode) or to store encrypted data for later retrieval (remote mode). The keys and the cipher texts are stored in a Redis DB.
The npm package @neoskop/ethereal-secrets-middleware receives a total of 130 weekly downloads. As such, @neoskop/ethereal-secrets-middleware popularity was classified as not popular.
We found that @neoskop/ethereal-secrets-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.