HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- tags: cofacts, meeting note GA: UA-98468513-3 --- 20240603 會議記錄 ===== :::info - [所有會議記錄](https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/) - NPO hub 出席: bil, mrorz, nonumpa - 線上出席:4000 - https://gather.town/app/z3x18KQFgZCX8MeZ/cofacts ::: ## 小聚檢討 小松果:https://g0v.hackmd.io/9yeDnDJqQTe7CklA7pwuEA - 椅子架不能放超過數量的椅子 - 一邊 8 張,架子只能放 16 張 - **剩下的靠牆** - 杯子洗好可以放外面 - 桌椅擺放方式: - 見小松果照片 - 桌子 3x3、平行於長邊 - 一個桌子放 4 人,9x4=36 椅子 - 直接用 Airplay 很順 - 一開始請大家連到 Cofacts,所以場地 wifi 很順 - 不知道為啥變慢,以前應該可以撐比較多人 - 額度也沒爆 - 上限 36 人,報名 35 人,事前有寄信不能來的 3~4 人 - 實際出席:最多 17 人 + 工作人員 - 只有三條延長線,但要電的人會自己找邊邊坐,中間的人不插電但仍可參與 ## RightsCon https://docs.google.com/document/d/1ed8_p90gjxEp12Ce6PqjWh2FCVT0Pd-rkzPY5eBCVHk/edit ## DDoS 紀錄 ### 6/1 ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_9c33c75e95cccf15066192fdf647e5c7.png) https://drive.google.com/file/d/184sPI3OpZWuQf3KSfOetp0eL10W9WAJG/view?usp=drive_link - 16:17 ~ 16:40 攻擊 /article/2t9fyk7wka3e4 觸發 HTTP requests from known botnet (signature #1) - 小聚期間,無人回報問題 XD - 16:18 monitor 有回報 site 短暫 520 - 17:54 ~ 17:57 針對 /article/2cawqaqh128pl 攻擊 - 17:55 monitor 回報 site 短暫 520 - 18:01 ~ 18:12 針對 /article/2cawqaqh128pl 攻擊兩波 - 18:20 好像有一波隱形攻擊,僅部分被 Cloudflare 辨識,彈導致倒站 - https://drive.google.com/file/d/1ZziuFMJQ_xah2kJL_MygF5qBG-Kuo-0P/view?usp=drive_link - Traffic https://drive.google.com/file/d/1BOKc_1BeozePrPQpUtmm0VOiYpGDCpNy/view?usp=drive_link - 都不是在台灣 [name=nonumpa] - 一台電腦同時打好幾次 [name=nonumpa] - https://drive.google.com/file/d/1O9gLbOYY3Pov8LGQ13-wtP1gqXs1fbJL/view?usp=drive_link - 一次 web request 會觸發好多 API [name=nonumpa] - 可能是用真的瀏覽器打的 [name=mrorz] - 18:27 API, LINE bot, site down - 19:10 Recover by manually restart web server ### 6/2 ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_933c2fc3b4f6ab6c8755430c15400a30.png) https://drive.google.com/file/d/1JTSzIpO_f79fd1wUJhyfaJiS-x94wN8J/view 都是攻擊 `/article/2cawqaqh128pl` - 18:32 ~ 18:38:觸發 Cloudflare HTTP DDoS - known bot net (signature #1). - 18:59 ~ 19:03:觸發 Cloudflare HTTP DDoS - HTTP requests with unusual HTTP headers or URI path (signature #55) - 19:03 ~ 19:18:觸發 HTTP requests from known botnet (signature #1). - 19:04:API, chatbot, website 下線 - 19:30 補上 Cloudflare rule [name=nonumpa]++ - 20:04 發現網站已好,但 LINE bot 需要手動開啟 ### Mitigation 把 site-zh 也改用 CloudRun? - 不會因為 site 吃滿 linode 記憶體而倒站 - 用 Cloudrun 內建 domain mapping - 據說有 [latency issue](https://cloud.google.com/run/docs/issues#latency-domains) - 但 site-ja 好像還好? - 切換 DNS 需要數小時 - 放一週看 $$ 花多少 新增 country rule? rate limit? - 通過 waf 的 case https://drive.google.com/file/d/1ruhBxCAdz_jF30p3FFdp1cTLXsrmdxLJ/view?usp=sharing [name=nonumpa] - 攻擊者 1 秒打 10 次 - 我們開 10 秒打 10 次,1/10 速率 [name=mrorz] - ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_8a8fcc8d0b96a5f21f58f8dbe4dbf057.png) - 手動測試,沒有觸發 - 小聚的時候可能觸發,但也就是 managed challenge 而已 - 國家的部分 [name=nonumpa] - cofacts.tw/(article|reply)/ - Managed challenge - 排除 known bot 不然 SEO 會掉、Social media preview 會壞 - 排除 ASN38631 LINE corporation (LINE 的 preview) ## CCPRIP ### [Infra] Migrate to Cloudrun > https://g0v.hackmd.io/BRsJOevWSbyUMBSZEVVWrA#Phase-1-rumors-site-amp-rumors-line-bot-%E4%B8%8A-Google-cloud-run - 202309: Staging & Production EN, JA sites migrated to Cloudrun https://g0v.hackmd.io/ulv1SGtBRWmhxnE9Lpv9TQ#Infra-Migrate-to-Cloudrun #### Cost analysis ##### By SKU ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_8907f9649db946c337c1905e4138057f.png) - 80% of cost from CPU allocation time - 10% of cost from outbounding traffic ##### By component ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_9bfaaa4103da7e63937f5629f401e52a.png) - Mostly by site - In 2024 Jan I put the min instnace of line bot to 1 ##### By env ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_dab790c16aaa1c57159dfa05901bdccc.png) - 80% production - 20% staging ##### By language ![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_e5a0ec2f47263ac0367afc6f7da6fcdd.png) - 50% EN - 25% JA - Not sure where the tw traffic comes from, zh.cofacts.tw is not used anywhere...... #### Prediction Traffic: https://drive.google.com/file/d/1jC0GwXzZj5HTfVNwVQa1rIA16v_Ci6Ap/view - EN: $30 USD / mo - PV to cofacts.tw is roughly 2.6x of en.cofacts.tw - Assume TW cost: 30*2.6 = 78 USD / mo - 要花就花 [name=bil] - 先放放看 (?) ### [Comm layer] 逐字稿 API Ronny API results https://docs.google.com/spreadsheets/d/10xfkOZpGJ-9vIvoYziEkD1lZETWMbBLDT-NABdQ8H_g/edit#gid=69740903 - May need tuning language - 排隊可以到 4 分鐘 - https://g0v.hackmd.io/wkx286lmTDaFUpgRhnUawQ#WhisperX-by-Ronny-Wang - Maybe can use to reduce hallucination https://g0v.hackmd.io/aUgKwPUaTPeVLZbcpyxe3A#Comm-Whisper-hallucination - Dify workflow for fixing Whisper hallucination - Index 文章時,應已有 whisper 結果 - Input: whisper 結果、URL - Ronny's WhisperX --> 把兩者丟去 chatgpt 合併 --> 打 API 更新逐字稿

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.