Why: https://www.whitesourcesoftware.com/vulnerability-database/WS-2018-0594
Requires updating azure-sdk-for-go, moved to latest release
Created wrapper util for gofrs/uuid as NewV4() now returns 2 args and we use it a lot in-line
Vendor updates coming in separate commit to keep this one clean.
There is no v1.2.1 tag for these repos on github.com.
A replace was added for these to 'master'.
Running `go mod vendor` updated the value from 'master' to what you see
in go.mod now.
The v0.0.0 versions needed excluded to get them to drop from go.sum.
Do not exlude v1.2.0 or dependencies cannot be resolved.
Introduce ARO operator condition which
signals one of:
- cloud.redhat.io
- registry.redhat.io
keys presence in pull-secret.
Full list of present conditions is displayed
as a message.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
* Update RP frontend to collect audit logs
1. Add a new middleware to audit inbound requests
2. Requests to the Azure 'operationsstatus' endpoints are skipped
3. Remove the embedded 'env' from the audit log hook to decouple the
dependency. The 'env' is passed in to the Audit middleware
4. Replace unnecessary custom string types with basic string types
5. Update the testutil 'AssertLoggingOutput' method to skip asserting
audit logs to reduce flakiness in tests. Audit logs assertion is done
in a new 'audit.AssertAuditingOutput()' testutil method
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address Troy's feedback
Signed-off-by: Ivan Sim <isim@redhat.com>
* Update fluent-bit config with rewrite_tag filter
This filter rewrites the input tag of journald logs that have the field
LOGKIND=ifxaudit, to ifxaudit. Using a different tag for ifxaudit logs
allows us to separate them from non-audit logs in the mdsd
configuration.
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address Jim's feedback
Signed-off-by: Ivan Sim <isim@redhat.com>
* New changes per discussion with Jim
1. Merge the 'audit' middleware with the 'log' middleware
to avoid type assertions
3. Update security_test.go with audit test
4. Remove pointer reference to audit constructor
5. Add new audit log entry to testinfra struct
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address MJ's feedback
1. Add unit test to test supported URL patterns
Signed-off-by: Ivan Sim <isim@redhat.com>
* Address Jim's feedback
1. Move adminOp 'if' conditional to log middleware
2. Extract out the 'if' conditional check into a helper function
3. Add start and end symbols to new regex expressions
Signed-off-by: Ivan Sim <isim@redhat.com>