refactor: update authz files to use proto3.#1851
Merged
JoshuaSBrown merged 5 commits into1847-DAPS-refactor-python-client-to-use-proto3from Feb 7, 2026
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors the GridFTP authz worker and its unit tests to use the consolidated proto3 envelope definitions and new version constants, replacing legacy SDMS Anon/Auth protobuf types and macros. Updated class diagram for AuthzWorker proto3 migrationclassDiagram
class AuthzWorker {
+int processResponse(response)
+int checkAuth(client_id, path, action)
+static const char* getVersion()
+static const char* getAPIVersion()
+static const char* getReleaseVersion()
-Config* m_config
}
class RepoAuthzRequest {
+void set_repo(repo)
+void set_client(client)
+void set_path(path)
+void set_action(action)
}
class NackReply {
+int code
+string message
}
class protocol_version {
<<static constants>>
+int MAJOR
+int MINOR
+int PATCH
}
class release {
<<static constants>>
+int YEAR
+int MONTH
+int DAY
+int HOUR
+int MINUTE
}
AuthzWorker ..> RepoAuthzRequest : creates
AuthzWorker ..> NackReply : casts payload
AuthzWorker ..> protocol_version : builds API version string
AuthzWorker ..> release : builds release version string
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider avoiding the global
using namespace SDMS;inAuthzWorker.cppand instead qualifying the protobuf types (e.g.,SDMS::NackReply,SDMS::RepoAuthzRequest) to reduce the risk of name collisions and keep the scope of the refactor more explicit. - In the test file, you could similarly drop the broad
using namespaceand use fully-qualifiedSDMS::types for protobuf messages to make it clearer which generated classes are being exercised after the migration toenvelope.pb.h.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider avoiding the global `using namespace SDMS;` in `AuthzWorker.cpp` and instead qualifying the protobuf types (e.g., `SDMS::NackReply`, `SDMS::RepoAuthzRequest`) to reduce the risk of name collisions and keep the scope of the refactor more explicit.
- In the test file, you could similarly drop the broad `using namespace` and use fully-qualified `SDMS::` types for protobuf messages to make it clearer which generated classes are being exercised after the migration to `envelope.pb.h`.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
f92e446 to
af693c7
Compare
…48-DAPS-refactor-authz-library
…48-DAPS-refactor-authz-library
c8bb534
into
1847-DAPS-refactor-python-client-to-use-proto3
5 of 7 checks passed
JoshuaSBrown
added a commit
that referenced
this pull request
Feb 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
Description
How Has This Been Tested?
Artifacts (if appropriate):
Tasks
Summary by Sourcery
Refactor GridFTP authz worker and tests to use the consolidated proto3 envelope definitions and updated version metadata.
Enhancements:
Tests: