在 AWS API Changes 上看到這個修改:「2021/09/27 - Elastic Load Balancing - 3 updated api methods」。
說明是這樣:
Adds new ALB-type target group to facilitate forwarding traffic from NLB to ALB
幹壞事是進步最大的原動力
在 AWS API Changes 上看到這個修改:「2021/09/27 - Elastic Load Balancing - 3 updated api methods」。
說明是這樣:
Adds new ALB-type target group to facilitate forwarding traffic from NLB to ALB
Hacker News Daily 上看到的:「Start building with the Notion API」,翻了一下 Pricing 頁面的說明,看起來免費的 Personal 版也可以用?
看了一下 API 的內容,寫一些工具塞資料還不錯,畢竟 Notion 的界面算漂亮的...
前幾天應該很多媒體都有報導了,這邊算是整理一下看到的資料。
美國最高法院公佈的全文在「18-956_d18f.pdf」這邊可以看到,算是最重要的資料。
另外很多地方也有更新,像是維基百科上面的條目「Google LLC v. Oracle America, Inc.」。
這次的案件在軟體產業也很關注,難得可以在 Hacker News 上看到 upvote 超過四千的新聞:「Google’s copying of the Java SE API was fair use [pdf] (supremecourt.gov)」,不過裡面的討論我覺得就是鄉民拿著爆米花的感覺...
第一個重要的消息當然是 6-2 認定 fair use,並且讓聯邦法院重審 (但最高法院已經把最重要的部份拍板定案了),不過要注意的是,對於更基本的問題「API 是否有著作權」並沒有定案:
In April 2021, the Supreme Court ruled in a 6–2 decision that Google's use of the Java APIs fell within the four factors of fair use, bypassing the question on the copyrightability of the APIs. The decision reversed the Federal Circuit ruling and remanded the case for further review.
判決全文 PDF 的前面三頁多算是簡介說明這次的重點,Page 44 到 Page 62 則是反對的兩位大法官 (Clarence Thomas 與 Samuel Alito) 所提出的異議,可以看到兩位大法官批評了 copyrightability 與 fair-use analysis 的問題。
這次的結果對軟體與網路產業影響超級大,舉個例子來說,一堆公司都有推出與 Amazon S3 相容 API 的產品 (這邊是 Network-based API)。另外 Firefox 直接拿 Chromium 的 Manifest 格式來相容降低開發者開發 extension 的成本。
之後應該可以看到大家用的更爽了...
GitHub 前幾天宣佈更換 API token 的格式:「Authentication token format updates are generally available」,在今年三月初的時候有先公告要換:「Authentication token format updates」。
另外昨天也解釋了換成這樣的優點:「Behind GitHub’s new authentication token formats」。
首先是 token 的字元集合變大了:
The character set changed from
[a-f0-9]
to[A-Za-z0-9_]
另外是增加了 prefix 直接指出是什麼種類的 token:
The format now includes a prefix for each token type:
ghp_
for Personal Access Tokensgho_
for OAuth Access tokensghu_
for GitHub App user-to-server tokensghs_
for GitHub App server-to-server tokensghr_
for GitHub App refresh tokens
另外官方目前先不會改變 token 長度 (透過字元變多增加 entropy),但未來有打算要增加:
The length of our tokens is remaining the same for now. However, GitHub tokens will likely increase in length in future updates, so integrators should plan to support tokens up to 255 characters after June 1, 2021.
看起來當初當作 hex string 而轉成 binary 會有問題,不過就算這樣做應該也是轉的回來的。
回到好處的部份,這個作法跟 Slack 與 Stripe 類似,讓開發者或是管理者更容易辨識 token 的類型:
As we see across the industry from companies like Slack and Stripe, token prefixes are a clear way to make tokens identifiable. We are including specific 3 letter prefixes to represent each token, starting with a company signifier,
gh
, and the first letter of the token type.
另外這也讓 secret scanning 的準確度更高,本來是 40 bytes 的 hex string,有機會撞到程式碼內的 SHA-1 string:
Many of our old authentication token formats are hex-encoded 40 character strings that are indistinguishable from other encoded data like SHA hashes. These have several limitations, such as inefficient or even inaccurate detection of compromised tokens for our secret scanning feature.
另外官方也建議現有的 token 換成新的格式,這樣如果真的發生洩漏,可以透過 secret scanning 偵測並通知:
We strongly encourage you to reset any personal access tokens and OAuth tokens you have. These improvements help secret scanning detection and will help you mitigate any risk to compromised tokens.