Skip to content

Commit

Permalink
Remove Admin rest api from enforcer
Browse files Browse the repository at this point in the history
  • Loading branch information
ashera96 committed Oct 10, 2023
1 parent afa5ea5 commit db2b6a9
Show file tree
Hide file tree
Showing 24 changed files with 268 additions and 2,093 deletions.
18 changes: 7 additions & 11 deletions adapter/api/proto/wso2/discovery/config/enforcer/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import "wso2/discovery/config/enforcer/cache.proto";
import "wso2/discovery/config/enforcer/analytics.proto";
import "wso2/discovery/config/enforcer/security.proto";
import "wso2/discovery/config/enforcer/management.proto";
import "wso2/discovery/config/enforcer/rest_server.proto";
import "wso2/discovery/config/enforcer/filter.proto";
import "wso2/discovery/config/enforcer/tracing.proto";
import "wso2/discovery/config/enforcer/metrics.proto";
Expand All @@ -34,20 +33,17 @@ message Config {

JWTGenerator jwtGenerator = 5;

Cache cache = 7;
Cache cache = 6;

Analytics analytics = 7;

Analytics analytics = 8;
Management management = 8;

Management management = 9;
Tracing tracing = 9;

RestServer restServer = 10;
Metrics metrics = 10;

Tracing tracing = 11;
repeated Filter filters = 11;

Metrics metrics = 12;

repeated Filter filters = 13;

Soap soap = 14;
Soap soap = 12;
}
17 changes: 0 additions & 17 deletions adapter/api/proto/wso2/discovery/config/enforcer/rest_server.proto

This file was deleted.

3 changes: 0 additions & 3 deletions adapter/config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ var defaultConfig = &Config{
Username: "admin",
Password: "admin",
},
RestServer: restServer{
Enabled: true,
},
Security: security{
APIkey: apiKey{
Enabled: true,
Expand Down
5 changes: 0 additions & 5 deletions adapter/internal/discovery/xds/marshaller.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ func MarshalConfig(config *config.Config) *enforcer.Config {
Password: config.Enforcer.Management.Password,
}

restServer := &enforcer.RestServer{
Enable: config.Enforcer.RestServer.Enabled,
}

soap := &enforcer.Soap{
SoapErrorInXMLEnabled: config.Adapter.SoapErrorInXMLEnabled,
}
Expand Down Expand Up @@ -174,7 +170,6 @@ func MarshalConfig(config *config.Config) *enforcer.Config {
Metrics: metrics,
Analytics: analytics,
Management: management,
RestServer: restServer,
Filters: filters,
Soap: soap,
}
Expand Down
191 changes: 86 additions & 105 deletions adapter/pkg/discovery/api/wso2/discovery/config/enforcer/config.pb.go

Large diffs are not rendered by default.

This file was deleted.

Loading

0 comments on commit db2b6a9

Please sign in to comment.