Commit Graph

45 Commits

Author SHA1 Message Date
Grzegorz Grasza 365618a665 Add secret consumers documentation and release note
Change-Id: I6ef9c1307fb178158970182a6c69ca7f16d2b35d
2023-02-20 13:20:55 +01:00
Joel Capitao a160e5c8dc Replace the deprecated argument tenant
The deprecated argument tenant from RequestContext
has been removed since [1], so we switch to 'project_id'.

[1] https://review.opendev.org/c/openstack/oslo.context/+/815938

Change-Id: I4e3e4c50ba5d829ed739e278b5286f2bf4808870
2022-03-15 08:36:02 +01:00
LiZekun 86712360f3 remove unicode from code
Change-Id: I086d90b6f46e31582d412b8725e48cba5c21d6bc
2022-01-05 10:44:00 +08:00
Hervé Beraud b719a5b56d Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I35e092c472e5d564ebc9bb6c2a4f6d40b54ff120
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-29 13:24:21 +00:00
Andreas Jaeger 68b8f5327b Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: If5b3ea5c50a91f623b0dd4d1dd347ee8a6b90290
2020-05-21 20:20:06 +02:00
Andreas Jaeger 141e7e4209 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Cleanup setup.cfg as well.

Increase requests version in lower-constraints:
requests>=2.18.0 is needed by oslo.config, which leads to some other
updates...

Change-Id: I09f0da9a59952739dd1575200aa47cc12026264f
2020-02-03 19:51:46 +01:00
Alexandra Settle 6a90cdc520 PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.

This PR also introduces the docs testenv and a doc
requirements.txt file.

Change-Id: If782737efe7114422be9cc3fc586500a2065f07e
Story: 2006072
2019-10-01 13:53:06 +00:00
Anusree 27ed9c629d pypy is not checked at gate
Change-Id: I8c6d9edb3c9c566a9d3d43c9795a6ffaf98a7ffa
2018-04-17 02:58:11 +00:00
gaofei 27588c37ab Update unreachable links in contributor document
Update unreachable links in contributor document.

Change-Id: I9151dde69431f4c88afe741e7e33e9f2373cfe24
2018-02-05 17:23:58 +08:00
rajat29 9cb455f1cc allow redirects in .htaccess files on the static web servers
As part of allowing projects to establish redirects when they move
documentation pages around, we need to let them use .htaccess files.
We only want to allow Redirect and RedirectMatch directives,
though. This change restricts the directives on docs.o.o and adds them
on the static servers used for drafts published during a build (to
allow testing of the redirects).

For more details see:
 http://lists.openstack.org/pipermail/openstack-dev/2017-July/120240.html

Change-Id: I256d69f08499549e9e21179eb89f49cda79f7ac7
2017-08-03 15:39:17 +05:30
Jenkins dfce4df2f5 Merge "Fix retrieving barbican endpoint from service catalog" 2017-07-28 09:07:40 +00:00
Jenkins 1929ef87bb Merge "Improve docs around configuring Castellan" 2017-07-20 21:34:59 +00:00
Paul Bourke 17e8b29067 Fix retrieving barbican endpoint from service catalog
The context wrapper classes under castellan.common.credentials were
missing an auth_url property resulting in calls to get_endpoint()
failing with 'Could not determine a suitable URL for the plugin' unless
users set barbican/auth_endpoint.

Change-Id: I1be3a1e11e3f4c2170062927ad359bf679eb25d9
Closes-Bug: #1497993
2017-07-19 09:40:25 +00:00
Paul Bourke 100f9ab1b3 Improve docs around configuring Castellan
It wasn't clear to me as a newcomer how to init a CONF object with my
own config file. Make the docs more clear around this. Also the
context=None arg to credential_factory is not needed.

Change-Id: Id633718fd19e0fe9b1627b64a2f50d751eeb93a2
2017-07-14 13:51:39 +00:00
Akihiro Motoki eaf2aa6cfe Update the doc URL in the documents
Change-Id: Iad782f20bef65fefe6c47f02810904cb2cdaa2f3
2017-07-11 13:38:04 +00:00
Akihiro Motoki 54b1b52533 rearrange existing documentation to fit the new standard layout
README.rst was updated as the title of the doc top page was wrong.

