| // Copyright 2020 The LUCI Authors. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| |
| syntax = "proto3"; |
| |
| package migration; |
| |
| option go_package = "go.chromium.org/luci/cv/api/migration;migrationpb"; |
| |
| // Settings is schema of service-wide commit-queue/migration-settings.cfg which |
| // is used only during migration. It applies to all LUCI projects and is read by |
| // CQDaemon and LUCI CV. |
| message Settings { |
| message ApiHost { |
| // e.g. luci-change-verifier-dev.appspot.com. |
| string host = 1; |
| // If a LUCI Project matches any of the regexps, |
| // CQDaemon will connect to the above Migration API host. |
| repeated string project_regexp = 2; |
| |
| // If true and several hosts are configured, all other hosts' responses are |
| // ignored. |
| bool prod = 3; |
| } |
| |
| // CQDaemon doesn't really have a -dev version, therefore to test -dev of CV, |
| // production CQDaemon can connect to both prod and dev migration API. |
| repeated ApiHost api_hosts = 1; |
| |
| // TODO(tandrii): move this off migration-specific settings once CQDaemon is |
| // shutdown. This is located here only to avoid extra throw away code in |
| // CQDaemon to read & refresh these from a different file. |
| PSSAMigration pssa_migration = 2; |
| } |
| |
| message PSSAMigration { |
| // List of LUCI Projects which must ues legacy ~/.netrc credentials, |
| // because although they have registered project-scoped service account |
| // (PSSA), their Gerrit ACLs aren't ready yet. |
| repeated string projects_blocklist = 1; |
| } |