code: func (app *App) configureSecret(configuration *configuration.Configuration) {
  	if configuration.HTTP.Secret == "" {
  		var secretBytes [randomSecretSize]byte
  		if _, err := cryptorand.Read(secretBytes[:]); err != nil {
  			panic(fmt.Sprintf("could not generate random bytes for HTTP secret: %v", err))
  		}
  		configuration.HTTP.Secret = string(secretBytes[:])
  		dcontext.GetLogger(app).Warn("No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable.")
  	}
  }
docs: // configureSecret creates a random secret if a secret wasn't included in the
  // configuration.