HackerTrans
TopNewTrendsCommentsPastAskShowJobs

catatsuy

no profile record

Submissions

Ask HN: Ruby 4 and unicorn segfault (kgio) how to get a gem release?

4 points·by catatsuy·7 mesi fa·2 comments

Show HN: Kekkai – a simple, fast file integrity monitoring tool in Go

github.com
59 points·by catatsuy·10 mesi fa·16 comments

[untitled]

1 points·by catatsuy·2 anni fa·0 comments

Ask HN: Can Cloudflare Improve Transparency on CAA Records with Universal SSL?

2 points·by catatsuy·2 anni fa·0 comments

[untitled]

1 points·by catatsuy·2 anni fa·0 comments

[untitled]

1 points·by catatsuy·2 anni fa·0 comments

[untitled]

1 points·by catatsuy·2 anni fa·0 comments

Show HN: u8p – A Go Utility for Precise UTF-8 String Truncation

github.com
3 points·by catatsuy·2 anni fa·3 comments

Show HN: Purl – A Simple Tool for Text Processing

github.com
71 points·by catatsuy·2 anni fa·29 comments

Show HN: Post the standard output of the command to Slack once a second

github.com
3 points·by catatsuy·5 anni fa·0 comments

Show HN: Get lists of files in a directory that contains a large number of files

github.com
53 points·by catatsuy·5 anni fa·29 comments

comments

catatsuy
·7 mesi fa·discuss
Thanks! I already emailed [email protected].

My message is in the public archive here: https://yhbt.net/unicorn-public/20251227071714.D9328160070@m...
catatsuy
·10 mesi fa·discuss
That’s a great real-world story. Exactly the kind of unexpected modification FIM can help surface—not only security incidents, but also operational surprises.
catatsuy
·10 mesi fa·discuss
Compliance is definitely one use case, but not the only one. It’s also useful for catching unexpected local changes in real-world operations. The goal is to provide a lightweight FIM that can be added to existing apps without too much friction.
catatsuy
·10 mesi fa·discuss
Conceptually it’s the same as sha256sum, but Kekkai automates the workflow:

hashes recorded automatically at deploy,

stored in S3 with write/read separation,

verification runs regularly. It saves you from scripting all of that by hand.
catatsuy
·10 mesi fa·discuss
By fast I mean two things:

Files are hashed in parallel, so large sets can be processed quickly.

On repeated runs, unchanged files skip hashing with a default 90% probability using a cache. This keeps checks lightweight even at scale
catatsuy
·10 mesi fa·discuss
You’re right that this doesn’t prevent compromise—it’s a detection control, not prevention. Things like read-only mounts or immutable bits are great, but in practice issues like command injection or misconfigured deployments still happen. FIM helps you know when files were changed and provides evidence for investigation or compliance.
catatsuy
·10 mesi fa·discuss
AIDE is a solid and mature tool. Kekkai focuses on being lightweight:

content-only hashing to avoid false positives,

S3 integration with strict write/read separation,

a single Go binary with minimal dependencies. It’s designed to be easy to deploy and run in production.
catatsuy
·2 anni fa·discuss
Thank you for your reply.

I was thinking about whether to return an error. If we can’t find a UTF-8 start byte in the nearby 4 bytes, it’s unclear what to return. I thought maybe we could ignore this problem.

I don’t return the string itself because I don’t know if users want the start or the end of the string. Also, I want to avoid copying large strings. It’s up to the users how they use this function.

Since no one is using this package yet, we might consider changing the interface.
catatsuy
·2 anni fa·discuss
Thank you for your feedback. The current implementation of purl uses Go's regexp package for regex operations, which ensures consistent behavior across platforms. I acknowledge the README does not specify this yet, and I plan to update it to clarify the regex implementation used.
catatsuy
·2 anni fa·discuss
Thank you for trying out purl! Currently, the file name needs to be placed at the end of the command like this: purl -filter func main.go. This format helps purl understand which part of the command specifies the options and which part specifies the file.

I appreciate your feedback and understand that a more flexible command structure might be easier for users. We will consider making this change in future versions to accommodate different usage preferences.
catatsuy
·2 anni fa·discuss
Thank you for the congratulations! Currently, purl does not include features similar to AWK. We appreciate your suggestion and will consider it for future development.