From 6e86fb1112259d2b71733dacd47e4bdcf17b7792 Mon Sep 17 00:00:00 2001 From: Walker Date: Wed, 13 May 2026 13:39:48 -0500 Subject: [PATCH 1/7] Part cFS/workflows#129, Use Updated Static Analysis Workflow --- .github/workflows/static-analysis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 4e827af..85dccf2 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,4 +1,4 @@ -name: Reuse Static Analysis +name: Static Analysis on: push: @@ -15,4 +15,6 @@ on: jobs: static-analysis: name: Static Analysis - uses: nasa/cFS/.github/workflows/app-static-analysis-reusable.yml@dev \ No newline at end of file + uses: nasa/cFS/.github/workflows/static-analysis-reusable.yml@dev + with: + source-dir: 'source/fsw' \ No newline at end of file From c16d2f3c78e38de5232c937c07b245fd857efefb Mon Sep 17 00:00:00 2001 From: Walker Date: Tue, 16 Jun 2026 13:18:13 -0500 Subject: [PATCH 2/7] Fix #197, Initialize Variable msg_size in ci_lab_passthru_decode.c --- fsw/src/ci_lab_passthru_decode.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fsw/src/ci_lab_passthru_decode.c b/fsw/src/ci_lab_passthru_decode.c index 62d8745..e74e0e1 100644 --- a/fsw/src/ci_lab_passthru_decode.c +++ b/fsw/src/ci_lab_passthru_decode.c @@ -92,11 +92,12 @@ CFE_Status_t CI_LAB_DecodeInputMessage(void *SourceBuffer, size_t SourceSize, CF else { MsgBufPtr = SourceBuffer; + MsgSize = 0; /* Check the size from within the header itself, compare against network buffer size */ - CFE_MSG_GetSize(&MsgBufPtr->Msg, &MsgSize); + Status = CFE_MSG_GetSize(&MsgBufPtr->Msg, &MsgSize); - if (MsgSize > SourceSize) + if ((Status == CFE_SUCCESS) && (MsgSize > SourceSize)) { Status = CFE_STATUS_WRONG_MSG_LENGTH; @@ -106,10 +107,6 @@ CFE_Status_t CI_LAB_DecodeInputMessage(void *SourceBuffer, size_t SourceSize, CF (unsigned long)MsgSize, (unsigned long)SourceSize); } - else - { - Status = CFE_SUCCESS; - } } *DestBufferOut = MsgBufPtr; From 3081cfd3981c133618f9a657f6d7ecf79c083f19 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 22 Jul 2026 17:20:28 +0000 Subject: [PATCH 3/7] Part nasa/cFS#1079, Adding specialty PR templates and links to the specialty PR templates in the default PR template. --- .../comment_documentation_change.md | 50 +++++++++++ .../PULL_REQUEST_TEMPLATE/fsw_code_change.md | 88 +++++++++++++++++++ .../PULL_REQUEST_TEMPLATE/workflows_change.md | 50 +++++++++++ .github/pull_request_template.md | 12 +-- 4 files changed, 195 insertions(+), 5 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/fsw_code_change.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/workflows_change.md diff --git a/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md b/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md new file mode 100644 index 0000000..4c5537c --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md @@ -0,0 +1,50 @@ +--- +name: Comment / Documentation Change +about: Changes limited to comments, README, docstrings, or other documentation +labels: documentation +--- + +## Description of Change + + + +## Linked Issue + + +Closes # + +## Areas of Expertise Touched + + +- [ ] ASTRO +- [ ] CI/CD +- [ ] COSMOS +- [ ] Cybersecurity +- [ ] Docker +- [ ] EDS +- [ ] Git +- [ ] PSPs +- [ ] SBN +- [ ] SMP +- [ ] Tables +- [ ] TSN +- [ ] Unit Tests +- [ ] Other + +--- + +## Author Checklist + +- [ ] Linked GitHub issue is referenced above/linked to this PR +- [ ] Documentation generation workflow ran successfully on this branch +- [ ] Changes are limited to documentation/comments (no code behavior changes) + +--- + +## Reviewer Checklist + +- [ ] Documentation is clear, accurate, and complete +- [ ] Spelling and grammar reviewed +- [ ] Any links in the documentation have been verified to work +- [ ] Documentation generation workflow output looks correct +- [ ] Appropriate Expert areas have been reviewed \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md b/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md new file mode 100644 index 0000000..4701113 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md @@ -0,0 +1,88 @@ +--- +name: FSW Code Change +about: Flight Software code changes +labels: fsw +--- + +## Description of Change + + + +## Linked Issue + +Closes # + +## Requirements Impact + + +- Requirement ID(s): +- [ ] Requirements updated as necessary +- [ ] Existing requirements are still satisfied by this change + +## Testing Evidence + + + +### Unit Tests (UT Assert) + + +### COSMOS Test Suite + + +## Areas of Expertise Touched + +- [ ] ASTRO +- [ ] CI/CD +- [ ] COSMOS +- [ ] Cybersecurity +- [ ] Docker +- [ ] EDS +- [ ] Git +- [ ] PSPs +- [ ] SBN +- [ ] SMP +- [ ] Tables +- [ ] TSN +- [ ] Unit Tests +- [ ] Other + +--- + +## Author Checklist + +- [ ] Linked GitHub issue is referenced above +- [ ] Code has been formatted with `.clang-format` +- [ ] Static analysis workflows ran and passed +- [ ] Unit tests (UT Assert) updated/added to cover code changes +- [ ] Unit test workflows ran and passed +- [ ] COSMOS test suite was run; tests updated/added if relevant changes were made +- [ ] Requirements have been reviewed; updated or confirmed still satisfied (see above) +- [ ] Testing evidence is included above +- [ ] Self-review of the diff completed + +--- + +## Reviewer Checklist + +- [ ] Code logic is correct and matches the stated intent +- [ ] Code is readable, maintainable, and follows project conventions +- [ ] `.clang-format` has been applied +- [ ] Static analysis results reviewed and acceptable +- [ ] Unit tests are meaningful and adequately cover the changes +- [ ] **The change has been exercised by the unit tests** (not just that tests pass — the new/changed code paths are actually covered) +- [ ] **COSMOS test suite was executed against this change** and results reviewed (or confirmed N/A with justification) +- [ ] **Reviewer has independently verified the change behaves as described** (e.g., by running the tests locally, reviewing CI output in detail, or performing additional ad-hoc testing as warranted) +- [ ] **Memory safety** reviewed (allocation, bounds, lifetime, stack usage) +- [ ] Requirements impact reviewed and appropriate +- [ ] Error handling is appropriate +- [ ] Appropriate Expert areas have been reviewed + +### Reviewer Testing Notes + + \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/workflows_change.md b/.github/PULL_REQUEST_TEMPLATE/workflows_change.md new file mode 100644 index 0000000..8fe91cb --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/workflows_change.md @@ -0,0 +1,50 @@ +--- +name: Workflows Change +about: Changes to files under .github/workflows/ +labels: ci/workflows +--- + +## Description of Change + + + +## Linked Issue + +Closes # + +## Areas of Expertise Touched + +- [ ] ASTRO +- [ ] CI/CD +- [ ] COSMOS +- [ ] Cybersecurity +- [ ] Docker +- [ ] EDS +- [ ] Git +- [ ] PSPs +- [ ] SBN +- [ ] SMP +- [ ] Tables +- [ ] TSN +- [ ] Unit Tests +- [ ] Other + +--- + +## Author Checklist + +- [ ] Linked GitHub issue is referenced above +- [ ] Workflow changes were tested on a branch/fork before submitting this PR +- [ ] All workflows ran successfully on this branch + +--- + +## Reviewer Checklist + +- [ ] Workflow logic is correct and achieves the stated goal +- [ ] Third-party actions are from trusted sources and pinned to a specific SHA/tag +- [ ] Secrets are handled appropriately (no secrets exposed in logs, least-privilege usage) +- [ ] Workflow permissions follow the principle of least privilege +- [ ] Changes do not break or bypass existing branch protection rules +- [ ] All workflow runs on this PR completed successfully +- [ ] Appropriate Expert areas have been reviewed \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 6458513..3bef5d8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -26,8 +26,10 @@ If included, identify any third party code and provide text file of license **Contributor Info - All information REQUIRED for consideration of pull request** Full name and company/organization/center of all contributors ("Personal" if individual work) -- If NASA Civil Servant Employee or GSFC Contractor on SES II - - Address/email/phone and contract/task information (if applicable) must be on file - - **HAND SIGNED** Company CLA must be on file (once per release): [Company CLA](https://github.com/nasa/cFE/blob/master/docs/GSC_18128_Corp_CLA_form_1219.pdf) -- Else if Individual - - **HAND SIGNED** Individual CLA must be on file (once per release): [Individual CLA](https://github.com/nasa/cFE/blob/master/docs/GSC_18128_Ind_CLA_form_1219.pdf) + - Note CLA's apply to software contributions. + +**For members of the cFS Team** +Click the `Preview` tab and select the pull request template corresponding to the type of change you are submitting: +- [Comment/Documentation Change](?expand=1&template=comment_documentation_change.md) +- [Flight Software Code Change](?expand=1&template=fsw_code_change.md) +- [Workflows Change](?expand=1&template=workflows_change.md) From b4fc6cc5e4629f5fab4d832f689fbff7b66a698d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 3 Aug 2026 19:32:21 +0000 Subject: [PATCH 4/7] Part nasa/cFS#1079, adding further guidance to the pull request templates. --- .../comment_documentation_change.md | 1 + .github/PULL_REQUEST_TEMPLATE/fsw_code_change.md | 5 +++-- .github/PULL_REQUEST_TEMPLATE/workflows_change.md | 2 ++ .github/pull_request_template.md | 13 +++++++------ 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md b/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md index 4c5537c..de1252a 100644 --- a/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md +++ b/.github/PULL_REQUEST_TEMPLATE/comment_documentation_change.md @@ -16,6 +16,7 @@ Closes # ## Areas of Expertise Touched + - [ ] ASTRO - [ ] CI/CD - [ ] COSMOS diff --git a/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md b/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md index 4701113..2a8f865 100644 --- a/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md +++ b/.github/PULL_REQUEST_TEMPLATE/fsw_code_change.md @@ -31,6 +31,8 @@ Closes # ## Areas of Expertise Touched + + - [ ] ASTRO - [ ] CI/CD - [ ] COSMOS @@ -65,10 +67,9 @@ Closes # ## Reviewer Checklist - [ ] Code logic is correct and matches the stated intent -- [ ] Code is readable, maintainable, and follows project conventions +- [ ] Code is readable, maintainable, and follows project conventions (ask your lead if you are unsure of where to find these conventions) - [ ] `.clang-format` has been applied - [ ] Static analysis results reviewed and acceptable -- [ ] Unit tests are meaningful and adequately cover the changes - [ ] **The change has been exercised by the unit tests** (not just that tests pass — the new/changed code paths are actually covered) - [ ] **COSMOS test suite was executed against this change** and results reviewed (or confirmed N/A with justification) - [ ] **Reviewer has independently verified the change behaves as described** (e.g., by running the tests locally, reviewing CI output in detail, or performing additional ad-hoc testing as warranted) diff --git a/.github/PULL_REQUEST_TEMPLATE/workflows_change.md b/.github/PULL_REQUEST_TEMPLATE/workflows_change.md index 8fe91cb..700e398 100644 --- a/.github/PULL_REQUEST_TEMPLATE/workflows_change.md +++ b/.github/PULL_REQUEST_TEMPLATE/workflows_change.md @@ -14,6 +14,8 @@ Closes # ## Areas of Expertise Touched + + - [ ] ASTRO - [ ] CI/CD - [ ] COSMOS diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3bef5d8..a8c4510 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,3 +1,9 @@ +**For members of the cFS Team** +Click the `Preview` tab and select the pull request template corresponding to the type of change you are submitting: +- [Comment/Documentation Change](?expand=1&template=comment_documentation_change.md) +- [Flight Software Code Change](?expand=1&template=fsw_code_change.md) +- [Workflows Change](?expand=1&template=workflows_change.md) + **Describe the contribution** A clear and concise description of what the contribution is. - Include explicitly what issue it addresses [e.g. Fixes #X] @@ -27,9 +33,4 @@ If included, identify any third party code and provide text file of license **Contributor Info - All information REQUIRED for consideration of pull request** Full name and company/organization/center of all contributors ("Personal" if individual work) - Note CLA's apply to software contributions. - -**For members of the cFS Team** -Click the `Preview` tab and select the pull request template corresponding to the type of change you are submitting: -- [Comment/Documentation Change](?expand=1&template=comment_documentation_change.md) -- [Flight Software Code Change](?expand=1&template=fsw_code_change.md) -- [Workflows Change](?expand=1&template=workflows_change.md) + \ No newline at end of file From f8766bbaf1b966fb1fbbb4a248d2d98ebcd664ae Mon Sep 17 00:00:00 2001 From: Justin Figueroa Date: Mon, 14 Sep 2026 11:43:55 -0400 Subject: [PATCH 5/7] Fix #202, Adds invalid CC error branch --- fsw/inc/ci_lab_eventids.h | 1 + fsw/src/ci_lab_dispatch.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/fsw/inc/ci_lab_eventids.h b/fsw/inc/ci_lab_eventids.h index 6becf3d..9709db5 100644 --- a/fsw/inc/ci_lab_eventids.h +++ b/fsw/inc/ci_lab_eventids.h @@ -39,5 +39,6 @@ #define CI_LAB_SB_SUBSCRIBE_HK_ERR_EID 13 #define CI_LAB_SB_SUBSCRIBE_UL_ERR_EID 14 #define CI_LAB_CMD_LEN_ERR_EID 16 +#define CI_LAB_CC_ERR_EID 17 #endif diff --git a/fsw/src/ci_lab_dispatch.c b/fsw/src/ci_lab_dispatch.c index 9159b64..b6d7e07 100644 --- a/fsw/src/ci_lab_dispatch.c +++ b/fsw/src/ci_lab_dispatch.c @@ -72,6 +72,7 @@ bool CI_LAB_VerifyCmdLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLeng void CI_LAB_ProcessGroundCommand(const CFE_SB_Buffer_t *SBBufPtr) { CFE_MSG_FcnCode_t FcnCode = 0; + CFE_SB_MsgId_t MsgId = CFE_SB_INVALID_MSG_ID; CFE_MSG_GetFcnCode(&SBBufPtr->Msg, &FcnCode); @@ -93,6 +94,13 @@ void CI_LAB_ProcessGroundCommand(const CFE_SB_Buffer_t *SBBufPtr) break; default: + CFE_MSG_GetMsgId(&SBBufPtr->Msg, &MsgId); + CFE_EVS_SendEvent(CI_LAB_CC_ERR_EID, + CFE_EVS_EventType_ERROR, + "Invalid ground command code: ID = 0x%08lX, CC = %d", + (unsigned long)CFE_SB_MsgIdToValue(MsgId), + (int)FcnCode); + CI_LAB_Global.HkTlm.Payload.CommandErrorCounter++; break; } } From f2645d08b6fdfe7275bf80be017fbca9b2c476a6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 23 Sep 2026 13:51:32 -0400 Subject: [PATCH 6/7] Part nasa/cFS#1136, Update SECURITY.md --- SECURITY.md | 42 ++++++------------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 0ef3fb8..9106dde 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,41 +1,11 @@ # Security Policy -## Reporting a Vulnerability +**CI Lab is a demo application with no security guarantees and not intended for flight deployment.** Any issues found in this repository should be submitted as a bug report instead of vulnerability. Please use the "Bug Report" template and provide as much information as possible. Apply appropriate labels for each report. -To report a vulnerability for the ci_lab subsystem please [submit an issue](https://github.com/nasa/ci_lab/issues/new/choose). +Any report that relies on the unauthenticated nature of commands sent through CI Lab will be given low priority due to this being intended and expected behavior of CI Lab. Flight projects are responsible for ensuring that the environment and commands are secure. The [cFS Gov](https://github.com/nasa/cFS#cfs-gov-mission-ready-version) bundle is intended to provide a mission-ready version of cFS. -For general cFS vulnerabilities please [open a cFS framework issue](https://github.com/nasa/cfs/issues/new/choose) and see our [top-level security policy](https://github.com/nasa/cFS/security/policy) for additional information. +Please refer to the [cFS Security Policy](https://github.com/nasa/cFS/blob/main/SECURITY.md) for information on: -In either case please use the "Bug Report" template and provide as much information as possible. Apply appropriate labels for each report. For security related reports, tag the issue with the "security" label. - -## Testing - -**Disclaimer: nasa/ci_lab is not responsible for any liability incurred under the [Apache License 2.0](https://github.com/nasa/ci_lab/blob/main/LICENSE).** - -Testing is an important aspect our team values to improve ci_lab. - -To view tools used for the cFS bundle, see our [top-level security policy](https://github.com/nasa/cFS/security/policy). - -### CodeQL - -The [ci_lab CodeQL GitHub Actions workflow](https://github.com/nasa/ci_lab/actions/workflows/codeql-build.yml) is available to the public. To review the results, fork the ci_lab repository and run the CodeQL workflow. - -CodeQL is ran for every push and pull-request on all branches of ci_lab in GitHub Actions. - -For the CodeQL GitHub Actions setup, visit https://github.com/github/codeql-action. - -### Cppcheck - -The [ci_lab Cppcheck GitHub Actions workflow and results](https://github.com/nasa/ci_lab/actions/workflows/static-analysis.yml) are available to the public. To view the results, select a workflow and download the artifacts. - -Cppcheck is ran for every push on the main branch and every pull request on all branches of ci_lab in Github Actions. - -For more information about Cppcheck, visit http://cppcheck.sourceforge.net/. - -## Additional Support - -For additional support, submit a GitHub issue. You can also email the cfs community at cfs-community@lists.nasa.gov. - -You can subscribe to the mailing list [here](https://lists.nasa.gov/mailman/listinfo/cfs-community) that includes all the community members/users of the NASA core Flight Software (cFS) product line. The mailing list is used to communicate any information related to the cFS product such as current releases, bug findings and fixes, enhancement requests, community meeting notifications, sending out meeting minutes, etc. - -If you wish to report a cybersecurity incident or concern, please contact the NASA Security Operations Center either by phone at 1-877-627-2732 or via email address soc@nasa.gov. +- Reporting security vulnerabilities through NASA's Vulnerability Disclosure Program (VDP) +- Security testing practices +- Additional support resources From 7ed11b75921e3f8d72a6c2164accf60e33966f34 Mon Sep 17 00:00:00 2001 From: "LOMBAY-GONZALEZ, JOSE" Date: Tue, 29 Sep 2026 15:23:39 -0400 Subject: [PATCH 7/7] Part #1132, Update README.md for v7.0.2rc1. Added clarification to make about cFS being a demonstration bundle Added link to the mission ready cFS bundle Provided link to open issues --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 53fb142..bddb410 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,15 @@ This repository contains NASA's Command Ingest Lab (ci_lab), which is a framework component of the Core Flight System. -This lab application is a non-flight utility to send commands to the cFS Bundle. It is intended to be located in the `apps/ci_lab` subdirectory of a cFS Mission Tree. The Core Flight System is bundled at (which includes ci_lab as a submodule), which includes build and execution instructions. +This lab application is a non-flight utility to send commands to the cFS Bundle. It is intended to be located in the `apps/ci_lab` subdirectory of a cFS Mission Tree. A demonstration bundle of the Core Flight System is available at (which includes ci_lab as a submodule) and includes build and execution instructions. + +For information about a mission ready cFS bundle, see: ci_lab is a simple command uplink application that accepts CCSDS telecommand packets over a UDP/IP port. It does not provide a full CCSDS Telecommand stack implementation. ## Known issues -As a lab application, extensive testing is not performed prior to release and only minimal functionality is included. +As a lab application, extensive testing is not performed prior to release and only minimal functionality is included. See all [open issues](https://github.com/nasa/ci_lab/issues). ## Getting Help