Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(floorist): add HMS FloorPlan export #2323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shaded-enmity
Copy link

  • Export timestamp, host_id and org_id of test_results
  • Add HMS secret

Secure Coding Practices Checklist GitHub Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • General Coding Practices

@shaded-enmity shaded-enmity requested a review from a team as a code owner November 27, 2024 10:35
@app-sre-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@shaded-enmity
Copy link
Author

@romanblanco Hey Roman, can you please take a look if I used the v2 view correctly?

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.79%. Comparing base (0c0012e) to head (b3aa66d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2323   +/-   ##
=======================================
  Coverage   98.79%   98.79%           
=======================================
  Files         237      237           
  Lines        5210     5210           
=======================================
  Hits         5147     5147           
  Misses         63       63           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

deploy/clowdapp.yaml Outdated Show resolved Hide resolved
Copy link
Member

@romanblanco romanblanco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit messages also need to be adjusted to match commitlint rules

@shaded-enmity
Copy link
Author

Thanks for the feedback @romanblanco can you please take another look?

@romanblanco
Copy link
Member

try feat(floorist): add HMS FloorPlan export

@romanblanco romanblanco changed the title Add HMS FloorPlan export feat(floorist): add HMS FloorPlan export Nov 28, 2024
deploy/clowdapp.yaml Outdated Show resolved Hide resolved
deploy/clowdapp.yaml Show resolved Hide resolved
deploy/clowdapp.yaml Show resolved Hide resolved
- Export timestamps, host_id and org_id of test_results
- Add HMS secret

Signed-off-by: Pavel Odvody <pavel@redhat.com>
@shaded-enmity
Copy link
Author

@romanblanco @vkrizan @skateman Thanks for the review folks! 🎉 All comments should be addressed.

@@ -657,6 +682,9 @@ parameters:
- description: database secret name
name: FLOORIST_DB_SECRET_NAME
value: compliance-db
- name: FLOORIST_HMS_BUCKET_SECRET_NAME
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to set up this variable and the secret in app-interface, prior to merging. Otherwise it would fail on stage and prod, and it would block floorist deployment automation. Thank you!

- prefix: hms_analytics/compliance/tests
chunksize: 200000
query: >-
SELECT
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add ref_id from the canonical profile? This would enable us to track Compliance policies (stig, cisa, ...).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romanblanco @skateman Can you guys recommend how to get to this data, I see multiple ref_id's in the schema and have no idea which is the right one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shaded-enmity, to get ref_id of the canonical profile[1], canonical_profiles[2] need to be joined on tailorings.profile_id[3].

[1]

profiles.ref_id,

[2]
SELECT profiles.id,

[3]
profiles.parent_profile_id AS profile_id,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants