logsafe 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +24 -0
- data/CODE_OF_CONDUCT.md +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +654 -0
- data/exe/logsafe +50 -0
- data/lib/logsafe/cipher.rb +170 -0
- data/lib/logsafe/copies.rb +176 -0
- data/lib/logsafe/day.rb +139 -0
- data/lib/logsafe/merge_job.rb +13 -0
- data/lib/logsafe/private_folder.rb +29 -0
- data/lib/logsafe/reencrypt.rb +107 -0
- data/lib/logsafe/reencrypt_job.rb +12 -0
- data/lib/logsafe/room.rb +35 -0
- data/lib/logsafe/search.rb +121 -0
- data/lib/logsafe/source.rb +79 -0
- data/lib/logsafe/storage.rb +335 -0
- data/lib/logsafe/version.rb +5 -0
- data/lib/logsafe/web.html.erb +105 -0
- data/lib/logsafe/web.rb +150 -0
- data/lib/logsafe.rb +159 -0
- data/shipper/start +18 -0
- data/shipper/to-folder.yaml +20 -0
- data/shipper/to-gcs.yaml +21 -0
- data/shipper/to-s3.yaml +23 -0
- data/shipper/vector.yaml +113 -0
- metadata +90 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b7d59f1ca7d708a4ea6923ed8726f78cf3bf7d5e3a2ecf5c96a642675af338a3
|
|
4
|
+
data.tar.gz: 0b6595fa191856ae444777ac457cd865d51729c417a8180ce78fe7392d02972e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 214f4fda72b76e2a2ea3ea4f8e2d35083640b17c4834aedfdfb9cd07f77e2e526002d4fb2d0017f71edd9081e2e0b3ef30cf443655f350b44c5f5904b23dd3f6
|
|
7
|
+
data.tar.gz: 0f54a4914ebe5a008a26cfabd54924386ad6025fadf305de8133dd6bb58aa6159cb72e41a00c07ef14a23ad95805f080b14ba54855d61fd8fa02ec8a529ee5b4
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
The versions follow [Semantic Versioning](https://semver.org). Until 1.0, a minor version can change
|
|
4
|
+
what is in the README's Reference.
|
|
5
|
+
|
|
6
|
+
## [0.1.0] - 2026-11-25
|
|
7
|
+
|
|
8
|
+
The first version.
|
|
9
|
+
|
|
10
|
+
- **Shipping:** settings for Vector that send the lines of labelled Docker containers to S3-compatible
|
|
11
|
+
storage, Google Cloud Storage or a folder, under `parts/<stream>/<date>/`. They come with the gem, in
|
|
12
|
+
`shipper/`.
|
|
13
|
+
- **Merging:** `Logsafe::MergeJob` turns each finished day into one sorted, compressed file per stream. It
|
|
14
|
+
can be run again at any time, a line that was sent twice is kept once, and parts are removed only once
|
|
15
|
+
a later run has found all their lines in the day's file. Several runs at the same time do not lose each
|
|
16
|
+
other's lines.
|
|
17
|
+
- **Searching:** `Logsafe::Web`, a Rack app to mount in your routes behind your own sign-in: by day,
|
|
18
|
+
stream, level and words, today's lines included.
|
|
19
|
+
- **Encryption:** with a key, Vector encrypts every line before it leaves the server, and the day's files
|
|
20
|
+
are written encrypted. `logsafe key` makes a key and `logsafe decrypt` reads what it encrypted.
|
|
21
|
+
`Logsafe.old_keys` and `Logsafe::ReencryptJob` change the key, and encrypt what was there before.
|
|
22
|
+
- **Limits on what is not trusted:** `Logsafe.streams` names the streams there are. A part that cannot be
|
|
23
|
+
read, unpacks to more than 256 MB or has a line of more than 2 MB is left where it is and named, and
|
|
24
|
+
neither the merge nor the page fills the disk.
|
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
"logsafe" follows [The Ruby Community Conduct Guideline](https://www.ruby-lang.org/en/conduct) in all "collaborative space", which is defined as community communications channels (such as mailing lists, submitted patches, commit comments, etc.):
|
|
4
|
+
|
|
5
|
+
* Participants will be tolerant of opposing views.
|
|
6
|
+
* Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.
|
|
7
|
+
* When interpreting the words and actions of others, participants should always assume good intentions.
|
|
8
|
+
* Behaviour which can be reasonably considered harassment will not be tolerated.
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 tin.trung.duong
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|