[PR #4] [MERGED] Implement possibility to provide a list of CIDR ranges to limit update request origins #234

Closed
opened 2026-03-13 16:12:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/acme-dns/acme-dns/pull/4
Author: @joohoi
Created: 12/2/2016
Status: Merged
Merged: 12/4/2016
Merged by: @joohoi

Base: masterHead: cidr-range


📝 Commits (10+)

  • c3ac7a2 DB code for CIDR handling
  • 5f68d84 Removed register GET request in favor of POST, and did required HTTP api changes
  • 8c99346 Remove old commented out code
  • bf9eaf2 Added config option to check for a header value for clinet IP
  • 8b3d3f8 Merge remote-tracking branch 'origin/master' into cidr-range
  • cb050c2 Modified returned JSON structure
  • 8d0b082 Readme changes
  • ad4decb Added new video with the new API
  • 7510368 Comma tuning and added ipv6 example to JSON structure.
  • 8ddb845 Added IPv6 testcases

📊 Changes

15 files changed (+369 additions, -87 deletions)

View changed files

📝 README.md (+34 -15)
acmetxt.go (+78 -0)
📝 api.go (+36 -19)
📝 api_test.go (+90 -6)
📝 config.cfg (+4 -0)
📝 db.go (+21 -5)
📝 db_test.go (+37 -10)
📝 dns_test.go (+1 -1)
📝 main.go (+0 -1)
📝 main_test.go (+2 -0)
📝 types.go (+3 -16)
📝 util.go (+15 -13)
📝 util_test.go (+24 -0)
📝 validation.go (+2 -1)
📝 validation_test.go (+22 -0)

📄 Description

  • Added new JSON value for registration POST payload to request and response.
  • Removed registration GET endpoint.
  • Added new configuration options to define if a header value should be used for the user IP address data (for example X-Forwarded-For, if using reverse proxy)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/acme-dns/acme-dns/pull/4 **Author:** [@joohoi](https://github.com/joohoi) **Created:** 12/2/2016 **Status:** ✅ Merged **Merged:** 12/4/2016 **Merged by:** [@joohoi](https://github.com/joohoi) **Base:** `master` ← **Head:** `cidr-range` --- ### 📝 Commits (10+) - [`c3ac7a2`](https://github.com/acme-dns/acme-dns/commit/c3ac7a211ce81a9582666fad5dbbc190685d08b1) DB code for CIDR handling - [`5f68d84`](https://github.com/acme-dns/acme-dns/commit/5f68d84ca585aed72937c067d83f3b7526a35647) Removed register GET request in favor of POST, and did required HTTP api changes - [`8c99346`](https://github.com/acme-dns/acme-dns/commit/8c99346b01d429ab34955b874c8ab4dbd6e0925b) Remove old commented out code - [`bf9eaf2`](https://github.com/acme-dns/acme-dns/commit/bf9eaf2f32ccf3a81cdb3ea0ade683bd786844b6) Added config option to check for a header value for clinet IP - [`8b3d3f8`](https://github.com/acme-dns/acme-dns/commit/8b3d3f809f55522dfae9940e274a7c64a6e1559b) Merge remote-tracking branch 'origin/master' into cidr-range - [`cb050c2`](https://github.com/acme-dns/acme-dns/commit/cb050c2c92892f138e79d328c1c5753a7e682927) Modified returned JSON structure - [`8d0b082`](https://github.com/acme-dns/acme-dns/commit/8d0b08229d7dfe8aeecc78eee219b1beb41bf2dc) Readme changes - [`ad4decb`](https://github.com/acme-dns/acme-dns/commit/ad4decb0bb73a9cafb6b5c02d4a72aeadeee5ebe) Added new video with the new API - [`7510368`](https://github.com/acme-dns/acme-dns/commit/7510368a46c74c7ff0b157a1fde66606b898f44f) Comma tuning and added ipv6 example to JSON structure. - [`8ddb845`](https://github.com/acme-dns/acme-dns/commit/8ddb845ca5fb8a5414192f2960a955dcb9217b33) Added IPv6 testcases ### 📊 Changes **15 files changed** (+369 additions, -87 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+34 -15) ➕ `acmetxt.go` (+78 -0) 📝 `api.go` (+36 -19) 📝 `api_test.go` (+90 -6) 📝 `config.cfg` (+4 -0) 📝 `db.go` (+21 -5) 📝 `db_test.go` (+37 -10) 📝 `dns_test.go` (+1 -1) 📝 `main.go` (+0 -1) 📝 `main_test.go` (+2 -0) 📝 `types.go` (+3 -16) 📝 `util.go` (+15 -13) 📝 `util_test.go` (+24 -0) 📝 `validation.go` (+2 -1) 📝 `validation_test.go` (+22 -0) </details> ### 📄 Description - Added new JSON value for registration POST payload to request and response. - Removed registration GET endpoint. - Added new configuration options to define if a header value should be used for the user IP address data (for example X-Forwarded-For, if using reverse proxy) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-13 16:12:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#234
No description provided.