Commit graph

30 commits

Author SHA1 Message Date
Bob Van Landuyt
1881d4f8ec Allow configuring new circuitbreaker settings from the UI and API 2017-10-23 12:02:23 +03:00
Bob Van Landuyt
38af7c1613 Allow configuring the circuitbreaker through the API and UI 2017-10-17 11:50:32 +02:00
Bob Van Landuyt
c96a138d35 Update the settings api documentation 2017-10-13 17:59:26 +02:00
Nick Thomas
6847060266 Rework the permissions model for SSH key restrictions
`allowed_key_types` is removed and the `minimum_<type>_bits` fields are
renamed to `<tech>_key_restriction`. A special sentinel value (`-1`) signifies
that the key type is disabled.

This also feeds through to the UI - checkboxes per key type are out, inline
selection of "forbidden" and "allowed" (i.e., no restrictions) are in.

As with the previous model, unknown key types are disallowed, even if the
underlying ssh daemon happens to support them. The defaults have also been
changed from the lowest known bit size to "no restriction". So if someone
does happen to have a 768-bit RSA key, it will continue to work on upgrade, at
least until the administrator restricts them.
2017-08-30 20:50:44 +01:00
Nick Thomas
b0f982fbdf Add settings for minimum key strength and allowed key type
This is an amalgamation of:

* Cory Hinshaw: Initial implementation !5552
* Rémy Coutable: Updates !9350
* Nick Thomas: Resolve conflicts and add ED25519 support !13712
2017-08-30 20:50:44 +01:00
Bob Van Landuyt
c11ed138a0 Remove deprecated repository_storage attribute
In favor of the new `repository_storages`
2017-07-27 11:49:27 +02:00
Robin Bobbitt
672a68d372 Fixes needed when GitLab sign-in is not enabled
When sign-in is disabled:
 - skip password expiration checks
 - prevent password reset requests
 - don’t show Password tab in User Settings
 - don’t allow login with username/password for Git over HTTP requests
 - render 404 on requests to Profiles::PasswordsController
2017-07-13 10:08:27 -04:00
Marcia Ramos
d5eb66663e update API doc with +API (h1 heading) 2017-05-10 15:48:07 -03:00
Adam Niedzielski
9543025e88 Introduce "polling_interval_multiplier" as application setting
Implement module for setting "Poll-Interval" response header.
Return 429 in ETag caching middleware when polling is disabled.
2017-04-03 15:17:04 +02:00
Regis Freyd
bc70493b05 Change project count limit from 10 to 100000 2017-03-07 08:58:23 -05:00
Toon Claes
260cc57838 Expose ApplicationSetting visibility settings as String
Use strings for the ApplicationSetting properties:
 - restricted_visibility_levels
 - default_project_visibility
 - default_snippet_visibility
 - default_group_visibility
2017-03-02 12:15:25 +01:00
Robert Schilling
1ead6a9793 Use v4 endpoint in API docs 2017-03-01 18:39:40 +01:00
Adam Niedzielski
5d3816652e Introduce maximum session time for terminal websocket connection
Store the value in application settings.
Expose the value to Workhorse.
2017-02-06 11:49:30 +01:00
Horacio Sanson
f986b4c4e5 Add support for PlantUML diagrams in Asciidoc.
This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a
PlantUML diagram all we need is to include a plantuml block like:

```
[plantuml, id="myDiagram", width="100px", height="100px"]
--
bob -> alice : ping
alice -> bob : pong
--
```

The plantuml block is substituted by an HTML img element with *src* pointing to
an external PlantUML server.

This MR also add a PlantUML integration section to the Administrator -> Settings
page to configure the PlantUML rendering service and to enable/disable it.

Closes: #17603
2017-01-12 10:04:52 +00:00
Robert Schilling
ec7485de21 Grapify the settings API 2016-12-29 11:24:15 +01:00
Nick Thomas
fa4f904f25 Document multiple repository storage paths 2016-11-04 04:01:08 +00:00
DJ Mountney
59157c0423 Expose the Koding application settings in the API
This will allow the Koding app to enable the integration itself once is has authorized an admin user using the application secrets.
2016-09-29 09:12:52 -07:00
Benjamin Schwarze
cd12d75958 docs: fix typo, it should refer to domain_blacklist_enabled setting 2016-08-19 14:05:26 +00:00
winniehell
e0a858efcc use long options for curl examples in API documentation (!5703) 2016-08-09 01:42:50 +02:00
Patricio Cano
1a057d2b40 Reorder allowed params for ApplicationSetting and add more details to docs. 2016-07-19 17:08:40 -05:00
Patricio Cano
c71e658cca Refactor and rename restricted_signup_domains to domain_whitelist to better conform to its behavior and newly introduced behavior. 2016-07-18 17:53:43 -05:00
Patricio Cano
cb24650ab8 Rebasing caused enabled_git_access_protocol to become plural. Fixed here. 2016-07-05 16:54:22 -05:00
Patricio Cano
512adc21fe Add setting that allows admins to choose which Git access protocols are enabled 2016-07-05 16:54:22 -05:00
Alejandro Rodríguez
4a8a69837a Add Application Setting to configure default Repository Path for new projects 2016-06-29 23:35:00 -04:00
Ian Kelling
733193abba docs: fix default_branch_protection default 2016-06-05 04:27:05 -07:00
Kamil Trzcinski
846d111f1d Add Application Setting to configure Container Registry token expire delay (default 5min) 2016-05-31 13:23:13 +02:00
connorshea
85cc172959 Remove "Congratulations!" tweet button on newly-created project.
I’ve removed everything related to the feature based on this commit:
ce08f919f34fd8849834365

Resolves #10857.
2016-03-31 17:09:36 -06:00
Achilleas Pipinellis
585e7f6e35 Refactor settings API documentation [ci skip] 2016-01-18 09:44:19 +01:00
Anton Davydov
d6e0a1883b Fix typos in all docs [skip ci] 2015-11-24 02:19:17 +03:00
Dmitriy Zaporozhets
b28714b6a9
Add docs and empty specs for applicaiton settings API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-06 15:53:08 +02:00