Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): KAS nano rewarp canAccess #825

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

pflynn-virtru
Copy link
Member

modification of the term 'policy' to 'Policy' in multiple places across the codebase. The changes affect variable names, error messages, comments, JSON tags, and more. It also introduces new methods to read Policy from the header. These changes ensure consistent usage of the term 'Policy' across the entire codebase.

resolves #807

This commit involves the modification of the term 'policy' to 'Policy' in multiple places across the codebase. The changes affect variable names, error messages, comments, JSON tags, and more. It also introduces new methods to read Policy from the header. These changes ensure consistent usage of the term 'Policy' across the entire codebase.
@pflynn-virtru pflynn-virtru linked an issue May 16, 2024 that may be closed by this pull request
The commit marks the method 'isPolicyBody' in 'sdk/nanotdf.go' as unused using the 'nolint' directive. This is likely to prevent linting tools from raising issues regarding this method, which might be left intentionally unused.
In the nanotdf.go file, a note has been added to the isPolicyBody function within the resourceLocator struct. This is to clarify that the function is a placeholder, used solely to satisfy the interface implementation requirements.
The 'nolint:unused' annotation on the 'isPolicyBody' method within the 'resourceLocator' structure has been removed. To circumvent misuse warning from linter, this method is now also implemented in 'nanotdf_test.go' file as a workaround allowing the function to be unused in the actual code but accessible in the test.
Removed redundancy by deleting the 'ErrInternal' constant and an unnecessary error handling block in the 'if header.Policy != nil' section. This simplifies error handling, making the code cleaner and easier to maintain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KAS nanotdf rewrap does not perform any access checks
1 participant