managing functions in couchbase
play

Managing Functions in Couchbase Kishan Iyer LOONYCORN - PowerPoint PPT Presentation

Managing Functions in Couchbase Kishan Iyer LOONYCORN www.loonycorn.com Overview Redacting sensitive information from logs Function statistics from the Eventing Service Statistics graphs for functions Auditing in Couchbase Couchbase


  1. Managing Functions in Couchbase Kishan Iyer LOONYCORN www.loonycorn.com

  2. Overview Redacting sensitive information from logs Function statistics from the Eventing Service Statistics graphs for functions

  3. Auditing in Couchbase

  4. Couchbase Auditing Facility Recognizes specific, server-generated events that can be logged for audit purposes.

  5. Types of Audit Events Admin events: Administrative and configuration changes to cluster Data events: Attempts to access and change data

  6. Examples of Audited Events Successful login Unsuccessful login Bucket creation Bucket TTL modification User creation Index creation

  7. Mechanics of Auditing When auditing is enabled, logged events are saved to audit.log Events are audited on a per-node basis Each node captures its own events only For cluster-wide records, manual consolidation by admin is required

  8. Mechanics of Auditing Default log file is named audit.log Log file is automatically rotated, saved, and timestamped New empty audit.log created Rotation happens either At specified interval ranging from 15 - minutes (min) to 7 days (max) When file reaches 20 MB in size -

  9. Non-filterable Events By default, auditing is disabled If auditing is enabled, certain events will always be logged These are called non-filterable events - Other events can be individually marked for exclusion from audit.log These events are called filterable -

  10. Categories of Audit Events Several broad categories of audit events REST API events - Data Service events - Eventing Service events - … - Within each category, individual events maybe Data or Admin events

  11. Eventing Service Audit Events All audit events of the Eventing Service are Admin Events Create/Delete/Export/Import Function Save/Fetch/Delete Drafts and Config List Running Functions Start/Stop Debug

  12. Functions Logs and Stats

  13. Functions Log Eventing Service maintains two types of logs Application log that functions can - write to e.g. from try-catch blocks System log that functions can not - write to

  14. Log Redaction Couchbase Server provides way to redact sensitive data from log Post-redaction, logs can be shared for troubleshooting Avoids potential regulatory compliance issues related to data-sharing

  15. Log Redaction is available only for System Logs, not for Application Logs

  16. Redactable Data JSON key/value pairs Usernames Names and email addresses Extended attributes Query fields referencing such data

  17. Redactable Data Redacted text will be substituted with hashed text Hashing performed using SHA1 Redaction may also eliminate non-private data Redaction performed during log- collection, slowing process significantly

  18. Redactable Data Couchbase currently (v6.5) supports partial redaction Full redaction will be available in a forthcoming version Also will redact metadata -

  19. Demo Auditing Actions on Couchbase Functions

  20. Demo Explicit Logging and Redaction

  21. Demo Retrieving Function Statistics

  22. Demo Cleaning Up

  23. Summary Redacting sensitive information from logs Function statistics from the Eventing Service Statistics graphs for functions

  24. Related Courses Manage Functions in Couchbase Configure Functions in Couchbase

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend