plugin.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. Copyright © 2022 ESO Maintainer Team
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. syntax = "proto3";
  14. option go_package = "github.com/external-secrets/external-secrets/pkg/plugin/grpc/plugin.proto";
  15. option java_multiple_files = true;
  16. option java_package = "io.external-secrets.provider.plugin";
  17. option java_outer_classname = "ProviderPluginProto";
  18. package plugin;
  19. service SecretsClient {
  20. // GetSecret returns a single secret from the provider
  21. // if GetSecret returns an error with type NoSecretError
  22. // then the secret entry will be deleted depending on the deletionPolicy.
  23. rpc GetSecret (GetSecretRequest) returns (GetSecretReply) {}
  24. }
  25. message RemoteRef {
  26. string key = 1;
  27. string metadataPolicy = 2;
  28. string property = 3;
  29. string version = 4;
  30. string conversionStrategy = 5;
  31. string decodingStrategy = 6;
  32. }
  33. message GetSecretRequest {
  34. RemoteRef remoteRef = 1;
  35. }
  36. message GetSecretReply {
  37. bytes secret = 1;
  38. string error = 2;
  39. }