Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Enables the processing of alerts by AMPEL.
The central class of this repository, ampel.alert.AlertConsumer
,
is capable of loading, filtering and "ingesting" these alerts.
The AlertConsumer operates on the first three tiers of AMPEL: T0, T1 and T2.
Performed by subclasses of ampel.abstract.AbsAlertSupplier
.
Concrete implementation examples: ampel.ztf.alert.ZiAlertSupplier
Actions break-down:
AmpelAlert
or PhotoAlert
Purpose: having a common format that the AlertConsumer
and alert filters understand. A PhotoAlert
typically contains two distinct flat sequences, one for photopoints and one for upperlimits. The associated object ID, such as the ZTF name, is converted into nummerical ampel IDs. This is necessary for all alerts (rejected one as well) since "autocomplete" is based on true Ampel IDs.Alerts filtering is performed per channel, by subclasses of ampel.abstract.AbsAlertFilter
.
An AlertConsumer
instance can handle multiple filters.
Alert filters methods provided by user units are called by the class FilterBlock
,
that handles associated operations (what happens to rejected alerts ? what about auto-complete, etc...)
FilterBlock
instances are themselves embedded in FilterBlocksHandler
Filters can return:
False
or None
to reject an alert.True
to accept the alert and create all t1/t2 documents defined in the alert processor directiveint
number to accept the alert and create only the t1/t2 documents associated with this group id (as defined in the alert processor directive)If any channel accepts a given alert, DB updates need to occur.
v0.7 brought many updates regarding how ingestion happens.
Class: ampel.alert.ChainedIngestionHandler
, ampel.abstract.AbsDocIngester
More details later
Nesting is chaining
DataPoint
Alerts that pass any T0 filter are further shaped in order to fullfill
some requirements for DB storage and easy later retrieval.
Among other things, individual datapoints can be tagged during this step.
For ZTF, upper limits do not feature a unique ID, so we have to build our own.
Each datapoint is shaped into a ampel.content.DataPoint
structure.
Implementation example: ampel.ztf.ingest.ZiDataPointShaper
Optimize the number of created documents
Create and upserts documents into the DB
FAQs
Alert support for the Ampel system
We found that ampel-alerts demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.