Skip to content

Commit

Permalink
Merge pull request #54 from cyberark/bump-version-1.1.0
Browse files Browse the repository at this point in the history
Bump version 1.1.0
  • Loading branch information
Geri Jennings authored Dec 29, 2020
2 parents 5421f66 + 811d46a commit f624e7b
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ vendor/
.cache
*.retry
*.tmp
conjur.pem
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.1.0] - 2020-12-29

### Added
- The [Conjur Ansible role](https://galaxy.ansible.com/cyberark/conjur-host-identity) has been
migrated to this collection, where it will be maintained moving forward.
At current, the role in the collection is aligned with the v0.3.2 release of
the standalone role.
[cyberark/ansible-conjur-host-identity#30](https://github.com/cyberark/ansible-conjur-host-identity/issues/30)
- Add `as_file` boolean option to store the secret as a temporary file and returns its path.
- Add `as_file` boolean option to the lookup plugin which stores the secret as
a temporary file and returns its path. This enables users to use the
`ansible_ssh_private_key_file` parameter to define an SSH private key using a
variable stored in Conjur; previously, users couldn't set this parameter via
a direct call to the lookup plugin because the parameter does not accept
inline SSH keys, and the lookup plugin could only return a string.
[cyberark/ansible-conjur-collection#52](https://github.com/cyberark/ansible-conjur-collection/issues/52),
[Cyberark Commons post #1070](https://discuss.cyberarkcommons.org/t/conjur-ansible-lookup-plugin-and-ssh-key-file/1070)

## [1.0.7] - 2020-08-20
Expand Down Expand Up @@ -49,7 +59,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Migrated code from Ansible conjur_variable lookup plugin
- Added support to configure the use of the plugin via environment variables

[Unreleased]: https://github.com/cyberark/ansible-conjur-collection/compare/v1.0.7...HEAD
[Unreleased]: https://github.com/cyberark/ansible-conjur-collection/compare/v1.1.0...HEAD
[1.1.0]: https://github.com/cyberark/ansible-conjur-collection/compare/v1.0.7...v1.1.0
[1.0.7]: https://github.com/cyberark/ansible-conjur-collection/compare/v1.0.6...v1.0.7
[1.0.6]: https://github.com/cyberark/ansible-conjur-collection/compare/v1.0.5...v1.0.6
[1.0.5]: https://github.com/cyberark/ansible-conjur-collection/compare/v1.0.3...v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ of this plugin:
- Build the release package with `./ci/build_release`
- Attach package to Github Release

### Testing
## Testing

To run a specific set of tests:

Expand All @@ -33,4 +33,4 @@ To run all tests:
```sh-session
$ cd tests
$ ./test.sh -a
```
```
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ pipeline {

stage('Run tests') {
parallel {
stage("Test conjur_lookup Plugin") {
stage("Test conjur_variable lookup plugin") {
steps {
sh './ci/test.sh -d conjur_variable'
junit 'tests/conjur_variable/junit/*'
}
}

stage("Test conjur_host_identity Role") {
stage("Test conjur_host_identity role") {
steps {
sh './ci/test.sh -d conjur_host_identity'
junit 'roles/conjur_host_identity/tests/junit/*'
Expand Down
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ http://ecotrust-canada.github.io/markdown-toc/ -->
v10.x+ accessible from the target node
- Ansible >= 2.9

## Using ansible-conjur-collection with Conjur OSS

Are you using this project with [Conjur OSS](https://github.com/cyberark/conjur)? Then we
**strongly** recommend choosing the version of this project to use from the latest [Conjur OSS
suite release](https://docs.conjur.org/Latest/en/Content/Overview/Conjur-OSS-Suite-Overview.html).
Conjur maintainers perform additional testing on the suite release versions to ensure
compatibility. When possible, upgrade your Conjur version to match the
[latest suite release](https://docs.conjur.org/Latest/en/Content/ReleaseNotes/ConjurOSS-suite-RN.htm);
when using integrations, choose the latest suite release that matches your Conjur version. For any
questions, please contact us on [Discourse](https://discuss.cyberarkcommons.org/c/conjur/5).

## Installation

From terminal, run the following command:
Expand All @@ -44,10 +55,6 @@ ansible-galaxy collection install cyberark.conjur

## Conjur Ansible Role

**NOTE**: This role is currently not available in releases installed through Ansible Galaxy, but
will be added in the next release. Follow [issue
#30](https://github.com/cyberark/ansible-conjur-collection/issues/35) for updates.

This Ansible role provides the ability to grant Conjur machine identity to a host. Based on that
identity, secrets can then be retrieved securely using the [Conjur Lookup
Plugin](#conjur-ansible-lookup-plugin) or using the [Summon](https://github.com/cyberark/summon)
Expand Down Expand Up @@ -83,10 +90,12 @@ Configure a remote node with a Conjur identity and Summon:
- hosts: servers
roles:
- role: cyberark.conjur.conjur-host-identity
conjur_appliance_url: 'https://conjur.myorg.com/api',
conjur_appliance_url: 'https://conjur.myorg.com',
conjur_account: 'myorg',
conjur_host_factory_token: "{{lookup('env', 'HFTOKEN')}}",
conjur_host_name: "{{inventory_hostname}}"
conjur_host_factory_token: "{{ lookup('env', 'HFTOKEN') }}",
conjur_host_name: "{{ inventory_hostname }}"
conjur_ssl_certificate: "{{ lookup('file', '/path/to/conjur.pem') }}"
conjur_validate_certs: yes
```
This example:
Expand Down Expand Up @@ -183,9 +192,11 @@ descriptions of our development workflows, please see our [contributing guide][c

## License

Copyright (c) 2020 CyberArk Software Ltd. All rights reserved. Licensed under the Apache License,
Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
may obtain a copy of the License at
Copyright (c) 2020 CyberArk Software Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

http://www.apache.org/licenses/LICENSE-2.0

Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: "cyberark"
name: "conjur"
version: "1.0.7"
version: "1.1.0"
readme: README.md
authors:
- CyberArk Business Development (@cyberark-bizdev)
Expand Down
2 changes: 1 addition & 1 deletion roles/conjur_host_identity/tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y \
software-properties-common \
python3-pip

RUN pip3 install pytest testinfra ansible && mkdir -p /conjurinc/
RUN pip3 install pytest pytest-testinfra ansible && mkdir -p /conjurinc/

RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository \
Expand Down
21 changes: 0 additions & 21 deletions roles/conjur_host_identity/tests/conjur.pem

This file was deleted.

2 changes: 1 addition & 1 deletion roles/conjur_host_identity/tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
CONJUR_CUSTOM_AUTHN_API_KEY: ${CUSTOM_CONJUR_AUTHN_API_KEY}
COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME}
volumes:
- ..:/conjurinc/cyberark.conjur-host-identity/
- ..:/conjurinc/cyberark.conjur.conjur-host-identity/
- .:/conjurinc/tests/
- /var/run/docker.sock:/var/run/docker.sock
pg:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Configuring conjur identity on remote hosts
hosts: testapp
roles:
- role: cyberark.conjur-host-identity
- role: cyberark.conjur.conjur-host-identity
conjur_account: cucumber
conjur_appliance_url: "https://conjur-proxy-nginx"
conjur_host_factory_token: "{{lookup('env', 'HFTOKEN')}}"
Expand Down
2 changes: 1 addition & 1 deletion tests/conjur_variable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && \
pip3 install --upgrade pip==9.0.3

# install ansible and its test tool
RUN pip3 install ansible testinfra
RUN pip3 install ansible pytest-testinfra

# install docker installation requirements
RUN apt-get update && \
Expand Down

0 comments on commit f624e7b

Please sign in to comment.