Change-Id: I3821bdaa78a982c0a08fef584aec62a5549d5b8b
2017-07-06 17:28:04 +09:00
Jenkins 8e243bd6c7 Merge "Update docs on config generation" 2017-07-05 20:27:40 +00:00
Van Hung Pham c9fefc3f51 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I56c71ed3efd01b254567fbae5b35f8270261473b
2017-06-29 17:05:06 +07:00
Paul Bourke 3e827d2f76 Update docs on config generation
Change-Id: Ib8e6dfd8a5d47e41697b84e044815cddb10e3985
2017-06-21 12:25:53 +01:00
Jenkins e8e28b4360 Merge "Optimize the link address" 2017-06-20 16:27:10 +00:00
Van Hung Pham 319647d64d Optimize the link address
Update link address to ensure safety and preciseness

Change-Id: I40b1430ef268b7f367e5a808b9544745971969a5
2017-06-12 07:57:59 +00:00
Jeremy Liu 310fc84652 Correct config path in functional test
We provide two ways to load castellan-functional.conf, but specify a wrong path
in the repo, this patch fixes that. Also clarify the description in doc.

Change-Id: Id05b11e70a0ed46fcdd922a5f22f86df87b930ae
2017-06-05 15:18:41 +08:00
Paul Bourke 22514018ad Fix incorrect config in usage doc
utils.credential_factory uses 'key_manager' as it's config group rather
than the documented 'castellan'.

Change-Id: Ie2f37fb0ee84cfef9fd1d39f7be5b601c9a86786
2017-06-02 13:11:03 +01:00
Kaitlin Farr 64207e3035 Change keystone endpoint
DevStack was changed so that keystone uses uwsgi [1]. This
means we can't call keystone with the port number anymore.

1. https://review.openstack.org/#/c/456344/

Change-Id: I349b689e8030c8c2a7313b9781973952ead29c75
2017-04-19 15:38:50 -04:00
Jenkins 7bc4083728 Merge "removed the older version of python" 2017-03-17 11:31:02 +00:00
Kiran_totad cad413f2eb removed the older version of python
Change-Id: I8329000b54f289166dc3c366b13230a1a5e58456
2017-03-07 10:39:40 +05:30
Kiran_totad 9912b7acd8 Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8 encoding

Change-Id: Iaa5cfd53842c7c1ad6e5f49891763a340c886c2e
2017-02-24 11:01:26 +05:30
Jeremy Liu 60839d1c31 Update doc
Change-Id: I2591e18ee475c59c60ba8fc5c97a51588049b1c7
2017-01-03 15:37:16 +08:00
Yushiro FURUKAWA 5fdf5243af Add prefix "$" for command examples
This commits adds "$" as a prefix for command examples.

Change-Id: I4ad7a65c35d401444785fbdc1a33c2fb1fe717b1
2016-09-29 21:29:12 +09:00
Jamie Lennox 712e85763b Use keystoneauth1 instead of keystoneclient
The keystoneclient session has been deprecated in favour of
keystoneauth1. To make this cleaner a few unnecessary usages of
keystoneclient are cleaned up.

Change-Id: I8bfcff53165a18f94c600797dd8105d64d948e7a
2016-06-01 22:20:58 +10:00
Chris Solis 74a59dc501 Update docs for reading conf files
This patch updates the documents for how to parse configuration
files within Castellan. It is attempting to be consistent with
how other projects achieve the same thing.

Change-Id: Idd0621da37d2ea5193ee0da9e6ee81f803a005cd
2016-03-17 10:18:28 -06:00
Fernando Diaz 5d20ea22a8 Add Credential Authentication Usage Documentation
This patch adds documentation on using the new credential
object. It is the last of several patches which will implement the
"Allow different Keystone Auth Support in Castellan" blueprint.

Change-Id: I22608e83f46b4cc77ad6a5e41a95389751b0ecbf
Implements: blueprint remove-keystone-dependency
2016-03-02 06:46:50 +00:00
Christopher Solis 0e2cc050e9 Update docs with parsing config files
Updates the usage documentation for castellan to explain
how to parse the castellan configuration files.

