Open
Conversation
Open
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.
Logger Service Architecture
To develop a secure logger service with the ability to save logs to AWS and a file, I would propose the following architecture:
Logger Service API:
This would act as a middleware between the client applications and the log storage systems. It would handle incoming log requests, validate them, and pass them on to the respective log storage systems.
Authentication and Authorization:
Implement a robust authentication and authorization mechanism to ensure that only authorized users can access the logger service API and perform log-related operations. This can be achieved by using techniques such as API keys, JWT tokens, or OAuth.
Log Storage Systems:
a. AWS CloudWatch:
Configure the necessary AWS credentials and use the AWS SDK to send the logs to CloudWatch. This ensures that logs are securely stored in a scalable and managed environment.
b. Local File System:
Provide an option to save logs to a local file system. Implement proper file access controls to ensure the security of the logs.
Logging Library:
Develop a client library or SDK that can be integrated into client applications to easily send logs to the Logger Service API. The library should handle log formatting, authentication, and log transport logic.
Commit Message:
Implement secure logger service architecture