11 Matching Annotations
  1. Last 7 days
    1. Configuration is managed via environment variables. See src/aegis_core/config.py for all available settings.

      通过环境变量进行配置管理的做法提供了灵活性和安全性,但同时也提出了一个值得思考的问题:在AI安全平台中,如何平衡配置的灵活性与安全性?敏感信息如API密钥的环境变量管理可能需要额外的安全层。

  2. Nov 2022
    1. Remember there are two kinds of variable. Internal Variables and Environment Variables. PATH should be an environment variable.

      In my case, I was trying to debug which asdf not finding asdf, in a minimal shell.

      I had checked bash-5.1$ echo $PATH|grep asdf /home/tyler/.asdf/bin

      but ```

      The PATH environment variable

      env | /bin/grep PATH `` being empty was the key discovery here. Must have forgotten theexport`.

  3. Jun 2021
  4. Feb 2021
    1. STATSD_SAMPLE_RATE: (default: 1.0)

      It's recommended to configure this library by setting environment variables.

      The thing I don't like about configuration via environment variables is that everything is limited/reduced to the string type. You can't even use simple numeric types, let alone nice rich value objects like you could if configuration were done in the native language (Ruby).

      If you try to, you get:

      ENV['STATSD_SAMPLE_RATE'] = 1
      config/initializers/statsd.rb:8:in `[]=': no implicit conversion of Integer into String (TypeError)
      
  5. Jan 2021
  6. May 2020
  7. Dec 2019