-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Expose /env and /config for Configuration reporting #6652
base: master
Are you sure you want to change the base?
Conversation
f157030
to
5e8d5d7
Compare
5f84619
to
52d9d9d
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Description
Related Issue
Motivation and Context
How This Has Been Tested
These endpoints are a control port and a dedicated API key
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Enhancement
Description
Introduced a Configuration Reflection API for monitoring/debugging.
Added
/config
and/env
endpoints with secure access.Integrated
structviewer
library for configuration handling.Obfuscated sensitive fields in configuration for security.
Changes walkthrough 📝
config.go
Added Configuration Reflection API configuration.
config/config.go
ConfigurationReflectionCfg
struct for API configuration.APIKey
,Secret
, andNodeSecret
.server.go
Added Configuration Reflection API endpoints.
gateway/server.go
/config
and/env
endpoints for configuration reflection.authConfigurationAPI
middleware for secure API access.structviewer
for handling configuration and environmentvariables.
go.mod
Added `structviewer` dependency.
go.mod
structviewer
library dependency.go.sum
Updated dependencies checksums.
go.sum
structviewer
library.