Skip to content

Conversation

eshryane
Copy link
Member

@eshryane eshryane commented Oct 7, 2025

Following discussion on the Database Working Group [1], implement the conditional attribute requirement.

A conditional attribute may be mandatory or optional, depending on database business rules [2].

Related to RIPE-NCC/whois#1881

[1] https://mailman.ripe.net/archives/list/[email protected]/thread/DN3NRUOWEHHGVZUL7WLEGSEVKOIZVAV7/
[2] https://docs.db.ripe.net/Database-Support/Database-Business-Rules

@eshryane
Copy link
Member Author

eshryane commented Oct 8, 2025

Wait for next Whois release before deploying (needs to be aligned with code changes)


**The RIPE Database contains objects formatted according to the Routing Policy Specification Language (RPSL), which has a set of syntax rules you have to comply with when creating, updating or deleting objects. In addition, the RIPE NCC enforces certain business rules to ensure data integrity and registry accuracy. This document gives an overview of all current business rules.**

The object template lists attributes with a conditional requirement, which will be mandatory ot optional depending on the Database business rules.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo:
will be mandatory or optional not op

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we consider to add a reference to businessRules interface in GitHub repository?

@MiguelAHM
Copy link
Contributor

approve with minor comments


| **Applies To Object Type** | **On Action** | **Business Rule** |
|--------------------------------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **all** | Create | An object cannot be created if it already exists. The creation will fail if another object of the same type and with the same primary key is already present in the RIPE Database. |
Copy link
Contributor

@MiguelAHM MiguelAHM Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a new rule for Geofeed or prefixlen?
Saying that if the geofeed/prefixlen is already in the remark it is not allowed the creation?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that they shouldn't be "conditional" because you still can create a geofeed/prefixlen with different value than the remark and still be OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants