
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
zk_service is a small library which provides a service registry for Zookeeper.
This library provides registration to zookeeper through a mixin.
This connection can be set by calling,
For example:
class SomeServer
include ZkService::Publisher
def intialize
zk_service_Details( 'localhost', '2181', 'superservice' )
zk_publish("/some/service/path") #Creates an ephemeral node
#.....
end
def close
#.....
zk_unpublish #explicitly removes the ephemeral node
end
Upon con requiring a connection to a specific service, a client will consult Zookeeper for the child znodes under '/envname/services/service_name'. These nodes will contain connection details.
For example:
class SuperServiceVendor < ZkService::Vendor
def initialize(host, port)
super(host, port)
end
end
Upon initialization, a child connection can be obtained by:
child_connection = SuperServiceVendorInstance.vend('superservice1')
Connection details can be obtained by:
data = SuperServiceVendorInstance.get_data(child_connection)
*Need to check for the existence of a Zookeeper ENV and grab the hostname and port number.
FAQs
Unknown package
We found that zk_service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.