Sha256: 62dbe3c8171d55b25dc516b9f41bf8cfe1e666201569254084126531421fc652

Contents?: true

Size: 1.16 KB

Versions: 11

Compression:

Stored size: 1.16 KB

Contents

Feature: Check an environment

  Background: 
    Given I load the policy:
    """
    - !variable access_key
    - !variable secret_key
    - !variable ssh_private_key

    - !user alice

    - !permit
        role: !user alice
        privilege: execute
        resources:
        - !variable access_key
        - !variable secret_key

    """
    And I run `conjur variable values add access_key ABCDEF`
    And I run `conjur variable values add secret_key XYZQWER`
    And I run `conjur variable values add ssh_private_key PRIVATE_KEY_BODY`
    And I login as "alice"
    And I reset the command list

  Scenario: Check against permitted variables
    When I run `conjur env check --yaml '{ aws_access_key: !var access_key, aws_secret_key: !var secret_key }'`
    Then the exit status should be 0
    And the stdout should contain "aws_access_key: available\naws_secret_key: available\n"

  Scenario: Check against restricted variables
    When I run `conjur env check --yaml '{ aws_access_key: !var access_key, ssh_private_key: !var ssh_private_key }'`
    Then the exit status should be 1
    And the stdout should contain "aws_access_key: available\nssh_private_key: unavailable\n"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
conjur-cli-6.2.6 features/conjurenv/check.feature
conjur-cli-6.2.5 features/conjurenv/check.feature
conjur-cli-6.2.4 features/conjurenv/check.feature
conjur-cli-6.2.3 features/conjurenv/check.feature
conjur-cli-6.2.2 features/conjurenv/check.feature
conjur-cli-6.2.1 features/conjurenv/check.feature
conjur-cli-6.2.0 features/conjurenv/check.feature
conjur-cli-6.1.0 features/conjurenv/check.feature
conjur-cli-6.0.1 features/conjurenv/check.feature
conjur-cli-6.0.0 features/conjurenv/check.feature
conjur-cli-6.0.0.rc1 features/conjurenv/check.feature