Skip to content

feat(securemem): add handler and dump protection tests#86

Open
jithinkunjachan wants to merge 4 commits intomainfrom
feat/add-memvault3
Open

feat(securemem): add handler and dump protection tests#86
jithinkunjachan wants to merge 4 commits intomainfrom
feat/add-memvault3

Conversation

@jithinkunjachan
Copy link
Copy Markdown
Contributor

@jithinkunjachan jithinkunjachan commented Mar 23, 2026

  • Introduce Handler, HandlerRequest, and HandlerResponse abstractions for secure memory operations in internal/securemem/handler.go.
  • Add comprehensive unit and benchmark tests for handler logic.
  • Implement dump protection analysis script and integration tests using Docker and testcontainers to verify memory and dump protection.
  • Provide readonly memory test to ensure secrets cannot be modified after marking as read-only.
  • Update Makefile and go.mod for new dependencies and build flags.

Note

while running the internal/securemem/test/dump/dump_test.go gcore test in github we are getting the following error

Operation not permitted.You can't do that without a process to debug.The program is not being run.gcore: failed to create core.984

So we are skipping these test is CI , but in local it will run

- Introduce Handler, HandlerRequest, and HandlerResponse abstractions
  for secure memory operations in internal/securemem/handler.go.
- Add comprehensive unit and benchmark tests for handler logic.
- Implement dump protection analysis script and integration tests
  using Docker and testcontainers to verify memory and dump
  protection.
- Provide readonly memory test to ensure secrets cannot be modified
  after marking as read-only.
- Update Makefile and go.mod for new dependencies and build flags.
@jithinkunjachan jithinkunjachan self-assigned this Mar 23, 2026
@push-tags-from-workflow push-tags-from-workflow bot added dependencies Pull requests that update a dependency file tests feature dev-ops labels Mar 23, 2026
@jithinkunjachan jithinkunjachan marked this pull request as ready for review March 23, 2026 10:41
Copy link
Copy Markdown

@apatsap apatsap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I've added just some small NP (not big enough to now approve), if you could just change that

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NP:
can we name the folder readonly, then its consistent with the other one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file dev-ops feature tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants