Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@croudtech/crn-url-remapper
Advanced tools
Install the scoped package via the command line
via Yarn
yarn add @croudtech/cc-v3-base
via NPM
npm install @croudtech/cc-v3-base
These methods depend on valid SYSTEM_ID
, INTERNAL_ROUTING_FORMAT
and SERVICE_MAP
variables being available in the environment.
publicUrlFromCrn
Builds a public url from a CRN string
Usage: publicUrlFromCrn(crnString)
CRN
croud-system-id:workflow-service:tasks:0c6b08f8-ed05-47ea-93a4-0f171fa9effb
URL
https://workflow-service.croudcontrol.com/tasks/0c6b08f8-ed05-47ea-93a4-0f171fa9effb
internalUrlFromCrn
Builds an internal kubernetes url from a CRN string (the path structure is definable in INTERNAL_ROUTING_FORMAT
).
Usage: internalUrlFromCrn(crnString)
croud-system-id:workflow-service:tasks:0c6b08f8-ed05-47ea-93a4-0f171fa9effb
URL
http://workflow-service-django.v3-staging.svc.cluster.local/tasks/0c6b08f8-ed05-47ea-93a4-0f171fa9effb
createCrn
Creates a CRN using the SYSTEM_ID
defined in the env and the following object structure.
Usage: createCrn(entityObject)
Object
[
{
entity: "files",
id: 12345
}
]
this will output a CRN ID:
croud-system-id:workflow-service:files:12345
multiple objects can be provided to specify nesting:
[
{
entity: "tasks",
id: "0c6b08f8-ed05-47ea-93a4-0f171fa9effb"
},
{
entity: "files",
id: 12345
}
]
croud-system-id:workflow-service:tasks:0c6b08f8-ed05-47ea-93a4-0f171fa9effb:files:12345
this of course, can in turn be converted to URLs using the methods described earlier.
appendEntity
This will add a systemId
, entityId
and public link to an entity. This method can take three arguments
id
propertyUsage: appendEntity(entity, entityType, parentEntities)
FAQs
Module to remap between CRNs to URLs
The npm package @croudtech/crn-url-remapper receives a total of 7 weekly downloads. As such, @croudtech/crn-url-remapper popularity was classified as not popular.
We found that @croudtech/crn-url-remapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.