Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@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
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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.