()
| 1907 | } |
| 1908 | |
| 1909 | func (c *ServerCommand) reloadConfigFiles() (*server.Config, []configutil.ConfigError, error) { |
| 1910 | var config *server.Config |
| 1911 | var configErrors []configutil.ConfigError |
| 1912 | for _, path := range c.flagConfigs { |
| 1913 | // don't care about HCL duplicate attributes here on reloading |
| 1914 | // TODO (HCL_DUP_KEYS_DEPRECATION): go back to server.LoadConfig and remove duplicate when deprecation is done |
| 1915 | current, _, err := server.LoadConfigCheckDuplicate(path) |
| 1916 | if err != nil { |
| 1917 | return nil, nil, err |
| 1918 | } |
| 1919 | |
| 1920 | configErrors = append(configErrors, current.Validate(path)...) |
| 1921 | |
| 1922 | if config == nil { |
| 1923 | config = current |
| 1924 | } else { |
| 1925 | config = config.Merge(current) |
| 1926 | } |
| 1927 | } |
| 1928 | |
| 1929 | return config, configErrors, nil |
| 1930 | } |
| 1931 | |
| 1932 | func (c *ServerCommand) configureSeals(ctx context.Context, config *server.Config, backend physical.Backend, infoKeys []string, info map[string]string) (*SetSealResponse, io.Reader, error) { |
| 1933 | existingSealGenerationInfo, err := vault.PhysicalSealGenInfo(ctx, backend) |
no test coverage detected