Skip to content

Commit

Permalink
Release v1.0.10 (#30)
Browse files Browse the repository at this point in the history
- automated code formatting with prettier
- doc: mv Changes.md CHANGELOG.md
- doc(CONTRIBUTORS): added
- populate [files] in package.json.
- deps: bump versions
- dep(eslint): upgrade to v9
- dep: eslint-plugin-haraka -> @haraka/eslint-config
  • Loading branch information
msimerson authored Jan 15, 2025
1 parent cff2948 commit cf8b4ef
Show file tree
Hide file tree
Showing 15 changed files with 370 additions and 335 deletions.
8 changes: 4 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
engines:
eslint:
enabled: true
channel: "eslint-6"
channel: 'eslint-9'
config:
config: ".eslintrc.yaml"
config: 'eslint.config.mjs'

ratings:
paths:
- "**.js"
paths:
- '**.js'
21 changes: 0 additions & 21 deletions .eslintrc.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
allow:
- dependency-type: production
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: CI

on: [ push ]
on: [push, pull_request]

env:
CI: true

jobs:

lint:
uses: haraka/.github/.github/workflows/lint.yml@master

Expand All @@ -15,5 +14,5 @@ jobs:
# secrets: inherit

ubuntu:
needs: [ lint ]
needs: [lint]
uses: haraka/.github/.github/workflows/ubuntu.yml@master
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
schedule:
- cron: '18 7 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ env:
jobs:
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
secrets: inherit
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
singleQuote: true
semi: false
2 changes: 1 addition & 1 deletion .release
26 changes: 17 additions & 9 deletions Changes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

### [1.0.10] - 2025-01-14

- automated code formatting with prettier
- doc: mv Changes.md CHANGELOG.md
- doc(CONTRIBUTORS): added
- populate [files] in package.json.
- deps: bump versions
- dep(eslint): upgrade to v9
- dep: eslint-plugin-haraka -> @haraka/eslint-config

### [1.0.9] - 2022-11-10

- fix connect path argument causing server crash when socket missing
Expand All @@ -10,50 +24,44 @@
- ci: only publish when package.json changes
- Added systemd.service file (#25)


### [1.0.7] - 2022-06-05

- ci: update GHA workflow with shared
- doc(changes): add Unreleased marker
- ci: add submodule .release
- test: require mocha >= 9


### 1.0.6 - 2021-11-10

- bump eslint 6 -> 8


### 1.0.5 - 2020-12-30

- es6: use object shorthand
- update dep ipaddr.js version


### 1.0.4 - 2019-12-23

- update to es6 classes


### 1.0.3 - 2018-05-30

- add_header option visible at config


### 1.0.2 - 2017-09-11

- when socket_path is not configured, emit an error


### 1.0.1 - 2017-09-01

- repackaged as p0f, added contrib scripts, test release


### 1.0.0 - 2017-07-27

- import from Haraka


[1.0.7]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/1.0.7
[1.0.8]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/1.0.8
[1.0.10]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/v1.0.10
[1.0.6]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/1.0.6
[1.0.9]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/1.0.9
9 changes: 9 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Contributors

This handcrafted artisinal software is brought to you by:

| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-plugin-p0f/commits?author=msimerson">23</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/934254?v=4"><br><a href="https://github.com/analogic">analogic</a> (<a href="https://github.com/haraka/haraka-plugin-p0f/commits?author=analogic">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/10996038?v=4"><br><a href="https://github.com/wioxjk">wioxjk</a> (<a href="https://github.com/haraka/haraka-plugin-p0f/commits?author=wioxjk">1</a>) |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

<sub>this file is generated by [.release](https://github.com/msimerson/.release).
Contribute to this project to get your GitHub profile included here.</sub>
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Build Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]
[![NPM][npm-img]][npm-url]

# haraka-plugin-p0f

Expand All @@ -12,25 +11,23 @@ This plugin inserts a _p0f_ connection note with information deduced
from the TCP fingerprint. The note typically includes at least the link,
detail, distance, uptime, genre. Here's an example:

genre => FreeBSD
detail => 8.x (1)
uptime => 1390
link => ethernet/modem
distance => 17
genre => FreeBSD
detail => 8.x (1)
uptime => 1390
link => ethernet/modem
distance => 17

Which was parsed from this p0f fingerprint:

24.18.227.2:39435 - FreeBSD 8.x (1) (up: 1390 hrs)
-> 208.75.177.101:25 (distance 17, link: ethernet/modem)
24.18.227.2:39435 - FreeBSD 8.x (1) (up: 1390 hrs)
-> 208.75.177.101:25 (distance 17, link: ethernet/modem)

The following additional values may also be available in
the _p0f_ connection note:

magic, status, first_seen, last_seen, total_conn, uptime_min, up_mod_days, last_nat, last_chg, distance, bad_sw, os_match_q, os_name, os_flavor, http_name, http_flavor, link_type, and language.


Configuration
-----------------
## Configuration

1. start p0f

Expand All @@ -46,7 +43,6 @@ add an entry to config/plugins to enable p0f:

p0f


3. review settings in config/p0f.ini

At a minimum, `[main]socket_path` must be defined.
Expand All @@ -57,11 +53,9 @@ In the contrib/ubuntu-upstart directory is a config file (p0f.conf) for Ubuntu.

In the contrib/bsd-rc.d directory is a startup file for FreeBSD.


<!-- leave these buried at the bottom of the document -->

[ci-img]: https://github.com/haraka/haraka-plugin-p0f/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/haraka/haraka-plugin-p0f/actions/workflows/ci.yml
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-p0f/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-p0f
[npm-img]: https://nodei.co/npm/haraka-plugin-p0f.png
[npm-url]: https://www.npmjs.com/package/haraka-plugin-p0f
34 changes: 34 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
...compat.extends('@haraka'),
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
OK: true,
CONT: true,
DENY: true,
DENYSOFT: true,
DENYDISCONNECT: true,
DENYSOFTDISCONNECT: true,
},
},
rules: {
'no-unused-vars': 'warn',
},
},
]
Loading

0 comments on commit cf8b4ef

Please sign in to comment.