Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
with:
python-version: '3'
- name: Install OctoDNS
run: pip install 'octodns==0.9.10'
run: pip install 'octodns>=1.5.0' octodns-dnsimple octodns-cloudflare
Copy link
Member

Choose a reason for hiding this comment

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

This isn't specifying the latest octoDNS version, why? The latest is 1.13.0. Additionally this doesn't use dependency pinning (recommended by octodns) meaning there could be breaking changes in an upgrade later causing the workflow to fail.

- name: Sync w/ production DNS providers
run: ./bin/sync
env:
DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
with:
python-version: '3'
- name: Install OctoDNS
run: pip install 'octodns==0.9.10'
run: pip install 'octodns>=1.5.0' octodns-cloudflare octodns-dnsimple
Copy link
Member

Choose a reason for hiding this comment

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

This isn't specifying the latest octoDNS version, why? The latest is 1.13.0. Additionally this doesn't use dependency pinning (recommended by octodns) meaning there could be breaking changes in an upgrade later causing the workflow to fail.

- name: Do a dry run
run: ./bin/dry-run
env:
DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
16 changes: 14 additions & 2 deletions config/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,29 @@ providers:
directory: ./
enforce_order: False
dnsimple:
class: octodns.provider.dnsimple.DnsimpleProvider
class: octodns_dnsimple.DnsimpleProvider
token: env/DNSIMPLE_API_KEY
account: env/DNSIMPLE_ACCOUNT_NUMBER
delete_pcent_threshold: 1.0
cloudflare:
class: octodns_cloudflare.CloudflareProvider
token: env/CLOUDFLARE_TOKEN
# Production best practices
plan_type: pro # Cloudflare plan type (3,500 record limit)
pagerules: true # Page Rules management
min_ttl: 120 # Cloudflare minimum
# Enhanced reliability settings
retry_count: 5 # More retries for production
retry_period: 600 # 10 minute wait on rate limits
zones_per_page: 50 # API pagination
records_per_page: 100 # API pagination

zones:
hackclub.com.:
sources:
- config
targets:
- dnsimple
- cloudflare
hackclub.org.:
sources:
- config
Expand Down
73 changes: 12 additions & 61 deletions dino.icu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ dast: # by https://github.com/danielsebesta
value: 194.163.149.155
Copy link
Member

Choose a reason for hiding this comment

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

This whole file should not have been changed.


dev-email:
- type: MX
- ttl: 600
type: MX
values:
- exchange: mx1.improvmx.com.
preference: 10
Expand Down Expand Up @@ -289,13 +290,16 @@ heramb:
value: cname.vercel-dns.com.

hi: # doruk.dino.icu email address
- type: TXT
- ttl: 600
type: TXT
value: apple-domain=rkbobCmChEtkhbTS.
hk:
- type: CNAME
- ttl: 600
type: CNAME
value: vic.hackclub.app.
hkgi:
- type: CNAME
- ttl: 600
type: CNAME
value: garden.devcara.com.

icons: # yoda - https://github.com/yodalightsabr/icons-dino-icu - a CDN for @hackclub/icons
Expand Down Expand Up @@ -444,27 +448,6 @@ overflow:
type: CNAME
value: overflow.craigg.hackclub.app.

parker: # parker.dino.icu; reserved by hack club bank
- type: ALIAS
value: cname.vercel-dns.com.
- ttl: 600
type: MX
values:
- exchange: aspmx.l.google.com.
preference: 1
- exchange: alt1.aspmx.l.google.com.
preference: 5
- exchange: alt2.aspmx.l.google.com.
preference: 5
- exchange: alt3.aspmx.l.google.com.
preference: 10
- exchange: alt4.aspmx.l.google.com.
preference: 10
- ttl: 5
type: TXT
values:
- google-site-verification=XqT81Vm5K6PUs4sy90BWKQMEVPaIDAXxBPI_n773h-A
- v=spf1 include:_spf.google.com ~all
Copy link
Member Author

Choose a reason for hiding this comment

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

broken, was breaking build, no longer used per ella's message on slack: https://hackclub.slack.com/archives/C026RKHLPNJ/p1686773786994209


pay: # by Ella
ttl: 600
Expand Down Expand Up @@ -586,27 +569,7 @@ spend:
type: A
value: 76.76.21.21

spider: # spider.dino.icu; reserved by hack club bank
- type: ALIAS
value: cname.vercel-dns.com.
- ttl: 600
type: MX
values:
- exchange: aspmx.l.google.com.
preference: 1
- exchange: alt1.aspmx.l.google.com.
preference: 5
- exchange: alt2.aspmx.l.google.com.
preference: 5
- exchange: alt3.aspmx.l.google.com.
preference: 10
- exchange: alt4.aspmx.l.google.com.
preference: 10
- ttl: 5
type: TXT
values:
- google-site-verification=i1xM1TEj6jJSVo8p9s8oGmSZW2Wo2MIyxhyb007OAuA
- v=spf1 include:_spf.google.com ~all
Copy link
Member Author

Choose a reason for hiding this comment

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

broken, was breaking build, no longer used per ella's message on slack: https://hackclub.slack.com/archives/C026RKHLPNJ/p1686773786994209



social:
ttl: 600
Expand Down Expand Up @@ -670,7 +633,7 @@ vansh:

vercel:
- ttl: 600
type: ALIAS
type: CNAME
value: cname.vercel-dns.com.

vercel-a:
Expand All @@ -680,7 +643,7 @@ vercel-a:

vercel-alias:
ttl: 600
type: ALIAS
type: CNAME
value: cname.vercel-dns.com.

vercel-cname:
Expand Down Expand Up @@ -742,20 +705,8 @@ www: # redirect to bare domain
type: CNAME
value: cname.vercel-dns.com.

xn--c1h:
- ttl: 600
type: ALIAS
value: cname.vercel-dns.com.

xn--ct9h:
type: CNAME
value: b616c4f2-bfad-4b67-9c6d-ee6afc35cc0b.id.repl.co.

xn--rl8h:
type: CNAME
value: maxwofford.github.io.

Comment on lines -745 to -757
Copy link
Member

Choose a reason for hiding this comment

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

Also, why were these subdomains of dino.icu deleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

none of these seem used anymore, new versions of octodns no longer support emoji in dns

Copy link
Member Author

Choose a reason for hiding this comment

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

was breaking build on new version of octodns

yc:
ttl: 600
type: NS
value: ns.youngchief.xyz.

Expand Down
3 changes: 1 addition & 2 deletions hack.af.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
value:
exchange: mail.hack.af.
preference: 10
- type: SPF
value: v=spf1 include:mailgun.org ~all

- type: TXT
values:
- v=spf1 include:mailgun.org ~all
Expand Down
2 changes: 1 addition & 1 deletion hack.club.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ athena:
- type: CNAME
value: a.selfhosted.hackclub.com.
hack.club:
- type: ALIAS
- type: CNAME
value: cname.vercel-dns.com.
l:
- type: CNAME
Expand Down
Loading