Skip to content

update gRPC PutConfig/PutSecret message #671

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

Merged
merged 10 commits into from
Sep 12, 2024
Merged

Conversation

nullfunc
Copy link
Contributor

@nullfunc nullfunc commented Sep 9, 2024

Update to PutConfig/PutSecret to use the same message, to allow backend to handle Put using same handling code.

make enums for configs

update with latest protos

update for change to sensitivity to enum

update compiled grpc
@nullfunc nullfunc force-pushed the eric-update-putconfig-protos branch from bcecf30 to 63d199d Compare September 11, 2024 00:42
message GetConfigsRequest {
repeated ConfigKey configs = 1;
optional ConfigOptions options = 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
optional ConfigOptions options = 2;
ConfigOptions options = 2;

string name = 1;
string value = 2;
string project = 3; // defaults to tenant ID
}

enum Sensitivity {
NON_SENSITIVE = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UNSPECIFIED_… or …_UNSPECIFIED

}

enum ConfigType {
RAW = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

}

message ConfigKey {
string name = 1;
string project = 2; // defaults to tenant ID
}

enum ConfigOptions {
NO_OPTION = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

message GetConfigsRequest {
repeated ConfigKey configs = 1;
optional ConfigOptions options = 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
optional ConfigOptions options = 2;
ConfigOptions options = 2;

@nullfunc nullfunc requested a review from lionello September 11, 2024 17:50
@nullfunc nullfunc requested a review from lionello September 12, 2024 16:59
@lionello lionello merged commit 5a82ac9 into main Sep 12, 2024
11 checks passed
@lionello lionello deleted the eric-update-putconfig-protos branch September 12, 2024 20:00
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.

2 participants