Commit Graph

1449 Commits (4565a3893da010a345c631618056fb9e0f119bfe)

Author SHA1 Message Date
Alicia Cozine 4565a3893d
Eol the 2.8 docs (#74513)
* adds EOL banner, removes versions

* remove version-switcher capability

Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
5 years ago
Sandra McCann c0be689295
replace porting guides with stub pages - issue 71687 (#71988) (#72600)
(cherry picked from commit 5a3a2d1a39)
5 years ago
Felix Fontein 67cd27400a
[2.9] Redirect inventory script links (#71732) (#71862)
(cherry picked from commit ef5f2c35ee)
5 years ago
Sandra McCann 8ceb36098d
update version switcher for 2.10 release (#71869)
(cherry picked from commit bf4e102d97)
5 years ago
Rick Elrod 69827e0894
Re-add changelogs and add docs for CVE-2020-1736 reverts [2.8] (#71516)
Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sandra McCann 53be4cc03d
point all older release pages to devel (#71428) (#71471)
(cherry picked from commit 3be597419d)
5 years ago
Sam Doran c6eff6bdb2
Revert "[stable-2.8] Change default file permissions so they are not world readable (#70221) (#70827)" (#71233)
This reverts commit 11738aed97.
5 years ago
David Shrewsbury f35e825440
[2.8] Sanitize URI module keys with no_log values (#70762) (#70822)
* Sanitize URI module keys with no_log values (#70762)

* Add sanitize_keys() to module_utils.

* More robust tests

* Revert 69653 change

* Allow list or dict

* fix pep8

* Sanitize lists within dict values

* words

* First pass at uri module

* Fix insane sanity tests

* fix integration tests

* Add changelog

* Remove unit test introduced in 69653

* Add ignore_keys param

* Sanitize all-the-things

* Ignore '_ansible*' keys

* cleanup

* Use module.no_log_values

* Avoid deep recursion issues by using deferred removal structure.

* Nit cleanups

* Add doc blurb

* spelling

* ci_complete

(cherry picked from commit bf98f031f3)

* update changelog for security_fixes

* Update 70762-sanitize-uri-keys.yml

Co-authored-by: Rick Elrod <rick@elrod.me>
5 years ago
Sam Doran 11738aed97
[stable-2.8] Change default file permissions so they are not world readable (#70221) (#70827)
* [stable-2.8] Change default file permissions so they are not world readable (#70221)

* Change default file permissions so they are not world readable

CVE-2020-1736

Set the default permissions for files we create with atomic_move() to 0o0660. Track
which files we create that did not exist and warn if the module supports 'mode'
and it was not specified and the module did not call set_mode_if_different(). This allows the user to take action and specify a mode rather than using the defaults.

A code audit is needed to find all instances of modules that call atomic_move()
but do not call set_mode_if_different(). The findings need to be documented in
a changelog since we are not warning. Warning in those instances would be frustrating
to the user since they have no way to change the module code.

- use a set for storing list of created files
- just check the argument spac and params rather than using another property
- improve the warning message to include the default permissions.
(cherry picked from commit 5260527c4a)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* Fix service test

* Fix lamdba_policy test

* Fix aws_lamdba test

* Fix warning for new default permissions when mode is not specified (#70976)

Follow up to #70221
Related to #67794
CVE-2020-1736

When set_mode_if_different() is called with mode of 'None', ensure we issue
a warning about the change in default permissions.

Add integration tests to ensure the warning works properly.

* Fix tests
- actually use custom module 🤦‍♂️
- verify file permission on created files
- use remote_tmp_dir so we're ready for split controller
- improve test module so we can skip the call to set_fs_attributes_if_different()
- fix tests for CentOS 6

(cherry picked from commit dc79528cc6)

* Use new category in changelog fragments
5 years ago
Sandra McCann 0b41e9b2f0
adds japanese translation as a version-switcher option (#70214) (#70216)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
(cherry picked from commit 4a0f42923b)
6 years ago
Abhijeet Kasurde 7b50ca633f [2.8] Docs: point inventory script to respective version
With collections migration, inventory scripts are moved from devel (2.10).
Point docs for inventory script to their respective version.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
6 years ago
Sloane Hertel e6199d768c
[2.8] CVE-2020-1746 - Remove the params module option from ldap_attr and ldap_entry (#68715)
* Remove the params module option from ldap_attr and ldap_entry

Module options that circumvent Ansible's option handling were disallowed
in:
https://meetbot.fedoraproject.org/ansible-meeting/2017-09-28/ansible_dev_meeting.2017-09-28-15.00.log.html

Additionally, this particular usage can be insecure if bind_pw is set
this way as the password could end up in a logfile or displayed on
stdout.

Fixes CVE-2020-1746

(cherry picked from commit 0ff609f1bc)

* Fix formatting for option names

Co-Authored-By: Felix Fontein <felix@fontein.de>

* Fix fail_json

* update sanity

* fix indentation error

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
6 years ago
Sandra McCann 4afd3ad03b add porting guide for bare vars in conditionals (#60943) (#64289)
(cherry picked from commit 0b7d478200)
6 years ago
Sandra McCann 6dec6a736e [Doc-Release-2.9] Backport/2.8/docs release (#64270)
* docs: update version-checker to latest 3 versions (#64109)

(cherry picked from commit 409545825f)

* [Doc-Release-2.9] update release and maintenance page for 2.9 (#64166)

* update release and maintenance page for 2.9
* only 2.4 and earlier used the old changelog system

(cherry picked from commit 3f808d9ed6)
6 years ago
Sandra McCann 2ac8308edf Updated with slipped dates for the 2.9.0 release (#63243) (#63799)
(cherry picked from commit 5997d33381)
6 years ago
Sandra McCann d95ddf8519 Fix doc - porting_guide_2.8 value example (#63493) (#63525)
(cherry picked from commit e0f67b58ce)
6 years ago
Kevin Breit e56ee65ca7 Docs - Add Meraki to platform option list (#61651)
(cherry picked from commit 54906a68fe)
6 years ago
Sandra McCann 912c493307 Backport/2.8/theme (#62611)
* cherrypick #58832
* fix width (#61619)

(cherry picked from commit 1d40d2b572)

* Minify theme (#61734)

* moved most ansible edits out of theme.css
* remove unnecessary edit to theme.css
* replace with upstream minified theme.css for 0.4.3

(cherry picked from commit de826b437d)

* Minify ansible (#61792)

* make all comments special to survive minify
* minified css

(cherry picked from commit 7efaad711e)
6 years ago
Jordan Borean 4cbaaa4f06 Add link to become plugins in become docs (#62462)
(cherry picked from commit d16ee65ecd)
6 years ago
Akira Yokochi 09db81e942 explicited RouterOS does not support connection: local (#62230)
(cherry picked from commit b8aa87bd06)
6 years ago
Sam Doran f2be4f688d Improve documentation on doc fragments (#62219) (#62292)
Add information and examples on how to use additional properties from a doc fragment
Add info about layering properties

(cherry picked from commit 9b348e690c)
(cherry picked from commit 5deb01c84d)
(cherry picked from commit 041c52d629)
6 years ago
ndclt 70798b84d2 documentation: modify the link to the docker.txt listing all images (#61838) (#61847)
The file was moved.

(cherry picked from commit aadb192846)
6 years ago
Wojciech Sciesinski d70b4f6665 Correct indentation of the code in the example (#61622) (#61727) 6 years ago
Matt Martz db9744d29e [stable-2.8] Add porting guide entry for gathering facts tag change (#61180) (#61555)
* Add porting guide entry for gathering facts tag change

(cherry picked from commit 0175620)

Co-authored-by: Matt Martz <matt@sivel.net>
6 years ago
Matt Clay 542aec6166 Minor docs fix for sanity test docs backport. 6 years ago
Matt Clay dd42aac878 Remove redundant "Sanity Tests »" from page title.
The docs now have multi-level breadcrumbs so including "Sanity Tests »" in the title on a sanity test page is redundant.

(cherry picked from commit b4494fa547)
6 years ago
Tomáš Pospíšek 4782c6b0b8 remove ambiguity: use "my_test" as module name (#59335) (#59519)
Use "my_test" as the sample module name on the developing_modules_general page.

(cherry picked from commit 28b9f71640)
6 years ago
Alicia Cozine 752c40464f
Docs on general precedence (#50201) (#59120)
* Add docs/docsite/rst/reference_appendices/general_precedence.rst

Co-Authored-By: Sandra McCann <samccann@redhat.com>
(cherry picked from commit c2469648e4)
6 years ago
Sandra McCann 3d9c2e8c23 Add a banner message to warn when not on latest documentation (#58526) (#58762)
* add banner to versions that are not latest

(cherry picked from commit 35b6345bdc)
7 years ago
Nabeel Al-Saber 480b47d3b2 Add Oracle scenario guide (#58443)
* Create and update docs/docsite/rst/scenario_guides/guide_oracle.rst
7 years ago
Sloane Hertel cb70656c99 Fix notifying handlers by using an exact match (#55624)
* Fix notifying handlers by using an exact match rather than a string subset if listen is text rather than a list

* Enforce better type checking for listeners

* Share code for validating handler listeners

* Add test for handlers without names

* Add test for templating in handlers

* Add test for include_role

* Add a couple notes about 'listen' for handlers

* changelog

(cherry picked from commit ec1287ca7e)
7 years ago
ndclt 6e2bcc3d8e Coherence between example and text (use of to_native) (#58279) (#58283)
(cherry picked from commit 4376e88849)
7 years ago
Felix Fontein ad00823266 docsite: remove lexers which have been fixed in Pygments 2.4.0 (#57508)
* Remove lexers which have been fixed in Pygments 2.4.0.
* Add Pygments >= 2.4.0 to test runner.
* Fix pages that triggered lexer errors.

Co-Authored-By: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 505c99265c)
7 years ago
Sandra McCann e7551ead6c [backport][2.8] add dropdown version selection to docsite (55655) (#58096)
* cherry-pick f3720c90e0, with correct version
7 years ago
Alicia Cozine 80062dc6be
removes link from 404 content, explains options (#57971) (#58091)
(cherry picked from commit 8dfa376e1c)
7 years ago
Alicia Cozine 64a83a031a
Adds custom 404 with cowsay image (#57422) (#57955)
* Adds custom 404, updates CI reqs, TOC on 404 page links to latest

(cherry picked from commit 5658b2ee3e)
7 years ago
Remon van de Kamp e07c7688c2 Use correct variable for run_once regardless of batch example (#57077) (#57410)
Changes example to `when: inventory_hostname == ansible_play_hosts_all[0]` to really run run_once regardless of serial.

(cherry picked from commit dea9644d21)
7 years ago
Sviatoslav Sydorenko d701910bf0 Fix an RST link to the changelog config in docs (#57419) 7 years ago
Ed Costello 819507840f Update links to AWS module guidelines to target the devel docsite since (#57465)
the GUIDELINES.md has been removed from devel on github.
7 years ago
Sandra McCann 9f1bb4e142 [Backport] Roadmap and dates for 2.9 (#57428)
* adds 2.9 roadmap, reversed local TOC order (#56371)
(cherry picked from commit f88b660717)

* 2.9 roadmap dates (#57420)
* add dates to 2.9 roadmap, remove alpha phase
(cherry picked from commit 96693600f9)
7 years ago
Sandra McCann 69696dc83e update docsite breadcrumbs from sphinx_rtd_theme (#57316) (#57423)
* improve breadcrumbs
* get edit on github working again
(cherry picked from commit 3136007032)
7 years ago
Bill Nottingham 9184255340 Adjust assorted terminology and wording around product offerings. (#57242) (#57245)
* Adjust assorted terminology and wording around product offerings. 
(cherry-picked from c493593b4b) 

* Update docs/docsite/rst/dev_guide/style_guide/trademarks.rst
* Update docs/docsite/rst/user_guide/modules_support.rst
* Update docs/docsite/rst/reference_appendices/tower.rst
7 years ago
Anatoly Kamchatnov 2128e7c14f Windows FAQ: fix reference
(cherry picked from commit 8bf56642bd)
7 years ago
Sandra McCann 4ef102ae79 Correct repository name to install (#56991) (#57078)
(cherry picked from commit e17434c19f)
7 years ago
Sam Doran 0a40b0ed45 [stable-2.8] Update instructions for running module directly (#56883)
The internals of AnsiballZ changed silghtly
(cherry picked from commit 50b1a66649)

Co-authored-by: Sam Doran <sdoran@redhat.com>
7 years ago
Sandra McCann 9ec7cdc4b0 Update RHEL repo for Ansible 2.8 (#56859) (#56868)
(cherry picked from commit 3129fc0b17)
7 years ago
Felix Fontein e63818b7d0 Clarify that GPLv3+ module_utils need core team approval (#56740) (#56759)
* Clarify that GPLv3+ module_utils need core team approval.

* Update docs/docsite/rst/dev_guide/shared_snippets/licensing.txt

Co-Authored-By: Sam Doran <sdoran@redhat.com>

* More 'module_util' -> 'file in module_utils'.

(cherry picked from commit 53ec9c8019)
7 years ago
Felix Fontein 043990bc07 Replace deprecated ansible-container references (#56427) (#56672)
Link to ansible-bender instead of the deprecated ansible-container.

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit 66bfa27685)
7 years ago
Alicia Cozine 5145effbf6
Move backport guide to 2.8 (#56578) (#56671)
The backport guide should refer to Ansible 2.8 instead of 2.7 as the target branch, since 2.8 is out.

(cherry picked from commit 4742897635)
7 years ago
Felix Fontein 99f450bbcc Clarify documentation on _info vs. _facts modules (#56611) (#56668)
* Clarify documentation on _info vs. _facts modules.

* Expand with examples for facts and non-facts.

(cherry picked from commit abca3f1956)
7 years ago