<commit_before>============================
AWS Federation Proxy Backend
============================

Configuration
=============

The ``AWSFederationProxy`` needs two configurations:

Application Configuration
-------------------------

* ``aws``: (optional, if not set boto is used)

  - ``access_key``: The access key you get from AWS
  - ``secret_key``: The secret key you get from AWS

* ``provider``:

  - ``SimpleTestProvider``:

    + This provider does not need a provider configuration

  - ``ProviderByGroups``:

    + ``module``: Defines the provider module how you would import
      it in scripts (e.g.: ``aws_federation_proxy.provider.grp_provider``)
    + ``class``: Class to be used inside the provider module
      (optional, default `Provider` is used)
    + ``regex``: Only needed for ``ProviderByGroups`` (``grp_provider`` for example).
      In this Regex named groups are used to seperate *account* and *role* names.
      e.g.: ``foo-(?P<account>.*)-(?P<role>.*)``
      (**The whole groupname is matched by this regex!**)

  - ``ProviderByIP``:

    + ``module``: Defines the provider module how you would import it in scripts
      (e.g.: ``aws_federation_proxy.provider.provider_by_ip``)
    + ``allowed_domains``: Only hosts from this domains are permitted
    + ``account_name``: AWS Account with AWS Roles
    + ``role_prefix``: Prefix to prepend to the role

Accounts Configuration
----------------------

Here you need to map account aliases to account ids. Example:

.. code-block:: yaml

      account-name:
        id: 3141592654

AWS Configuration<commit_msg>Add missing class key for machine<commit_after>============================
AWS Federation Proxy Backend
============================

Configuration
=============

The ``AWSFederationProxy`` needs two configurations:

Application Configuration
-------------------------

* ``aws``: (optional, if not set boto is used)

  - ``access_key``: The access key you get from AWS
  - ``secret_key``: The secret key you get from AWS

* ``provider``:

  - ``SimpleTestProvider``:

    + This provider does not need a provider configuration

  - ``ProviderByGroups``:

    + ``module``: Defines the provider module how you would import
      it in scripts (e.g.: ``aws_federation_proxy.provider.grp_provider``)
    + ``class``: Class to be used inside the provider module
      (optional, default `Provider` is used)
    + ``regex``: Only needed for ``ProviderByGroups`` (``grp_provider`` for example).
      In this Regex named groups are used to seperate *account* and *role* names.
      e.g.: ``foo-(?P<account>.*)-(?P<role>.*)``
      (**The whole groupname is matched by this regex!**)

  - ``ProviderByIP``:

    + ``module``: Defines the provider module how you would import it in scripts
      (e.g.: ``aws_federation_proxy.provider.provider_by_ip``)
    + ``class``: Class to be used inside the provider module
      (optional, default `Provider` is used)
    + ``allowed_domains``: Only hosts from this domains are permitted
    + ``account_name``: AWS Account with AWS Roles
    + ``role_prefix``: Prefix to prepend to the role

Accounts Configuration
----------------------

Here you need to map account aliases to account ids. Example:

.. code-block:: yaml

      account-name:
        id: 3141592654

AWS Configuration
{'fraction_non_alphanumeric': 0.1811332127787824, 'fraction_numerical': 0.006027727546714889, 'mean_word_length': 3.372859025032938, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4456253', 'n_tokens_mistral': 943, 'n_tokens_neox': 902, 'n_words': 344}