oxidized 0.38.0 → 0.38.1
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 +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +3 -2
- data/bin/oxidized-device2yaml +4 -0
- data/docs/Configuration.md +1 -0
- data/docs/Deprecated.md +104 -0
- data/docs/DeviceSimulation.md +9 -1
- data/docs/Release.md +18 -5
- data/extra/device2yaml.rb +2 -2
- data/lib/oxidized/cli.rb +11 -1
- data/lib/oxidized/config.rb +2 -1
- data/lib/oxidized/model/aoscx.rb +1 -1
- data/lib/oxidized/model/fastiron.rb +2 -1
- data/lib/oxidized/model/fortios.rb +3 -2
- data/lib/oxidized/model/ios.rb +1 -1
- data/lib/oxidized/redact.rb +1 -1
- data/lib/oxidized/version.rb +2 -2
- metadata +14 -35
- data/.codeclimate.yml +0 -4
- data/.coderabbit.yaml +0 -21
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -71
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -29
- data/.github/ISSUE_TEMPLATE/support-request.md +0 -65
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- data/.github/dependabot.yml +0 -31
- data/.github/workflows/codeql.yml +0 -76
- data/.github/workflows/publishdocker.yml +0 -117
- data/.github/workflows/ruby.yml +0 -40
- data/.github/workflows/stale.yml +0 -21
- data/.gitignore +0 -56
- data/.rubocop.yml +0 -149
- data/.rubocop_todo.yml +0 -38
- data/AGENTS.md +0 -174
- data/Dockerfile +0 -106
- data/Gemfile +0 -2
- data/Rakefile +0 -131
- data/TODO.md +0 -29
- data/bin/console +0 -9
- data/oxidized.gemspec +0 -77
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c84e4674d9fd10e55ce2b510c6835fd6d4bce4d498333039650a28f7f2cec51
|
|
4
|
+
data.tar.gz: 3fe0bd0a173b694a30d86b6b24260a67ae662a453f72ad1830b589054d212e55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fe93ce6da2f03d3549cb1e3b9f9ac001db84b14275b1e5bffe201a70ea0ba67601c0635106b679e81ec6ef2deb692baf35ed467bbf255ca872e2ce14696174e
|
|
7
|
+
data.tar.gz: 3fa888eeaa462d6ea79f62398650c95d399668383dced8303084e9ffa2f76e2df57cc403d7a3660df041787bb2e934c37ac90a7f3efd95dd8927dac36cecfb36
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## [0.38.1 - 2026-12-04]
|
|
8
|
+
### Release Notes
|
|
9
|
+
This patch release mainly exists to update oxidized-web in the Docker container, plus a few small changes.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Add yunshan as model_map in the default config (@systeembeheerder)
|
|
13
|
+
- docs/Deprecated.md lists deprecated features and their planned removal (@robertcheramy)
|
|
14
|
+
- device2yaml: install the script as the `oxidized-device2yaml` command with the oxidized gem (@robertcheramy)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Ruby 3.0 and 3.1 are deprecated, support is planned to be removed in June 2028. Oxidized logs a warning at startup. See [docs/Deprecated.md](docs/Deprecated.md) (@robertcheramy)
|
|
18
|
+
- Log the Oxidized version at startup (@robertcheramy)
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- fastiron: accept factory-default Ruckus ICX system names, which contain a space, as a prompt. Fixes #3893 (@lidongze1002)
|
|
22
|
+
- aoscx: normalize the padding after hidden temperatures, so values crossing 10 °C no longer produce a diff (@steveneppler)
|
|
23
|
+
- support: redact the `pass` key of the http source (@Mitchx-Dev)
|
|
24
|
+
- fortios: remove `System time` from the output, as it changes on every run (@TafkaMax)
|
|
25
|
+
- ios: prevent double-masking of `server-key` secrets, which resulted in `<secret hidden> <secret hidden>` (@Skorvol)
|
|
26
|
+
|
|
27
|
+
|
|
7
28
|
## [0.38.0 - 2026-11-16]
|
|
8
29
|
### Release Notes
|
|
9
30
|
The git and gitcrypt outputs no longer provide the `:date` field in the node versions, as it was only used by oxidized-web <= 0.16.0. You need oxidized-web >= 0.17.0, older versions will fail to display node versions and diffs.
|
data/README.md
CHANGED
|
@@ -69,6 +69,7 @@ Check out the [Oxidized TREX 2014 presentation](http://youtu.be/kBQ_CTUuqeU?t=3h
|
|
|
69
69
|
* [Output](docs/Ruby-API.md#output)
|
|
70
70
|
* [Source](docs/Ruby-API.md#source)
|
|
71
71
|
* [Model](docs/Ruby-API.md#model)
|
|
72
|
+
9. [Deprecations](docs/Deprecated.md)
|
|
72
73
|
|
|
73
74
|
## Installation
|
|
74
75
|
|
|
@@ -109,11 +110,11 @@ gem install oxidized-script # Script-based input/output extensions
|
|
|
109
110
|
### Rocky Linux, Red Hat Enterprise Linux
|
|
110
111
|
These instructions has been verified on Rocky Linux 9, Rocky Linux 10 and Fedora.
|
|
111
112
|
|
|
112
|
-
On Rocky Linux 9, you need to install/enable EPEL, CRB and Ruby 3.
|
|
113
|
+
On Rocky Linux 9, you need to install/enable EPEL, CRB and Ruby 3.3:
|
|
113
114
|
```shell
|
|
114
115
|
dnf install epel-release
|
|
115
116
|
dnf config-manager --set-enabled crb
|
|
116
|
-
dnf module enable ruby:3.
|
|
117
|
+
dnf module enable ruby:3.3
|
|
117
118
|
```
|
|
118
119
|
|
|
119
120
|
Then you need the required packages for oxidized:
|
data/docs/Configuration.md
CHANGED
data/docs/Deprecated.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Deprecations
|
|
2
|
+
This page lists features, configuration options, models and platforms that are
|
|
3
|
+
deprecated in Oxidized and will be removed in a future release.
|
|
4
|
+
|
|
5
|
+
Deprecated features still work, but most of them log a warning when used.
|
|
6
|
+
Please migrate to the replacement before the planned removal.
|
|
7
|
+
|
|
8
|
+
| Deprecated | Since | Planned removal | Replacement |
|
|
9
|
+
|-----------------------------------------------|------------|-----------------|--------------------------------------------------------|
|
|
10
|
+
| [Ruby 3.0 and Ruby 3.1](#ruby-30-and-ruby-31) | 0.38.1 | June 2028 | Ruby >= 3.2 |
|
|
11
|
+
| [Configuration `rest`](#configuration-rest) | 0.33.0 | April 2027 | `extensions.oxidized-web` |
|
|
12
|
+
| [Configuration `log` and `use_syslog`](#configuration-log-and-use_syslog) | 0.34.0 | April 2027 | `logger` |
|
|
13
|
+
| [Model `apc_aos`](#model-apc_aos) | 0.36.0 | April 2027 | Model `ApcAos` |
|
|
14
|
+
| [Fortigate variable `fortios_autoupdate`](#fortigate-variable-fortios_autoupdate) | 0.36.0 | not scheduled | Variable `fortigate_autoupdate` |
|
|
15
|
+
| [Model `supermicro`](#model-supermicro) | 0.22.0 | December 2026 | Model `edgecos` |
|
|
16
|
+
|
|
17
|
+
## Ruby 3.0 and Ruby 3.1
|
|
18
|
+
Ruby 3.0 and 3.1 have reached their end of life (3.0 in April 2024, 3.1 in
|
|
19
|
+
March 2025) and no longer receive security fixes. Please upgrade to Ruby 3.2 or
|
|
20
|
+
newer. Oxidized logs a warning at startup when running on Ruby < 3.2.
|
|
21
|
+
|
|
22
|
+
Support for Ruby 3.0 and 3.1 is planned to be removed in June 2028, when
|
|
23
|
+
Debian LTS for Debian 12 ends. By then, none of the LTS distributions below
|
|
24
|
+
is supported any more without paid extended support.
|
|
25
|
+
|
|
26
|
+
### LTS distributions without Ruby >= 3.2
|
|
27
|
+
Oxidized tries to support the Ruby versions of the LTS releases of common
|
|
28
|
+
Linux distributions. These still ship Ruby 3.0 or 3.1 as their system Ruby
|
|
29
|
+
(as of November 2026):
|
|
30
|
+
|
|
31
|
+
| Distribution | System Ruby | End of support | Extended support |
|
|
32
|
+
|-------------------|-------------|---------------------------|------------------|
|
|
33
|
+
| Ubuntu 22.04 LTS | 3.0 | June 2027 (standard) | April 2032 (ESM) |
|
|
34
|
+
| Debian 12 | 3.1 | June 2028 (Debian LTS) | June 2033 (ELTS) |
|
|
35
|
+
| RHEL 9 and clones | 3.0 | May 2027 (full support) | May 2032 |
|
|
36
|
+
|
|
37
|
+
Notes:
|
|
38
|
+
- Ubuntu 24.04 (Ruby 3.2), Ubuntu 26.04 and Debian 13 (Ruby 3.3) are not
|
|
39
|
+
affected.
|
|
40
|
+
- RHEL 8 and 9 provide newer Ruby versions as AppStream module streams
|
|
41
|
+
(e.g. `ruby:3.3`), so they can run Ruby >= 3.2 without the system Ruby.
|
|
42
|
+
- On any distribution, a newer Ruby can be installed with a Ruby version
|
|
43
|
+
manager (rbenv, ruby-install, ...) or Oxidized can be run from the
|
|
44
|
+
[docker image](Docker.md).
|
|
45
|
+
|
|
46
|
+
### Removal must be coordinated with oxidized-web
|
|
47
|
+
Raising `required_ruby_version` in Oxidized must be coordinated with
|
|
48
|
+
[oxidized-web](https://github.com/ytti/oxidized-web):
|
|
49
|
+
- oxidized-web depends on oxidized, and oxidized has oxidized-web as a
|
|
50
|
+
development dependency. Both CIs install the other gem and test the
|
|
51
|
+
same Ruby versions (3.0 and 3.1 on `ubuntu-24.04`, 3.2 and newer on
|
|
52
|
+
`ubuntu-latest`).
|
|
53
|
+
- If only one of them drops Ruby 3.0 and 3.1, the CI of the other one
|
|
54
|
+
breaks on those versions, or bundler silently resolves an older release
|
|
55
|
+
of the gem that still supports them, so the tests no longer run against
|
|
56
|
+
the current code.
|
|
57
|
+
- Both gems should therefore raise `required_ruby_version` and remove
|
|
58
|
+
Ruby 3.0 and 3.1 from `.github/workflows/ruby.yml` in releases that are
|
|
59
|
+
published together.
|
|
60
|
+
|
|
61
|
+
### Development dependencies held back
|
|
62
|
+
Some development dependencies have dropped Ruby 3.0 and 3.1, so their version
|
|
63
|
+
constraints in `oxidized.gemspec` are kept loose enough for bundler to
|
|
64
|
+
resolve an older version on these Rubies:
|
|
65
|
+
|
|
66
|
+
| Gem | Constraint | Ruby 3.0 and 3.1 | Newer versions need |
|
|
67
|
+
|-----------|------------|------------------|---------------------------------|
|
|
68
|
+
| simplecov | `>= 0.22` | 0.22 | Ruby >= 3.2 (1.0), >= 3.3 (1.3) |
|
|
69
|
+
|
|
70
|
+
When Ruby 3.0 and 3.1 are removed, tighten these constraints again (e.g.
|
|
71
|
+
simplecov `~> 1.0`; versions >= 1.3 also drop Ruby 3.2).
|
|
72
|
+
|
|
73
|
+
## Configuration `rest`
|
|
74
|
+
The old syntax `rest: 127.0.0.1:8888/prefix` to configure oxidized-web has been
|
|
75
|
+
replaced by `extensions.oxidized-web`, which needs oxidized-web 0.16.0 or later.
|
|
76
|
+
When `rest` is configured, Oxidized logs a warning and ignores
|
|
77
|
+
`extensions.oxidized-web`.
|
|
78
|
+
|
|
79
|
+
See [Configuration](Configuration.md#oxidized-web-restful-api-and-web-interface).
|
|
80
|
+
|
|
81
|
+
## Configuration `log` and `use_syslog`
|
|
82
|
+
Oxidized 0.34.0 introduced a new logging system based on
|
|
83
|
+
[Semantic Logger](https://logger.rocketjob.io/). The old configuration options
|
|
84
|
+
`log` and `use_syslog` still work but log a warning. Remove them and configure
|
|
85
|
+
the `logger` section instead.
|
|
86
|
+
|
|
87
|
+
See [Logging](Configuration.md#logging).
|
|
88
|
+
|
|
89
|
+
## Model `apc_aos`
|
|
90
|
+
The old model `apc_aos` only supports SCP and FTP. It has been replaced by the
|
|
91
|
+
model `ApcAos`, which also supports SSH. Change the model of your nodes from
|
|
92
|
+
`apc_aos` to `apcaos`.
|
|
93
|
+
|
|
94
|
+
See [APC Model Notes](Model-Notes/APC.md).
|
|
95
|
+
|
|
96
|
+
## Fortigate variable `fortios_autoupdate`
|
|
97
|
+
The variable `fortios_autoupdate` of the model `fortigate` has been renamed to
|
|
98
|
+
`fortigate_autoupdate`.
|
|
99
|
+
|
|
100
|
+
See [Fortinet Model Notes](Model-Notes/Fortinet.md#autoupdate).
|
|
101
|
+
|
|
102
|
+
## Model `supermicro`
|
|
103
|
+
The model `supermicro` is a backward compatibility shim for the model
|
|
104
|
+
`edgecos`. Change the model of your nodes from `supermicro` to `edgecos`.
|
data/docs/DeviceSimulation.md
CHANGED
|
@@ -67,7 +67,12 @@ the Ruby script [extra/device2yaml.rb](/extra/device2yaml.rb).
|
|
|
67
67
|
[net-ssh](https://rubygems.org/gems/net-ssh/) to run. On Debian, you can install
|
|
68
68
|
them with `sudo apt install ruby-net-ssh`.
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
Starting with Oxidized 0.38.1, `device2yaml.rb` is also installed with the
|
|
71
|
+
oxidized gem as the command `oxidized-device2yaml`, so you do not need a copy of
|
|
72
|
+
the repository.
|
|
73
|
+
|
|
74
|
+
Run `extra/device2yaml.rb` (or `oxidized-device2yaml` if you installed the
|
|
75
|
+
gem); the online help tells you the options.
|
|
71
76
|
```
|
|
72
77
|
oxidized$ extra/device2yaml.rb
|
|
73
78
|
Missing a host to connect to...
|
|
@@ -142,6 +147,9 @@ show running-config
|
|
|
142
147
|
exit" -o spec/model/data/ios#C8200L_16.12.1#simulation.yaml
|
|
143
148
|
```
|
|
144
149
|
|
|
150
|
+
If you installed the oxidized gem, use `oxidized-device2yaml` instead of
|
|
151
|
+
`extra/device2yaml.rb`.
|
|
152
|
+
|
|
145
153
|
#### Interactive Mode
|
|
146
154
|
The `device2yaml.rb` script is basic and sometimes needs some help, especially
|
|
147
155
|
when dealing with a device that sends its output page by page and requires you
|
data/docs/Release.md
CHANGED
|
@@ -27,6 +27,16 @@ For a graphical compare, use `git difftool -d 0.30.0`.
|
|
|
27
27
|
|
|
28
28
|
Commit fixes to the review branch
|
|
29
29
|
|
|
30
|
+
### Review deprecations
|
|
31
|
+
Review [Deprecated.md](Deprecated.md):
|
|
32
|
+
- Remove deprecated features whose planned removal date has passed, and
|
|
33
|
+
remove them from Deprecated.md. Document the removal in CHANGELOG.md.
|
|
34
|
+
- Check that deprecations introduced since the last release are listed, and
|
|
35
|
+
replace `unreleased` in the column "Since" with the version to be released.
|
|
36
|
+
To find them, search the changes for "deprecat":
|
|
37
|
+
`git diff 0.30.0 | grep -i deprecat`.
|
|
38
|
+
- Check that the planned removal dates are still accurate.
|
|
39
|
+
|
|
30
40
|
### Update the gem dependencies to the latest versions
|
|
31
41
|
```
|
|
32
42
|
bundle outdated
|
|
@@ -65,7 +75,7 @@ Update CHANGELOG.md:
|
|
|
65
75
|
- add release notes
|
|
66
76
|
- set the new version (replace `[Unreleased]` with `[0.xx.yy – 202Y-MM-DD]`)
|
|
67
77
|
|
|
68
|
-
Change the version in
|
|
78
|
+
Change the version in [lib/oxidized/version.rb](../lib/oxidized/version.rb)
|
|
69
79
|
|
|
70
80
|
Upload the branch to github, make a Pull Request for it.
|
|
71
81
|
|
|
@@ -76,8 +86,8 @@ They test different ruby versions an run security checks on the code (codeql).
|
|
|
76
86
|
1. Merge the Pull Request into master with the commit message
|
|
77
87
|
`chore(release): release version 0.3x.y`
|
|
78
88
|
2. `git pull` on master
|
|
79
|
-
3. Tag the commit with `git tag -a 0.xx.yy -m "Release 0.xx.yy"`
|
|
80
|
-
4. Build the gem with
|
|
89
|
+
3. Tag the commit with `rake tag` (same as `git tag -a 0.xx.yy -m "Release 0.xx.yy"`)
|
|
90
|
+
4. Build the gem with `rake build`
|
|
81
91
|
5. Run `git diff` to check if there have been more changes (there shouldn't)
|
|
82
92
|
6. Install an test the gem locally
|
|
83
93
|
```shell
|
|
@@ -104,8 +114,11 @@ Make a release from the tag in github.
|
|
|
104
114
|
|
|
105
115
|
Close the corresponding milestone in github.
|
|
106
116
|
|
|
107
|
-
|
|
108
|
-
Push the gem with `rake push
|
|
117
|
+
## Release in rubygems
|
|
118
|
+
Push the gem built in the previous steps with `rake push`.
|
|
119
|
+
|
|
120
|
+
Do not use `rake release` (from bundler): it would tag `v0.xx.yy` instead of
|
|
121
|
+
`0.xx.yy`, so it is disabled in the Rakefile.
|
|
109
122
|
|
|
110
123
|
### Release in docker.io
|
|
111
124
|
The OCI-Containter is automatically build and pushed to docker.io by github
|
data/extra/device2yaml.rb
CHANGED
|
@@ -124,8 +124,8 @@ options = {}
|
|
|
124
124
|
optparse = OptionParser.new do |opts|
|
|
125
125
|
opts.banner = <<~HEREDOC
|
|
126
126
|
Usages:
|
|
127
|
-
-
|
|
128
|
-
-
|
|
127
|
+
- #{File.basename($PROGRAM_NAME)} [user@]host -i file [options]
|
|
128
|
+
- #{File.basename($PROGRAM_NAME)} [user@]host -c "command1
|
|
129
129
|
command2
|
|
130
130
|
command3" [options]
|
|
131
131
|
|
data/lib/oxidized/cli.rb
CHANGED
|
@@ -15,7 +15,8 @@ module Oxidized
|
|
|
15
15
|
Process.daemon if @opts[:daemonize]
|
|
16
16
|
write_pid
|
|
17
17
|
begin
|
|
18
|
-
logger.info "Oxidized starting, running as pid #{$PROCESS_ID}"
|
|
18
|
+
logger.info "Oxidized #{Oxidized::VERSION_FULL} starting, running as pid #{$PROCESS_ID}"
|
|
19
|
+
check_ruby_version
|
|
19
20
|
Oxidized.new
|
|
20
21
|
rescue StandardError => e
|
|
21
22
|
crash e
|
|
@@ -34,6 +35,15 @@ module Oxidized
|
|
|
34
35
|
@pidfile = File.expand_path(Oxidized.config.pid)
|
|
35
36
|
end
|
|
36
37
|
|
|
38
|
+
def check_ruby_version(version = RUBY_VERSION)
|
|
39
|
+
return if Gem::Version.new(version) >= Gem::Version.new('3.2')
|
|
40
|
+
|
|
41
|
+
logger.warn(
|
|
42
|
+
"Ruby #{version} is deprecated, support for Ruby 3.0 and 3.1 " \
|
|
43
|
+
'is planned to be removed in June 2028. Please upgrade to Ruby >= 3.2'
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
37
47
|
def crash(error)
|
|
38
48
|
logger.fatal "Oxidized crashed, crashfile written in #{Config::CRASH}"
|
|
39
49
|
File.open Config::CRASH, 'w' do |file|
|
data/lib/oxidized/config.rb
CHANGED
data/lib/oxidized/model/aoscx.rb
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
class FastIron < Oxidized::Model
|
|
2
2
|
using Refinements
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
# Factory-default ICX names contain a space; allow it between tokens (#3893).
|
|
5
|
+
prompt /^([\w.@\/()-]+(?: [\w.@\/()-]+)*[#>]\s?)$/
|
|
5
6
|
comment '! '
|
|
6
7
|
|
|
7
8
|
# The pager cannot always be disabled with 'skip-page-display', for example
|
|
@@ -46,12 +46,13 @@ class FortiOS < Oxidized::Model
|
|
|
46
46
|
"Current Time",
|
|
47
47
|
"Disk Usage",
|
|
48
48
|
"Release Version Information",
|
|
49
|
-
|
|
49
|
+
/Branch [Pp]oint/,
|
|
50
50
|
"Daylight Time Saving",
|
|
51
51
|
"Time Zone",
|
|
52
52
|
"x86-64 Applications",
|
|
53
53
|
"File System",
|
|
54
|
-
"Image Signature"
|
|
54
|
+
"Image Signature",
|
|
55
|
+
"System time"
|
|
55
56
|
]
|
|
56
57
|
comment cfg + "\n"
|
|
57
58
|
end
|
data/lib/oxidized/model/ios.rb
CHANGED
|
@@ -50,7 +50,7 @@ class IOS < Oxidized::Model
|
|
|
50
50
|
cfg.gsub! /^( +client \S+ server-key \d) (.*)$/, '\\1 <secret hidden>'
|
|
51
51
|
cfg.gsub! /^( +domain-password) \S+ ?(.*)/, '\\1 <secret hidden> \\2'
|
|
52
52
|
cfg.gsub! /^( +pre-shared-key).*/, '\\1 <configuration removed>'
|
|
53
|
-
cfg.gsub! /^(.*server-key(?: \d)?) \S+/, '\\1 <secret hidden>'
|
|
53
|
+
cfg.gsub! /^(.*server-key(?: \d)?) (?!(?:\d )?<secret hidden>)\S+/, '\\1 <secret hidden>'
|
|
54
54
|
cfg
|
|
55
55
|
end
|
|
56
56
|
|
data/lib/oxidized/redact.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Oxidized
|
|
2
2
|
# Hides values of sensitive keys (passwords, tokens, ...) in logs and outputs
|
|
3
3
|
module Redact
|
|
4
|
-
SENSITIVE_NAME_RE = /(password|passphrase|secret|token|enable|
|
|
4
|
+
SENSITIVE_NAME_RE = /(password|passphrase|\bpass\b|secret|token|enable|
|
|
5
5
|
(private|api|access)_?key|
|
|
6
6
|
community|credential|auth
|
|
7
7
|
)/ix
|
data/lib/oxidized/version.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module Oxidized
|
|
4
|
-
VERSION = '0.38.
|
|
5
|
-
VERSION_FULL = '0.38.
|
|
4
|
+
VERSION = '0.38.1'
|
|
5
|
+
VERSION_FULL = '0.38.1'
|
|
6
6
|
def self.version_set
|
|
7
7
|
version_full = %x(git describe --tags).chop rescue ""
|
|
8
8
|
version = %x(git describe --tags --abbrev=0).chop rescue ""
|
metadata
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oxidized
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.38.
|
|
4
|
+
version: 0.38.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
- Samer Abdel-Hafez
|
|
9
|
-
- Anton Aksola
|
|
7
|
+
- Oxidized Developers
|
|
10
8
|
bindir: bin
|
|
11
9
|
cert_chain: []
|
|
12
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -259,14 +257,14 @@ dependencies:
|
|
|
259
257
|
requirements:
|
|
260
258
|
- - "~>"
|
|
261
259
|
- !ruby/object:Gem::Version
|
|
262
|
-
version: 1.
|
|
260
|
+
version: 1.93.0
|
|
263
261
|
type: :development
|
|
264
262
|
prerelease: false
|
|
265
263
|
version_requirements: !ruby/object:Gem::Requirement
|
|
266
264
|
requirements:
|
|
267
265
|
- - "~>"
|
|
268
266
|
- !ruby/object:Gem::Version
|
|
269
|
-
version: 1.
|
|
267
|
+
version: 1.93.0
|
|
270
268
|
- !ruby/object:Gem::Dependency
|
|
271
269
|
name: rubocop-minitest
|
|
272
270
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -313,14 +311,14 @@ dependencies:
|
|
|
313
311
|
name: simplecov
|
|
314
312
|
requirement: !ruby/object:Gem::Requirement
|
|
315
313
|
requirements:
|
|
316
|
-
- - "
|
|
314
|
+
- - ">="
|
|
317
315
|
- !ruby/object:Gem::Version
|
|
318
316
|
version: '0.22'
|
|
319
317
|
type: :development
|
|
320
318
|
prerelease: false
|
|
321
319
|
version_requirements: !ruby/object:Gem::Requirement
|
|
322
320
|
requirements:
|
|
323
|
-
- - "
|
|
321
|
+
- - ">="
|
|
324
322
|
- !ruby/object:Gem::Version
|
|
325
323
|
version: '0.22'
|
|
326
324
|
- !ruby/object:Gem::Dependency
|
|
@@ -446,42 +444,21 @@ dependencies:
|
|
|
446
444
|
- !ruby/object:Gem::Version
|
|
447
445
|
version: '6'
|
|
448
446
|
description: software to fetch configuration from network devices and store them
|
|
449
|
-
email:
|
|
450
|
-
- saku@ytti.fi
|
|
451
|
-
- sam@arahant.net
|
|
452
|
-
- aakso@iki.fi
|
|
453
447
|
executables:
|
|
454
448
|
- oxidized
|
|
449
|
+
- oxidized-device2yaml
|
|
455
450
|
extensions: []
|
|
456
451
|
extra_rdoc_files: []
|
|
457
452
|
files:
|
|
458
|
-
- ".codeclimate.yml"
|
|
459
|
-
- ".coderabbit.yaml"
|
|
460
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
461
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
462
|
-
- ".github/ISSUE_TEMPLATE/support-request.md"
|
|
463
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
464
|
-
- ".github/dependabot.yml"
|
|
465
|
-
- ".github/workflows/codeql.yml"
|
|
466
|
-
- ".github/workflows/publishdocker.yml"
|
|
467
|
-
- ".github/workflows/ruby.yml"
|
|
468
|
-
- ".github/workflows/stale.yml"
|
|
469
|
-
- ".gitignore"
|
|
470
|
-
- ".rubocop.yml"
|
|
471
|
-
- ".rubocop_todo.yml"
|
|
472
|
-
- AGENTS.md
|
|
473
453
|
- CHANGELOG.md
|
|
474
454
|
- CONTRIBUTING.md
|
|
475
|
-
- Dockerfile
|
|
476
|
-
- Gemfile
|
|
477
455
|
- LICENSE
|
|
478
456
|
- README.md
|
|
479
|
-
- Rakefile
|
|
480
|
-
- TODO.md
|
|
481
|
-
- bin/console
|
|
482
457
|
- bin/oxidized
|
|
458
|
+
- bin/oxidized-device2yaml
|
|
483
459
|
- docs/Configuration.md
|
|
484
460
|
- docs/Creating-Models.md
|
|
461
|
+
- docs/Deprecated.md
|
|
485
462
|
- docs/DeviceSimulation.md
|
|
486
463
|
- docs/Docker.md
|
|
487
464
|
- docs/Hooks.md
|
|
@@ -800,11 +777,13 @@ files:
|
|
|
800
777
|
- lib/oxidized/version.rb
|
|
801
778
|
- lib/oxidized/worker.rb
|
|
802
779
|
- lib/refinements.rb
|
|
803
|
-
|
|
804
|
-
homepage: http://github.com/ytti/oxidized
|
|
780
|
+
homepage: https://github.com/ytti/oxidized
|
|
805
781
|
licenses:
|
|
806
782
|
- Apache-2.0
|
|
807
783
|
metadata:
|
|
784
|
+
source_code_uri: https://github.com/ytti/oxidized
|
|
785
|
+
changelog_uri: https://github.com/ytti/oxidized/blob/master/CHANGELOG.md
|
|
786
|
+
bug_tracker_uri: https://github.com/ytti/oxidized/issues
|
|
808
787
|
rubygems_mfa_required: 'true'
|
|
809
788
|
rdoc_options: []
|
|
810
789
|
require_paths:
|
|
@@ -822,5 +801,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
822
801
|
requirements: []
|
|
823
802
|
rubygems_version: 3.6.7
|
|
824
803
|
specification_version: 4
|
|
825
|
-
summary:
|
|
804
|
+
summary: Network device configuration backup tool
|
|
826
805
|
test_files: []
|
data/.codeclimate.yml
DELETED
data/.coderabbit.yaml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
reviews:
|
|
2
|
-
auto_review:
|
|
3
|
-
enabled: false
|
|
4
|
-
auto_incremental_review: false
|
|
5
|
-
|
|
6
|
-
commit_status: false
|
|
7
|
-
review_status: false
|
|
8
|
-
high_level_summary: false
|
|
9
|
-
suggested_labels: false
|
|
10
|
-
suggested_reviewers: false
|
|
11
|
-
changed_files_summary: false
|
|
12
|
-
poem: false
|
|
13
|
-
sequence_diagrams: false
|
|
14
|
-
estimate_code_review_effort: false
|
|
15
|
-
assess_linked_issues: false
|
|
16
|
-
related_issues: false
|
|
17
|
-
in_progress_fortune: false
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
chat:
|
|
21
|
-
auto_reply: false
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve oxidized
|
|
4
|
-
title: ''
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
<!--
|
|
10
|
-
Thanks for helping improve Oxidized!
|
|
11
|
-
|
|
12
|
-
Please read docs/Issues.md on how to write a good issue:
|
|
13
|
-
https://github.com/ytti/oxidized/blob/master/docs/Issues.md
|
|
14
|
-
-->
|
|
15
|
-
|
|
16
|
-
> By submitting content here (especially YAML simulation files), I agree that it
|
|
17
|
-
> may be integrated into the project under its license (Apache-2.0).
|
|
18
|
-
|
|
19
|
-
**Describe the bug**
|
|
20
|
-
A clear and concise description of what the bug is.
|
|
21
|
-
|
|
22
|
-
**To Reproduce**
|
|
23
|
-
Steps to reproduce the behavior:
|
|
24
|
-
1. Configure '...'
|
|
25
|
-
2. Use model '....'
|
|
26
|
-
3. Run '....'
|
|
27
|
-
4. See error
|
|
28
|
-
|
|
29
|
-
**Expected behavior**
|
|
30
|
-
A clear and concise description of what you expected to happen.
|
|
31
|
-
|
|
32
|
-
**Configuration**
|
|
33
|
-
```
|
|
34
|
-
If applicable, publish your configuration.
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Logs**
|
|
38
|
-
```
|
|
39
|
-
If applicable, add logs to help explain your problem.
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
**Running environment (please complete the following information):**
|
|
43
|
-
<!-- complete the following information and add further details if needed.
|
|
44
|
-
Always test the latest version of oxidized.
|
|
45
|
-
Tip: run `oxidized --support` as the same user and in the same environment as
|
|
46
|
-
the regular Oxidized process. With Docker, use
|
|
47
|
-
`docker exec --user oxidized <container-name> oxidized --support`. Remove any
|
|
48
|
-
sensitive data before sharing the output. -->
|
|
49
|
-
- OS: [e.g. Debian Bookworm, official container version xxx, ...]
|
|
50
|
-
- oxidized version: [e.g. 0.32.2]
|
|
51
|
-
- oxidized-web version: [e.g. 0.15.1, if applicable]
|
|
52
|
-
- Manufacturer model and software version:
|
|
53
|
-
- oxidized model name:
|
|
54
|
-
|
|
55
|
-
**Device simulation (for model-specific issues)**
|
|
56
|
-
<!--
|
|
57
|
-
If your issue is about a specific device/model, a YAML simulation file helps us
|
|
58
|
-
a lot. When the issue can be reproduced with the current Oxidized model
|
|
59
|
-
unchanged, the easiest way is to enable the yaml debug option in your input
|
|
60
|
-
section:
|
|
61
|
-
|
|
62
|
-
input:
|
|
63
|
-
debug: yaml
|
|
64
|
-
|
|
65
|
-
Reproduce the backup, then attach the generated file from
|
|
66
|
-
~/.config/oxidized/logs/. See docs/DeviceSimulation.md for details, and remember
|
|
67
|
-
to remove sensitive data (passwords, IP addresses, serial numbers).
|
|
68
|
-
-->
|
|
69
|
-
|
|
70
|
-
**Additional context**
|
|
71
|
-
Add any other context about the problem here.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: feature_request
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
<!--
|
|
10
|
-
Thanks for suggesting an improvement to Oxidized!
|
|
11
|
-
|
|
12
|
-
Please read docs/Issues.md on how to write a good issue:
|
|
13
|
-
https://github.com/ytti/oxidized/blob/master/docs/Issues.md
|
|
14
|
-
-->
|
|
15
|
-
|
|
16
|
-
> By submitting content here, I agree that it may be integrated into the project
|
|
17
|
-
> under its license (Apache-2.0).
|
|
18
|
-
|
|
19
|
-
**Is your feature request related to a problem? Please describe.**
|
|
20
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
21
|
-
|
|
22
|
-
**Describe the solution you'd like**
|
|
23
|
-
A clear and concise description of what you want to happen.
|
|
24
|
-
|
|
25
|
-
**Describe alternatives you've considered**
|
|
26
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
27
|
-
|
|
28
|
-
**Additional context**
|
|
29
|
-
Add any other context about the feature request here.
|