Commit Graph
167 Commits
Author SHA1 Message Date
Patrick TombezandNils Hamerlinck 2515c4bfdc [14.0][IMP] attachment_azure: Allow storage name override 2021-09-07 11:02:26 +07:00
Vincent RenavilleandNils Hamerlinck 66e910b48a [IMP] Add identity (#238)
* [IMP] can use ad identity to access storage
2021-09-07 11:02:26 +07:00
Nils Hamerlinck 11cb863c8a [FIX] attachment_azure: clean dbname to fit with container naming rules 2021-09-07 11:02:26 +07:00
Nils Hamerlinck 4c0495b39c [FIX] attachment_azure: higher level of permissions needed to create container and upload blobs when using the SAS token 2021-09-07 11:02:26 +07:00
Hiren PattaniandNils Hamerlinck 62645b74aa [ADD] attachment_azure 2021-09-07 11:02:26 +07:00
Yannick VaucherandGitHub 7f0e4b6ad0 Merge pull request #231 from yvaucher/11.0-bp-fix-bucket-name
[11.0] [FIX] Bucket name formatting
2021-05-31 09:50:26 +02:00
Miku LaitinenandYannick Vaucher fc8fa0186b [FIX] Bucket name formatting 2021-05-31 09:46:05 +02:00
Yannick VaucherandGitHub 9751c513e7 Merge pull request #228 from yvaucher/11.0-bp-multi-tenancy
[11.0] [BP] attachment_s3: multi-tenancy use db name in bucket
2021-05-28 12:35:02 +02:00
Yannick Vaucher 1b50f0a16f attachment_s3: multi-tenancy use db name in bucket
Adds the possibility to insert `{db}` placeholder in the bucket name
that will be replaced by the database name to form a unique bucket
name per database.
2021-05-27 18:23:23 +02:00
Guewen BaconnierandGitHub b14af352cd Merge pull request #192 from acsone/11.0-188-port
[11.0][PORT] 188 from 10.0
2020-06-22 13:36:27 +02:00
Stéphane Bidoul 87f45d28cd Log uid 2020-06-22 08:41:30 +02:00
Stéphane Bidoul faae3e421b Log request uuid 2020-06-22 08:41:30 +02:00
Guewen BaconnierandGitHub b4a16d6586 Merge pull request #139 from camptocamp/11-fixes
cloud_platform: fix default config
2020-06-22 07:39:09 +02:00
Guewen Baconnier f5efee36fd Ignore .eggs/ in gitignore 2020-06-22 07:20:35 +02:00
Laurent Mignon (ACSONE)andGuewen Baconnier cde3b5c7e2 [FIX] logging_json: define dependency override 2020-06-22 07:20:15 +02:00
Guewen BaconnierandGitHub e0d799ab6d Merge pull request #179 from guewen/11.0-fix-server-env
[11.0] Fix build after changes in server_environment
2020-05-11 09:39:09 +02:00
Guewen BaconnierandGitHub 7d8bdf62b6 Merge pull request #177 from ap-wtioit/11.0-fix_session_redis
11.0 session redis preserve sessions
2020-05-11 09:38:57 +02:00
Guewen Baconnier 3b178e0409 Fix build after changes in server_environment
Now the default env is "test", and we don't need the directory
at all.
See https://github.com/OCA/server-env/pull/44
2020-05-11 07:50:17 +02:00
Andreas Perhab 5983397e68 [FIX] session_redis: fix flake8 errors 2020-05-04 09:11:14 +02:00
Patrick TombezandGitHub 6667353f59 Merge pull request #170 from p-tombez/11.0-s3_boto3
[11.0] attachment_s3: Migrate to boto3
2020-04-07 12:25:11 +02:00
Andreas Perhab 469daae435 [IMP] session_redis: add option to copy sessions from filesystem when starting 2020-04-07 12:19:41 +02:00
Andreas Perhab 7c700c7b76 [FIX] session_redis: add required option 'post_load' for server wide addon 2020-04-07 11:26:33 +02:00
Akim JuilleratandPatrick Tombez 85d274a10e attachment_s3: Migrate to boto3 2020-03-10 10:21:30 +01:00
Akim JuilleratandGitHub 2b6045e33b Merge pull request #164 from grindtildeath/11.0-fix_auth_to_keystone_v3
[11.0] attachment_swift: Fix auth to keystone v3
2020-03-09 13:32:41 +01:00
Akim Juillerat df6c2aec0b Fix authentication to Keystone v3
- Use newer version from python lib.
 - Define project_domain_id + user_domain_id in auth
2020-03-09 09:40:31 +01:00
Akim JuilleratandGitHub 52416faee5 Merge pull request #148 from grindtildeath/11.0_dev_attachments
[11.0] Require AWS_BUCKETNAME for prod, integration and labs environments only
2020-03-05 09:59:43 +01:00
Patrick TombezandGitHub 7aac003f04 Merge pull request #153 from p-tombez/11.0-keystoneauth_v3
[11.0] Use keystoneauth v3 for Swift attachments
2020-03-04 11:04:35 +01:00
Mussie SirakandPatrick Tombez 87b33817ee Use keystoneauth v3 for Swift attachments 2020-03-04 10:25:35 +01:00
Akim Juillerat d931ecbcea Require AWS_BUCKETNAME for prod, integration and labs environments only
AWS_BUCKETNAME is only needed in order to write on the bucket, but
read-only access should be allowed for other environments.

Fixes bug introduced by 6c3b610610
2020-02-25 15:57:05 +01:00
Simone Orsi 02a460fef2 cloud_platform: fix default config
`_config_by_server_env` should always retutn a `PlatformConfig` instance
2020-02-04 13:40:16 +01:00
Patrick TombezandGitHub 00f95aa59c Merge pull request #134 from p-tombez/11.0-anon_redis_session
[11.0] Add anonymous redis session expiration configuration
2020-01-31 11:15:07 +01:00
Patrick Tombez 0470e54d1d Add anonymous redis session expiration configuration 2020-01-29 16:32:51 +01:00
Nicolas Bessi (nbessi)andGitHub 9c4d3ca5ba Merge pull request #127 from guewen/11.0-store-less-files-in-db
Store .less files in database
2020-01-15 08:00:04 +01:00
Guewen Baconnier 9c4e9392ef Store .less files in database
When users customize .less files using the 'web_editor', the controller
creates a new ir.attachment for the customized file [0].

The attachment will be stored in S3 by default, which is unfortunate
since it will slow down the generation of the assets. Force storage
in the database for .less files.

Note: beware when porting this to upper versions, check the code of
web_editor, because it changed (notably less files are now scss).

[0] https://github.com/odoo/odoo/blob/11.0/addons/web_editor/controllers/main.py#L370
2020-01-14 16:59:23 +01:00
Guewen BaconnierandGitHub 0e235d2365 Merge pull request #54 from guewen/add-force-storage-special-fields
[11.0] Add method to force storage of special attachments to DB
2019-12-12 15:54:01 +01:00
Yannick VaucherandGitHub 7e126f76a9 Merge pull request #119 from leemannd/11_remove_useless_logs
[11.0] Add description to model
2019-12-10 10:59:28 +01:00
Denis Leemann 5cb6be3257 [11.0] Add description to model
This removes the useless warning at startup
2019-12-09 16:28:43 +01:00
Guewen BaconnierandGitHub 536678cf40 Merge pull request #112 from guewen/11.0-add-support-running-env-labs
[11.0] Add support of 'labs' RUNNING_ENV in cloud_platform
2019-11-29 15:52:15 +01:00
Guewen BaconnierandGitHub f99883eb0c Merge pull request #104 from camptocamp/revert-99-11.0-monitoring_check_db_connection
Revert "[11.0] [IMP] monitoring_status: check the db is reachable"
2019-11-18 13:50:36 +01:00
Guewen Baconnier b1f40cfe26 Add an advice in error message 2019-11-18 13:48:07 +01:00
Guewen Baconnier e172ce490a Add support of 'labs' RUNNING_ENV in cloud_platform
The labs env can be anything starting by 'labs', such as
'labs-logistics', 'labs-finance', ...

* At install, s3/swift is set as default storage
* However, unlike prod/integration, the storage is not forced to be an
object storage
* Redis is required
* When the storage is set on s3/swift, then the bucket name is mandatory
(otherwise, there is no place where to create the files...)

The redis prefix regex match is relaxed: anything starting by a project
name, then '-odoo-', then any combination of letters, digits, and dashes
is accepted (so a prefix my-project9-odoo-labs-web3 is valid).
2019-11-18 13:48:01 +01:00
Guewen BaconnierandGitHub c2d85f3014 Revert "[11.0] [IMP] monitoring_status: check the db is reachable" 2019-10-29 17:31:40 +01:00
Simone OrsiandGitHub 484a8654f7 Merge pull request #99 from gurneyalex/11.0-monitoring_check_db_connection
[11.0] [IMP] monitoring_status: check the db is reachable
2019-10-28 08:11:52 +01:00
Alexandre Fayolle 06224c0ee3 [IMP] monitoring_status: check the db is reachable
make a real SQL query on GET /monitoring/status and return a 503
if the query failed.
2019-10-25 16:24:59 +02:00
Simone OrsiandGitHub 8d349d2973 Merge pull request #74 from guewen/11.0-monitoring_status-ignore-http
[11.0] Ignore HTTP version in monitoring_status filter
2019-08-09 11:55:26 +02:00
Simone OrsiandGuewen Baconnier 8107af7461 Ignore HTTP version in monitoring_status filter 2019-08-09 09:59:07 +02:00
Yannick VaucherandGitHub 03c5ac9159 Merge pull request #66 from guewen/11.0-filter-monitoring-status-log
[11.0] Filter /monitoring/status werkzeug logs
2019-07-19 13:26:21 +02:00
Guewen Baconnier eb0ced89fc Filter /monitoring/status werkzeug logs
With healtchecks, they constitute 95% of our logs. Let's stop wasting
resources and shut them up.
2019-07-12 16:25:51 +02:00
Guewen BaconnierandGitHub d48a418490 Update base_attachment_object_storage/models/ir_attachment.py 2019-06-04 13:19:17 +02:00
Guewen BaconnierandGitHub c8936964a8 Merge pull request #60 from guewen/11.0-swift-auth-session
[11.0] attachment_swift: share a session for all connections
2019-05-21 14:52:24 +02:00