Change-Id: Iaa93310d7c25ccee47feb85eddf63ae3df1eedca
2016-01-11 10:37:12 -06:00
“Fernando 96df616023 Add some documentation on enabling logging
This patch adds documentation on how to enable logging.
Related-Bug: #1521265

Change-Id: Ib0a84bcf1af12a5b489cee8abcb4231f8e34151e
2015-12-01 11:28:43 -06:00
“Fernando 2f47c5f39b Add the debug flag to tox.ini
Allows us to set a breakpoint in code, using pdb.set_trace().
Documentation on how to debug has also been added.
Change-Id: I34bde581ce331b2eb63e4dab08e9f9c597598bf1
2015-11-17 18:16:15 -06:00
Jenkins 2e3219e62d Merge "Add testing documentation to Castellan" 2015-11-03 18:36:27 +00:00
Jenkins 66e05c658b Merge "Add contributing documentation to Castellan" 2015-10-29 03:04:23 +00:00
“Fernando 8e0613da09 Add testing documentation to Castellan
Adds documentation showing how to run unit and functional test
in for Castellan.

Change-Id: I9141f828dd1bc1eb9938c889c32ac80dea424d40
2015-10-22 17:27:37 -05:00
“Fernando 6731238d2b Add contributing documentation to Castellan
Adds documentation showing how to contribute to Castellan.

Change-Id: Id32f80329cd319f3c48ccc08456905a5824a695a
2015-10-22 15:47:18 -05:00
“Fernando d0e74e8940 Adds documentation on creating Oslo RequestContext in Castellan
This patch adds documentation showing how oslo.context
Request Context can be generated using keystone client. This
documentation will be useful to new Castellan users who are
no familiar with using context.

Change-Id: I60999890cd033808713595087074085bfa915181
2015-10-21 16:01:02 -05:00
Zhao Lei c105439735 Fix some spelling typo in manual
conjuction -> conjunction

Change-Id: Ica838e8a8b3185c90f9f08512b65aad5755f687c
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
2015-09-23 20:41:29 +08:00
Michael McCune 201914f6b7 Fixing error in documentation example
The example for retrieving a key has a store call that should be a get.

Change-Id: Ib4cc4cb85f7389a9247983977af395f1de904fcb
2015-08-28 20:32:46 -04:00
Michael McCune 82a0ded5c8 Adding documentation for basic usage
This change adds a few samples of the basic usage of Castellan
including; storing, retrieving, and deleting managed objects.

Change-Id: I640f076447da47a57d5186e46b49193e1172d64a
2015-08-19 19:21:10 -04:00
Michael McCune d768fbc97d refactoring castellan configuration
This change adds a module for listing configuration options and setting
their defaults. It also changes the key manager base class to
incorporate a configuration during creation. By default, the key manager
will continue to use the global CONF object from the oslo.config
package.

For the most part, this change will be backwards compatible. The one
exception is the creation of sample configuration files. Previously,
importing castellan was sufficient to add these options to the global
configuration object. Now, these options will need to be applied by
using the castellan.options.list_opts function, or adding them through
other means, to create sample configuration files. Similar applies for
setting configuration before instantiating a key manager.

changes
* adding castellan.options with list_opts and set_defaults functions
* changing KeyManager abc to include a configuration option to __init__
* changing barbican and not_implemented key managers to accept
  configuration parameters
* adding tests for set_defaults function
* fixing barbican tests to accomodate new configuration parameter
* adding documentation about configuration usage
* adding castellan configs to oslo entry point in setup.cfg
* adding a genconfig target to tox for producing a sample castellan
  configuration file
* adding the sample configuration file to the git ignore
* renaming barbican option api_version to barbican_api_version

Change-Id: I86d6d7d49a893beaae6f311060ec593e0482d889
Implements: blueprint improved-configuration-options
2015-08-12 12:03:36 -04:00
Douglas Mendizábal 93eb3a9f16 Initial Cookiecutter Commit. 2014-11-20 15:39:45 -06:00