]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: adjust for master to main rename 13857/head 13860/head
authorVictor Julien <vjulien@oisf.net>
Tue, 16 Sep 2025 15:20:56 +0000 (17:20 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 16 Sep 2025 15:20:56 +0000 (17:20 +0200)
17 files changed:
.github/workflows/formatting.yml
README.md
doc/GITGUIDE
doc/userguide/appendix/eve-schema.rst
doc/userguide/devguide/codebase/code-style.rst
doc/userguide/devguide/codebase/testing.rst
doc/userguide/devguide/contributing/backports-guide.rst
doc/userguide/devguide/contributing/code-submission-process.rst
doc/userguide/devguide/contributing/contribution-process.rst
doc/userguide/devguide/extending/app-layer/app-layer-frames.rst
doc/userguide/devguide/extending/output/index.rst
doc/userguide/devguide/libsuricata/index.rst
doc/userguide/install/ubuntu.rst
doc/userguide/rules/rule-types.rst
doc/userguide/unix-socket.rst
examples/plugins/c-custom-loggers/README.md
examples/plugins/c-json-filetype/README.md

index e6832064ead994ed89fe13166eb4cc27f37c8612..ec4cabfbf3dc9d272999d42540cfba7475e8d8f3 100644 (file)
@@ -76,13 +76,13 @@ jobs:
                 zlib1g-dev
       # Checking out the branch is not as simple as "checking out".
       #
-      # In case master has any new commits since we branched off, github will
-      # automatically add a "merge commit" from our branch to master and check
+      # In case main has any new commits since we branched off, github will
+      # automatically add a "merge commit" from our branch to main and check
       # this out instead of the original last commit on the branch.
       #
       # This screws up git clang-format as it'll also format the "merge commit"
       # and essentially report any formatting issues in the "merge commit".
-      # However, we really don't care about any of the new commits on master.
+      # However, we really don't care about any of the new commits on main.
       #
       # There are supposed to be ways to use with/ref to fix that and while
       # they work perfectly well for pull requests within the forked repo, none
@@ -123,7 +123,7 @@ jobs:
           second_last_commit_sha=$(git log --pretty=%H -2 |tail -1)
           echo "$last_commit_subject" | grep -e "^Merge $second_last_commit_sha into [0-9a-fA-F]*$" > /dev/null 2>&1
           if [ $? -eq 0 ]; then
-              # Last commit was a merge to master - ignore
+              # Last commit was a merge to main - ignore
               echo "Found github merge commit - checking out real last commit instead..."
               git checkout $second_last_commit_sha
           else
index 657549be2619587cf08a1d36aa738c09ae910cc1..45831312ec3b18d88d0e5b75043b0fc1248fb010 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
 # Suricata
 
 [![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/suricata.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:suricata)
-[![codecov](https://codecov.io/gh/OISF/suricata/branch/master/graph/badge.svg?token=QRyyn2BSo1)](https://codecov.io/gh/OISF/suricata)
+[![codecov](https://codecov.io/gh/OISF/suricata/branch/main/graph/badge.svg?token=QRyyn2BSo1)](https://codecov.io/gh/OISF/suricata)
 
 ## Introduction
 
index 41b4059a3c2cd34a2d0b399a00fb6e7a05b24f03..32232d375e7d2fdd30cddad17210862c961ff65b 100644 (file)
@@ -18,7 +18,7 @@ The following workflow is recommended by Evan and is the guideline for contribut
 
    3.
 
-      Create a branch for your work. This will make a copy of the current branch (master) and name it "new_feature". Now you can work in this new branch without breaking the main one.
+      Create a branch for your work. This will make a copy of the current branch (main) and name it "new_feature". Now you can work in this new branch without breaking the main one.
 
       git checkout -b new_feature
 
@@ -30,9 +30,9 @@ The following workflow is recommended by Evan and is the guideline for contribut
 
    5.
 
-      When you are ready to send your local changes back to the Rubinius repository, you first need to ensure that your local copy is up-to-date. First, ensure you have committed your local changes. Then switch from your topic branch to the master branch.
+      When you are ready to send your local changes back to the Rubinius repository, you first need to ensure that your local copy is up-to-date. First, ensure you have committed your local changes. Then switch from your topic branch to the main branch.
 
-      git checkout master
+      git checkout main
 
    6.
 
@@ -45,11 +45,11 @@ The following workflow is recommended by Evan and is the guideline for contribut
       Switch back to your topic branch and integrate any new changes. The git rebase command will save your changes away, update the topic branch, and then reapply them.
 
       git checkout new_feature
-      git rebase master
+      git rebase main
 
       Warning! If you are sharing a branch, you must use:
 
-      git merge master
+      git merge main
 
       Rebase causes the commit layout to change and will confuse anyone you've shared this branch with.
 
@@ -61,9 +61,9 @@ The following workflow is recommended by Evan and is the guideline for contribut
 
    9.
 
-      Now, switch back to the master branch and merge your changes from the topic branch
+      Now, switch back to the main branch and merge your changes from the topic branch
 
-      git checkout master
+      git checkout main
       git merge new_feature
 
   10.
@@ -84,7 +84,7 @@ The following workflow is recommended by Evan and is the guideline for contribut
 
       git branch -d new_feature
 
-When you're familiar with the workflow, you can use the rake tasks to help you out. For example, rake git will fetch the latest code from remote repo, rebase the current branch to master, fast-forward the changes to master and push the commits to the remote. This saves a lot of typing. Check rake -T git for all the git related tasks.
+When you're familiar with the workflow, you can use the rake tasks to help you out. For example, rake git will fetch the latest code from remote repo, rebase the current branch to main, fast-forward the changes to main and push the commits to the remote. This saves a lot of typing. Check rake -T git for all the git related tasks.
 
 Taken from: http://rubinius.lighthouseapp.com/projects/5089/using-git
 
index 1462fc60565a60b71165e5a548e72a6924ae62fd..39984d964a7fafe2891e83bc52f12d9232f0186b 100644 (file)
@@ -6,7 +6,7 @@ log files. This schema follows the `JSON Schema
 <https://json-schema.org/>`_ specification and can be found in
 ``etc/schema.json``. If your distribution does not contain this file,
 it can be viewed online at
-https://github.com/OISF/suricata/blob/master/etc/schema.json, but note
+https://github.com/OISF/suricata/blob/main/etc/schema.json, but note
 that it is version-specific and may change between major versions of
 Suricata.
 
index 5fb2074d0b31e82d9c6f2ee09f9e0d64917e5118..fe747057910556d583dbead22e9ec142a86acdde 100644 (file)
@@ -87,7 +87,7 @@ Formatting your branch's commits
 In case you have multiple commits on your branch already and forgot to
 format them you can fix that up as well.
 
-The following command will format every commit in your branch off master and
+The following command will format every commit in your branch off main and
 rewrite history using the existing commit metadata.
 
 Tip: Create a new version of your branch first and run this off the new version.
@@ -108,8 +108,8 @@ formatting changes:
     # Or with script:
     $ scripts/clang-format.sh branch
 
-Note the usage of ``first_commit_on_your_branch^``, not ``master``, to avoid picking up
-new commits on ``master`` in case you've updated master since you've branched.
+Note the usage of ``first_commit_on_your_branch^``, not ``main``, to avoid picking up
+new commits on ``main`` in case you've updated main since you've branched.
 
 Check formatting
 ~~~~~~~~~~~~~~~~
@@ -755,7 +755,7 @@ Banned functions
 +------------+---------------+-----------+
 
 Also, check the existing code. If yours is wildly different, it's wrong.
-Example: https://github.com/oisf/suricata/blob/master/src/decode-ethernet.c
+Example: https://github.com/oisf/suricata/blob/main/src/decode-ethernet.c
 
 Rust
 ****
index 41cd88c81047c2155dff5f80b6f566d8b0756ae7..2eea615b5298e4be48c5bd2aa7e788c36e20379f 100644 (file)
@@ -15,7 +15,7 @@ There are a few ways of testing Suricata:
 - **Static and dynamic analysis tools**: to help in finding bugs, memory leaks and other issues (like     `scan-build <https://clang-analyzer.llvm.org/scan-build.html#scanbuild_basicusage>`_, from `clang`,     which is also used for our C formatting checks; or ASAN, which checks for memory issues);
 - **Fuzz testing**: especially good for uncovering existing, often non-trivial bugs. For more on how to fuzz test Suricata, check :doc:`fuzz-testing`;
 - **CI checks**: each PR submitted to the project's public repositories will be run against a suit of Continuous Integration
-  workflows, as part of our QA process. Those cover: formatting and commit checks; fuzz tests (CI Fuzz), and several  builds. See our `github workflows <https://github.com/OISF/suricata/tree/master/.github/workflows>`_ for details and those in
+  workflows, as part of our QA process. Those cover: formatting and commit checks; fuzz tests (CI Fuzz), and several  builds. See our `github workflows <https://github.com/OISF/suricata/tree/main/.github/workflows>`_ for details and those in
   action at `<https://github.com/OISF/suricata/actions>`_.
 
   .. note:: If you can run unit tests or other checks and report failures in our `issue tracker <https://redmine.openinfosecfoundation.org/projects/suricata/issues>`_, that is rather useful and appreciated!
@@ -40,7 +40,7 @@ given that the way to do so differs, depending on the language.
 Code Examples
 ^^^^^^^^^^^^^
 
-An example from the `DNS parser <https://github.com/OISF/suricata/blob/master/rust/src/dns/parser.rs#L417>`_. This
+An example from the `DNS parser <https://github.com/OISF/suricata/blob/main/rust/src/dns/parser.rs#L417>`_. This
 checks that the given raw input (note the comments indicating what it means), once processed by ``dns_parse_name`` yields
 the expected result, including the unparsed portion.
 
index 4d719a6c1d55bd73de4f24c265497c3398b53ed3..b9bf2872475cad70310f39fd0062f0ee4e0dfeb0 100644 (file)
@@ -12,7 +12,7 @@ There are multiple versions of Suricata at any given time:
     * Old stable release
 
 For example, at the moment, there are 3 releases based on these Suricata branches:
-    * master: 8.0.0-dev, current development branch
+    * main: 8.0.0-dev, current development branch
     * main-7.0.x: major stable release (note we're changing our naming conventions)
     * master-6.0.x: old stable release
 
@@ -33,7 +33,7 @@ issue should be backported, please let us know in the ticket or related PR. But
 sometimes we'll miss those.
 
 The general principle used to determine what will be backported is:
-    * security fixes (please see our `Security Policy <https://github.com/OISF/suricata/blob/master/SECURITY.md>`_)
+    * security fixes (please see our `Security Policy <https://github.com/OISF/suricata/blob/main/SECURITY.md>`_)
     * bug fixes
     * in some cases, new features are backported if there are sufficient reasons to
       backport a new feature.
@@ -80,21 +80,21 @@ Therefore, we will be periodically reviewing:
 
 Then, also periodically, we will create backport issues from those items
 identified in the previous steps. When doing so, we will evaluate what are the
-relevant target backport releases. Some issues reported against master or the
+relevant target backport releases. Some issues reported against main or the
 current Suricata release may not apply to older releases.
 
 Git Backport Workflow
 ---------------------
 
 If you are working on a task that needs to be backported, only start the
-backporting process once the PR for master has been merged. Then:
+backporting process once the PR for main has been merged. Then:
 
     * *Identify the commit(s) needed* for the backport. Start with the PR that merged
-      the commits into master and select only the commits from the issue being
+      the commits into main and select only the commits from the issue being
       backported.
     * *Bring each commit into the new branch,* one at a time -- starting with the
       oldest commit. Use ``git cherry-pick -x commit-hash``, where ``commit-hash``
-      is the hash to the commit already in master or main-7.0x that is being
+      is the hash to the commit already in main or main-7.0x that is being
       backported, as it maintains the linkage with said cherry-picked commit.
     * *Resolve conflicts:* Some of the cherry-picked commits may contain merge
       conflicts. If the conflicts are small, include the corrections in the
@@ -108,7 +108,7 @@ backporting process once the PR for master has been merged. Then:
 
 .. Note:: Exceptions
 
-   Sometimes, the fix for master will not work for the stable or old releases.
+   Sometimes, the fix for main will not work for the stable or old releases.
    In such cases, the backporting process won't be through cherry-picking, but
    through actually implementing a fix for the specific version.
 
index 78e50d3eebdc5d2d83068add8326c63b0546ba6f..950506fcdcd6b5994d3117579fe62a1271e1be6c 100644 (file)
@@ -62,7 +62,7 @@ A github pull request is actually just a pointer to a branch in your tree. GitHu
 #. Incremental pull requests need to describe changes since the last PR
 #. Link to the ticket(s) that are addressed to it.
 #. When fixing an issue, update the issue status to ``In Review`` after submitting the PR.
-#. Pull requests are automatically tested using github actions (https://github.com/OISF/suricata/blob/master/.github/workflows/builds.yml).
+#. Pull requests are automatically tested using github actions (https://github.com/OISF/suricata/blob/main/.github/workflows/builds.yml).
    Failing builds won't be considered and should be closed immediately.
 #. Pull requests that change, or add a feature should include a documentation update commit
 
index 006fecf0352d338bbeadfcf5cbf3441a5e13ede8..2db105bb7761430eb40874fa5ba26a314edfe8fe 100644 (file)
@@ -10,7 +10,7 @@ Essentially, these are:
 #. Agree to and sign our :ref:`Contribution Agreement<contribution-agreement>`
 #. Communicate early, and use the :ref:`preferred channels <communication-channels>`
 #. :ref:`claim-ticket`
-#. :ref:`Fork from master <what-branch-to-work-on>`
+#. :ref:`Fork from main <what-branch-to-work-on>`
 #. Follow our :ref:`Coding Style`
 #. Use our :ref:`documentation-style`
 #. Stick to our :ref:`commit guidelines<commits>`
@@ -183,16 +183,16 @@ There are usually 2 or 3 active branches:
 
     * master-x.x.x (e.g. master-6.0.x)
     * main-x.x.x (e.g. main-7.0.x)
-    * master
+    * main
 
-The ones with version numbers are stable branches. **master** is the development branch.
+The ones with version numbers are stable branches. **main** is the development branch.
 
 The stable branch should only be worked on for important bug fixes or other
 needed :doc:`backports<backports-guide>`. Those are mainly expected from more
 experienced contributors.
 
 Development of new features or large scale redesign is done in the development
-branch. New development and new contributors should work with *master* except
+branch. New development and new contributors should work with *main* except
 in very special cases - which should and would be discussed with us first.
 
 If in doubt, please reach out to us via :ref:`Redmine, Discord or
@@ -298,7 +298,7 @@ When using these, indicate the portion to be highlighted by surrounding it with
 
 It is only necessary to invoke the role once per document. One can see these
 being invoked in our introduction to the rule language (see `Rules intro
-<https://raw.githubusercontent.com/OISF/suricata/master/doc/userguide/rules/intro.rst>`_).
+<https://raw.githubusercontent.com/OISF/suricata/main/doc/userguide/rules/intro.rst>`_).
 
 A rule example like::
 
index cee854c6f30dbc16a096b9fbab8d329627b3e68a..09c2423fb055cb87a545d084146e815744e495f8 100644 (file)
@@ -71,7 +71,7 @@ Though the steps are the same, there are a few differences when implementing fra
 Rust
 ----
 
-This section shows how Frame support is added in Rust, using examples from the `SIP parser <https://github.com/OISF/suricata/blob/master/rust/src/sip/sip.rs>`_, and the `telnet parser <https://github.com/OISF/suricata/blob/master/rust/src/telnet/telnet.rs>`_.
+This section shows how Frame support is added in Rust, using examples from the `SIP parser <https://github.com/OISF/suricata/blob/main/rust/src/sip/sip.rs>`_, and the `telnet parser <https://github.com/OISF/suricata/blob/main/rust/src/telnet/telnet.rs>`_.
 
 **Define the frame types**. The frame types are defined as an enum. In Rust, make sure to derive from the ``AppLayerFrameType``:
 
index 8cda0ce7e67d07a4404b73054d6db8670e6b8270..95b15bc58bf4224148b507815b0fdb451df81789 100644 (file)
@@ -23,7 +23,7 @@ applications using Suricata as a library.
 
 The Suricata source code contains an example plugin demonstrating how
 to hook into some of these APIs. See
-https://github.com/OISF/suricata/blob/master/examples/plugins/c-custom-loggers/custom-logger.c.
+https://github.com/OISF/suricata/blob/main/examples/plugins/c-custom-loggers/custom-logger.c.
 
 Packet Logging
 ~~~~~~~~~~~~~~
index 943cef6a25c65e2e59b871164cfd9422a09c5b0e..9632a35a7640dd75d044f99502f016c29f4d77e6 100644 (file)
@@ -26,7 +26,7 @@ Application-layer plugins
 ~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Application layer plugins can be added as demonstrated by example
-https://github.com/OISF/suricata/blob/master/examples/plugins/altemplate/
+https://github.com/OISF/suricata/blob/main/examples/plugins/altemplate/
 
 The plugin code contains the same files as an application layer in the source tree:
   - alname.rs : entry point of protocol with its registration
@@ -65,4 +65,4 @@ Known limitations are:
 .. attention:: A pure rust plugin needs to be compiled with ``RUSTFLAGS=-Clink-args=-Wl,-undefined,dynamic_lookup``
 
 This is because the plugin will link dynamically at runtime the functions defined in Suricata runtime.
-You can define this rust flag in a ``.cargo/config.toml`` file.
\ No newline at end of file
+You can define this rust flag in a ``.cargo/config.toml`` file.
index 3b757b9f5ac3c8957892cfc0a8f8bd281a2e919b..347dfb401ac5d52be9089c493e77634d0332b392 100644 (file)
@@ -74,7 +74,7 @@ repository, the same procedures as above apply, just using another PPA,
 
 .. note::
 
-    Please have in mind that this is packaged from our latest development git master
+    Please have in mind that this is packaged from our latest development git main
     and is therefore potentially unstable.
 
     We do our best to make others aware of continuing development and items
index 96c99478a3a600facd885d83d14a7640801c6d22..6d239cba0ca2a00bdfccff79b0881223c80cc47f 100644 (file)
@@ -9,7 +9,7 @@ Rule Types and Categorization
 Once parsed, Suricata rules are categorized for performance and further
 processing (as different rule types will be handled by specific engine modules).
 The signature types are defined in `src/detect.h
-<https://github.com/OISF/suricata/blob/master/src/detect.h>`_:
+<https://github.com/OISF/suricata/blob/main/src/detect.h>`_:
 
 .. literalinclude:: ../../../src/detect.h
     :caption: src/detect.h
@@ -62,7 +62,7 @@ The rule type will impact:
 This categorization is done taking into consideration the presence or absence of
 certain rule elements, as well as the type of keywords used. The categorization
 currently takes place in `src/detect-engine-build.c:void SignatureSetType()
-<https://github.com/OISF/suricata/blob/master/src/detect-engine-build.c#L1642-L1704>`_.
+<https://github.com/OISF/suricata/blob/main/src/detect-engine-build.c#L1642-L1704>`_.
 
 The ``SignatureSetType()`` overall flow is described below:
 
@@ -173,7 +173,7 @@ Signature Properties
 --------------------
 
 The `Action Scope` mentioned above relates to the Signature Properties, as seen in
-`src/detect-engine.c <https://github.com/OISF/suricata/blob/master/src/detect-engine.c>`_:
+`src/detect-engine.c <https://github.com/OISF/suricata/blob/main/src/detect-engine.c>`_:
 
 .. literalinclude:: ../../../src/detect-engine.c
     :caption: src/detect-engine.c
@@ -293,7 +293,7 @@ Decoder Events Only
 Signatures that inspect broken or invalid packets. They expose Suricata decoding
 events.
 
-For more examples check https://github.com/OISF/suricata/blob/master/rules/decoder-events.rules.
+For more examples check https://github.com/OISF/suricata/blob/main/rules/decoder-events.rules.
 
 Example
 """""""
index e870096bb513871f12cce8c63cb6fdeb088cd70f..83b8ab5c8f9f3bc99f6dd1a515055eec2ac2c9f4 100644 (file)
@@ -26,7 +26,7 @@ directory.
 Clients are implemented for some programming languages and can be used as code
 example to write custom scripts:
 
-* Rust: https://github.com/OISF/suricata/blob/master/rust/suricatasc (version provided in Suricata 8+)
+* Rust: https://github.com/OISF/suricata/blob/main/rust/suricatasc (version provided in Suricata 8+)
 * Python: https://github.com/OISF/suricata/blob/main-7.0.x/python/suricata/sc/suricatasc.py (Python version from older versions of Suricata)
 * Perl: https://github.com/aflab/suricatac (a simple Perl client with interactive mode)
 * C: https://github.com/regit/SuricataC (a Unix socket mode client in C without interactive mode)
index 412cc4f2dfaf166917cca96eae8f69f9cdc64f1c..4a0b718a0b0cc8fc4cf56a21f07f6acf1449998b 100644 (file)
@@ -25,7 +25,7 @@ Building a standalone plugin has the following dependencies:
 Modify the Makefile to use `libsuricata-config`.
 
 Before building this plugin you will need to build and install Suricata from the
-git master branch and install the development tools and headers:
+git main branch and install the development tools and headers:
 
 - `make install-library`
 - `make install-headers`
index fa0ae8adf618c4246d465c55a7ba7d09b297ed9a..75c3982cf62a36d5bc92f982c19d282821b01eff 100644 (file)
@@ -21,7 +21,7 @@ Building a standalone plugin has the following dependencies:
 Modify the Makefile to use `libsuricata-config`.
 
 Before building this plugin you will need to build and install Suricata from the
-git master branch and install the development tools and headers:
+git main branch and install the development tools and headers:
 
 - `make install-library`
 - `make install-headers`